Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

INFOBOXES


doodah

Recommended Posts

Posted

i understand how to create a new infobox i am just having probs inserting the info i want into it...!!!

 

i want to add some images into a new infobox but everytime i do this i get a parse error ?????

 

i just cannot work it out ......i am a newb in the phph world so please don't laugh or mock me......

 

thanks to all for the help you provide...... :thumbsup:

Posted
i understand how to create a new infobox i am just having probs inserting the info i want into it...!!!

 

i want to add some images into a new infobox but everytime i do this i get a parse error ?????

 

i just cannot work it out ......i am a newb in the phph world so please don't laugh or mock me......

 

thanks to all for the help you provide...... :thumbsup:

 

 

Hi! This is assuming you already have a new box completely conected with all files as found in Add Boxe Pages from Knowledge Base. If not...

 

http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49

 

The following will produce a clickable image to links outside your shoppe, but may also be directed to your own php pages as in the second call including your image text.

 

 

<?php

/*

$Id: MY_NEW_BOX.php,v 1.1 2004/08/25 22:44:46 akhan Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- MY_NEW_BOX Info Box //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => BOX_HEADING_MY_NEW_BOX

);

new infoBoxHeading($info_box_contents, false, true);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => '<a href="http://outside_website_address.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'MY_NEW_IMAGE.gif' ,

BOX_INFORMATION_MY_NEW_BOX) . '</a><br>'

);

 

$info_box_contents[] = array('align' => 'center',

'text' => '<a href="MY_PAGE_LINK.php" target="_blank">' . tep_image(DIR_WS_IMAGES . 'MY_NEW_IMAGE.gif' , BOX_INFORMATION_MY_NEW_BOX2) . '</a>'

);

new infoBox($info_box_contents);

?>

</td></tr>

<!-- MY_NEW_BOX_eof //-->

 

I hope this is what you were looking for, and that it is of some help. :rolleyes:

We help each other, to help ourselves!

Aloha Allison!

 

Liken to wrinkles, the many paths of my life not only altered my destiny, but my appearance.

 

Poetry, the artistry of plying ones soul to the empty canvases of life. A vision without sight. A verse without darkness. Lighting each day with a prose of beauty and love.

Posted
Hi! This is assuming you already have a new box completely conected with all files as found in Add Boxe Pages from Knowledge Base. If not...

 

http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49

 

The following will produce a clickable image to links outside your shoppe, but may also be directed to your own php pages as in the second call including your image text.

<?php

/*

  $Id: MY_NEW_BOX.php,v 1.1 2004/08/25 22:44:46 akhan Exp $

 

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright ? 2003 osCommerce

 

  Released under the GNU General Public License

*/

?>

<!-- MY_NEW_BOX Info Box //-->

          <tr>

            <td>

<?php

  $info_box_contents = array();

  $info_box_contents[] = array('align' => 'left',

                              'text'  => BOX_HEADING_MY_NEW_BOX

                              );

  new infoBoxHeading($info_box_contents, false, true);

 

  $info_box_contents = array();

  $info_box_contents[] = array('align' => 'center',

                              'text'  => '<a href="http://outside_website_address.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'MY_NEW_IMAGE.gif' ,

BOX_INFORMATION_MY_NEW_BOX) . '</a><br>'

                              );

 

  $info_box_contents[] = array('align' => 'center',

                              'text' => '<a href="MY_PAGE_LINK.php" target="_blank">' . tep_image(DIR_WS_IMAGES . 'MY_NEW_IMAGE.gif' , BOX_INFORMATION_MY_NEW_BOX2) . '</a>'

                              );

          new infoBox($info_box_contents);

?>

</td></tr>

<!-- MY_NEW_BOX_eof //-->

 

I hope this is what you were looking for, and that it is of some help.  :rolleyes:

 

cheers thats a great help never thought of doing that way :thumbsup: ........i can leave the links blank......do you know of a way you can put images in without the link?? :huh:

 

thanks... :D

Posted
cheers thats a great help never thought of doing that way :thumbsup: ........i can leave the links blank......do you know of a way you can put images in without the link?? :huh:

 

thanks...  :D

 

Well you've said it yourself, just put them in without the link

 

'text' => tep_image(DIR_WS_IMAGES . 'MY_NEW_IMAGE.gif' , BOX_INFORMATION_MY_NEW_BOX2)

Posted
Well you've said it yourself, just put them in without the link

 

'text' => tep_image(DIR_WS_IMAGES . 'MY_NEW_IMAGE.gif' , BOX_INFORMATION_MY_NEW_BOX2)

 

lol........its been a hard week so far...... :blink:

 

cheers :thumbsup:

Posted

just another quick one.............i now want to add more than one image if i repeat the code it just shows the last one i put in, any ideas???

 

cheers :thumbsup:

Posted
just another quick one.............i now want to add more than one image if i repeat the code it just shows the last one i put in, any ideas???

 

cheers :thumbsup:

 

 

woah hold it i've done it cheers again peeps ..... :thumbsup:

Posted
just another quick one.............i now want to add more than one image if i repeat the code it just shows the last one i put in, any ideas???

 

cheers :thumbsup:

 

in the post following this one you said that you'd done it - - can you share that because it would solve my issue as well - thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...