doodah Posted July 4, 2005 Posted July 4, 2005 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:
Jack_mcs Posted July 4, 2005 Posted July 4, 2005 You will need to post your code in order for anyone to help you find the error. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
3DoorsUp Posted July 5, 2005 Posted July 5, 2005 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: <{POST_SNAPBACK}> 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.
doodah Posted July 5, 2005 Author Posted July 5, 2005 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: <{POST_SNAPBACK}> 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
Guest Posted July 5, 2005 Posted July 5, 2005 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 <{POST_SNAPBACK}> 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)
doodah Posted July 5, 2005 Author Posted July 5, 2005 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) <{POST_SNAPBACK}> lol........its been a hard week so far...... :blink: cheers :thumbsup:
doodah Posted July 5, 2005 Author Posted July 5, 2005 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:
doodah Posted July 5, 2005 Author Posted July 5, 2005 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: <{POST_SNAPBACK}> woah hold it i've done it cheers again peeps ..... :thumbsup:
BuddahBoy Posted July 7, 2005 Posted July 7, 2005 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: <{POST_SNAPBACK}> 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!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.