driftwood Posted August 16, 2006 Share Posted August 16, 2006 Hi, I have a poll, (great software @lex Poll 2.1) but to stick to the design of my site I want to add the code into an infobox. I've tried a number of times but can't get it right although I have had success with other boxes they were simple text and images this is php code and I'm stumped. Can someone tell me how to do this please ? I've includes the poll code and the cards infobox code if someone can combine the two and I can learn off that it would be very much apriciated. Sure it will help other thickos like me too :-" // Poll code <?php unset($id_rubrique_apoll2, $id_poll_apoll2, $voter_apoll2); $id_rubrique_apoll2 = 0; $chem_script_apoll2 = "{WAY}"; include($chem_script_apoll2."poll.php"); ?> //Poll code ends //Infobox cards <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<font color="' . $font_color . '">' . BOX_HEADING_CARD1 . '</font>' ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', // 'text' => tep_image(DIR_WS_IMAGES . '/cards/cards.gif') . //elari chanegd to provide a link to your payment acount 'text' => tep_image(DIR_WS_IMAGES . 'cards/logo-xclick_paypal.gif' , BOX_INFORMATION_CARD . MODULE_PAYMENT_PAYPAL_ID). '<br>' . tep_image(DIR_WS_IMAGES . 'cards/cards2.gif', BOX_INFORMATION_CARD . MODULE_PAYMENT_PAYPAL_ID) . '</a><br>' ); new infoBox($info_box_contents); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => tep_draw_separator('pixel_trans.gif', '100%', '1') ); new infoboxFooter($info_box_contents, true, true); ?> //Infobox cards ends TIA Drifter. ----------------------------------------------------------------------------- OSC user for years and no coder, so I've earned my stripes. Feel free to private message me. Link to comment Share on other sites More sharing options...
driftwood Posted August 16, 2006 Author Share Posted August 16, 2006 I'm making some progress on my own, I've now got the poll be reproduced in the box but the is now active content, really could do with a hand here. This is what I've done so far; <tr> <td> <?php unset($id_rubrique_apoll2, $id_poll_apoll2,$voter_apoll2); $id_rubrique_apoll2 = 0; $chem_script_apoll2 ="polls/"; $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', text' => '<font color="' . $font_color . '">' . 'A poll called Graham' . '</font>' ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'centre', text' => require($chem_script_apoll2."poll.php")); new infoBox($info_box_contents); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => tep_draw_separator('pixel_trans.gif', '100%', '1') ); new infoboxFooter($info_box_contents, true, true); ?> </td></tr> ----------------------------------------------------------------------------- OSC user for years and no coder, so I've earned my stripes. Feel free to private message me. Link to comment Share on other sites More sharing options...
driftwood Posted August 16, 2006 Author Share Posted August 16, 2006 Really could do with some here here, so I'm boucing this just the once then I'll give-up. ----------------------------------------------------------------------------- OSC user for years and no coder, so I've earned my stripes. Feel free to private message me. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.