chelle40 Posted February 5, 2013 Share Posted February 5, 2013 Hi, I'm trying to install a guestbook addon I found (1349). It was posted back in 2010 and is for osc ver 2.2 and I have 2.3.1 I realize there are some coding differences and I'm stuck on one of them. Supposed to modify file: /catalog/includes/boxes/information.php I don't have that exact file but I do have: /catalog/includes/modules/boxes/bm_information.php In this file it says to add the following code: // START GUESTBOOK if(GUESTBOOK_SHOW == 'true'){ $info_box_contents[] = array('text' => tep_draw_separator()); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_GUESTBOOK) . '">' . BOX_INFORMATION_GUESTBOOK . '</a>'); } // END GUESTBOOK After the following code: // START OLD FILE WAY $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); // END OLD FILE WAY But the code that is in my file is: function execute() { global $oscTemplate; $data = '<div class="infoBoxWrapper list">' . tep_draw_box_wrapper_top() . '<div class="infoBoxHeading">' . tep_draw_box_title_top() . MODULE_BOXES_INFORMATION_BOX_TITLE . tep_draw_box_title_bottom() . '</div>' . '<div class="infoBoxContents">' . tep_draw_box_content_top() . '<ul class="information">' . '<li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . MODULE_BOXES_INFORMATION_BOX_SHIPPING . '</a>' . tep_draw_box_list_bottom() . '</li>' . '<li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . MODULE_BOXES_INFORMATION_BOX_PRIVACY . '</a>' . tep_draw_box_list_bottom() . '</li>' . '<li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . MODULE_BOXES_INFORMATION_BOX_CONDITIONS . '</a>' . tep_draw_box_list_bottom() . '</li>' . '<li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a>' . tep_draw_box_list_bottom() . '</li>'. '</ul>' . '' . tep_draw_box_content_bottom() . '</div>' . '' . tep_draw_box_wrapper_bottom() . '</div>'; $oscTemplate->addBlock($data, $this->group); } Can anyone tell me how to change the ver 2.2 code provided in the addon to work with my ver 2.3.1 code? Or is there another better and more current guestbook addon that someone can suggest. Thank you Shelli Quote Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2013 Share Posted February 5, 2013 @@chelle40 Add this under the rest of the <li> '<li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_GUESTBOOK) . '">' . MODULE_BOXES_INFORMATION_GUESTBOOK . '</a>' . tep_draw_box_list_bottom() . '</li>'. Chris chelle40 1 Quote Link to comment Share on other sites More sharing options...
chelle40 Posted February 6, 2013 Author Share Posted February 6, 2013 Thank you Chris - that worked. :thumbsup: Quote Link to comment Share on other sites More sharing options...
Guest Posted February 6, 2013 Share Posted February 6, 2013 @@chelle40 No Problem Shelli, anytime Chris Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.