Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a forums link to the left column


Guest

Recommended Posts

Posted

there is a contribution, search for phpbb, if that is what you are meaning to do

Posted

create a link in whatever box you want it in, define the text in the appropriate language, and go . . .

 

follow the examples by duplicating one in a box

 

includes/boxes/whatever box

Posted

open up whatever box you want the link to appear in.

create the link in the code.

save the file.

define the text you are using for the forum based upon the code in the box.

Posted

i dont really know what codes to type in(maybe i can tell you exactly what i want and you could tell me what code to put in and where)

 

i want a link called forums in the information box that leads to the address http://nzdownloads.com/forums/

Posted

open up your catalog/includes/boxes/information.php and you will see where/how it needs to go.

Posted

In includes/boxes/information.php find this code:

  $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>');

...and change it to this:

  $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><br>' .
          '<a href="http://nzdownloads.com/forums/">Forum</a>'
          );

Posted

ahhhhh, but they never learn if we do it for them

Posted

yeah that worked,

 

now what i want to do is get rid of the text "information" that is underneath the box heading information. Also how do i get rid of

 

"This shop is running on osCommerce version osCommerce 2.2-MS2"

Posted
"This shop is running on osCommerce version osCommerce 2.2-MS2"

 

The text above that tells you how to edit it, and if you've already removed the other text then you've done it once already.

 

I think it's time you consulted the Knowledge Base and used the 'Search' feature - and stopped bumping - because nobody likes that.

 

Vger

Posted

ok i removed "this shop is running on...."

 

but how do i remove the text "information" underneath the heading "information"

 

heres what the code inside information.php looks like

 

*/
?>
<!-- information //-->
         <tr>
           <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</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><br>' .
         '<a href="http://nzdownloads.com/forums/">Forums</a>'
         );
         
         
         

 new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- information_eof //-->

Posted

first, please no bumping, that is definitely against forum rules.

 

look in the languages/english/english.php

 

// information box text in includes/boxes/information.php

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

Posted
any help, please?

Find this code in catalog/includes/boxes/information.php

 

 

<!-- information //-->

<tr>

<td>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td height="14" class="infoBoxHeading">  </td>

<td width="100%" height="14" class="infoBoxHeading">Information</td>

<td height="14" class="infoBoxHeading" nowrap><img src="/store/images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>

 

</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

<tr>

<td><img src="/store/images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

<tr>

<td class="boxText">Information</td>

 

</tr>

<tr>

<td class="boxText"><a href="http://nzdownloads.com/store/shipping.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Shipping</a><br><a href="http://nzdownloads.com/store/conditions.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Conditions</a><br><a href="http://nzdownloads.com/store/contact_us.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Contact Us</a><br><a href="http://nzdownloads.com/forums/">Forums</a></td>

</tr>

<tr>

<td><img src="/store/images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

 

</table>

</td>

</tr>

</table>

</td>

</tr>

<!-- information_eof //-->

 

Change it to

 

<!-- information //-->

<tr>

<td>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td height="14" class="infoBoxHeading">  </td>

<td width="100%" height="14" class="infoBoxHeading">Information</td>

<td height="14" class="infoBoxHeading" nowrap><img src="/store/images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>

 

</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

<tr>

<td><img src="/store/images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

<tr>

<td class="boxText"><a href="http://nzdownloads.com/store/shipping.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Shipping</a><br><a href="http://nzdownloads.com/store/conditions.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Conditions</a><br><a href="http://nzdownloads.com/store/contact_us.php?osCsid=04a1f551bf092e19ef6fee3a1d832dc2">Contact Us</a><br><a href="http://nzdownloads.com/forums/">Forums</a></td>

</tr>

<tr>

<td><img src="/store/images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

 

</table>

</td>

</tr>

</table>

</td>

</tr>

<!-- information_eof //-->

Posted

if you use static links, then you will have ssl problems

Posted

Forget the post above...that is nothing more than the output HTML.

 

Here is your answer ->

 

In includes/boxes/information.php change this code:

<!-- information //-->
        <tr>
          <td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</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><br>' .
        '<a href="http://nzdownloads.com/forums/">Forums</a>'
        );
        
        
        

new infoBox($info_box_contents);
?>
          </td>
        </tr>
<!-- information_eof //-->

...to this code:

<!-- information //-->
        <tr>
          <td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents = array();
$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</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><br>' .
        '<a href="http://nzdownloads.com/forums/">Forums</a>'
        );
        
        
        

new infoBox($info_box_contents);
?>
          </td>
        </tr>
<!-- information_eof //-->

Posted
Forget the post above...that is nothing more than the output HTML.

Chemo,

You are, as usual, right about the HTML output. Sorry, it's been a long day.

 

Can you pinpoint the difference between the original code and the new code? I looked but couldn't find it. I couldn't find anything in the original code that looked like it would output the text in question. Like I said, it's been a long day.

 

Dave

Posted

... more code ...

$info_box_contents = array(); <= array reset

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array(); <= array reset or it contains the above info

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' .

...more code...

Archived

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

×
×
  • Create New...