Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

link page problem


unclecurt

Recommended Posts

well to add a link its

 

<a href="http://yoursite.com/Page.php" target="_Blank"> What is getting linked </a>

 

that should do it

 

 

What I meant was that I want a links page added to my site so that I can display and tradee links with other osC people, I should have been more clear but that was helpful being as I'm so new to all this.

Link to comment
Share on other sites

Ok you are going to redo a box. Now it's important that you backup and protect your stuff.

 

 

1 go to

 

catalog/includes/boxes/information.php

 

2. save as links.php

 

now you have to modify this

 

 

<?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_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>');

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

 

so it looks like

 

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_Links);

 new infoBoxHeading($info_box_contents, false, false);

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

 new infoBox($info_box_Links);
?>
		</td>
	  </tr>

at the end of the day the code will be good

Link to comment
Share on other sites

Ok you are going to redo a box. Now it's important that you backup and protect your stuff.

1 go to

 

catalog/includes/boxes/information.php

 

2. save as links.php

 

now you have to modify this

<?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_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>');

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

 

so it looks like

 

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_Links);

 new infoBoxHeading($info_box_contents, false, false);

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

 new infoBox($info_box_Links);
?>
		</td>
	  </tr>

 

 

 

That quote is incorect this is correct

 

 

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_Links);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_Links) . '">' . BOX_INFORMATION_Link  . '</a>');

 new infoBox($info_box_Links);
?>
		</td>
	  </tr>

at the end of the day the code will be good

Link to comment
Share on other sites

Ok you are going to redo a box. Now it's important that you backup and protect your stuff.

1 go to

 

catalog/includes/boxes/information.php

 

2. save as links.php

 

now you have to modify this

<?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_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>');

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

 

so it looks like

 

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_Links);

 new infoBoxHeading($info_box_contents, false, false);

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

 new infoBox($info_box_Links);
?>
		</td>
	  </tr>

 

Maybe I'm not doing this right but every time I edit that my whole page gets huge.

Link to comment
Share on other sites

:-" I want to know how to add a links page to my site. Help me please.
You should use the Links Manager contribution. It will handle all of the links for you and allow others to submit links to your site.

 

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

Link to comment
Share on other sites

does it put a "links" button on the front page?

 

 

maybe you can change it, I sure as heck can't here it is...

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- 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_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>');

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

Link to comment
Share on other sites

does it put a "links" button on the front page?
It doesn't put a llinks button but it does add a Links text link. You can change it to an image if you want though.

 

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

Link to comment
Share on other sites

It doesn't put a llinks button but it does add a Links text link. You can change it to an image if you want though.

 

Jack

 

I already installed the links contribution from the guy that has that dragons and wizards web site (sorry horrible with names) but I can't get a link to the link page in my infoprmation box without my entire site going all wonky on me. :blush:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...