Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add a Hyperlink to the Information Box


superman123

Recommended Posts

Posted

Is there a way to add a Hyperlink inside the Information box?

 

Where it has

 

Shipping & Returns

Privacy Notice

Conditions of Use

Contact Us

 

I want to add a Link to it.. anyone help?

Posted

yes i know its information.php..

 

i'm asking what code i need to put in.

 

THIS is what i have right now.

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => 'tep_href_link'MY WEBADDRESS');

 

But its not working.. i get a PHP error..

 

i need to know what code to put in the 'text' area.

normal Hyperlinking using HTML doesn't work.

Posted

Add this:

 

 '<a href="' . tep_href_link(FILENAME_NEW_FILE) . '">' . BOX_NEW_FILE . '</a><br>' .

 

Don't forget to add defines to filename.php and english.php.

 

HTH

 

*edit*

 

You define FILENAME_NEW_FILE in filenames.php and BOX_NEW_FILE in english.php.

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Posted

You probably want something like this:

 

  $info_box_contents[] = array('text' => '<a href="http://www.whateveryouwant.com">' . BOX_INFORMATION_MY_WEBSITE . '</a>');

 

*edit*

 

Beat me to it, Noel.

Tim

 

Webmaster

www.myriadgames.com

-So Many Games, So Little Time-

Posted

:P

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Posted

i KIND of get what your saying.. but still confused

 

I'll just tell you what i want to do

 

i want that hyperlink to be a direct link to a File on my server. So that when my customers click on the link it will show the File Download screen.

Posted

Ok i got it to SOMEWHAT work..

 

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_RESELLERS . '</a><br>' .

 

I made the lettering say Resellers.. but i still need it to hyperlink to a file. Is there a code for that?

Posted

how can you get it to open the link in a new window..

I keep try'n but, NO DICE.

- I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.

 

 

 

Posted

use standard html coding for target

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

nope thats not working.. could someone show me how.. i must be missing something. ;)

- I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.

 

 

 

Posted

egnegron

 

What codes are you using and where are you using them

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

<?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><br>' .

'<a href="' . tep_href_link(FILENAME_FORUM) .'">' . BOX_INFORMATION_FORUM .

'</a><br>');

 

 

new infoBox($info_box_contents);

?>

</td>

</tr>

- I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.

 

 

 

Posted

it's the forum link that i need to open in a _blank window.

in the FILENAMES.PHP i have defined the link as:

 

define('FILENAME_FORUM', 'evilboard/index.php');

?>

 

what am i missing it currently opens but INSIDE the current page.

I need it to open in a NEW window out side os OSCOMMERCE

- I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.

 

 

 

Posted
'<a href="' . tep_href_link(FILENAME_FORUM) .'"target="_blank">' . BOX_INFORMATION_FORUM . 
'</a><br>');

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Posted

Thanks Noel, would that use standard html coding for target per chance :P

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

Standard? Nahh, I just made that up... ;)

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Archived

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

×
×
  • Create New...