Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Guestbook addon 1349


chelle40

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...