Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add external links in information box (multiple languages)


kflack

Recommended Posts

Posted

Hi

 

I just want to add external links in my information box to link to 2 external locations.

(A Blog and a Bullitin Board)

 

The tricky part is I have different links for 2 different languages (English and French)

 

I thought I almost had it by

 

a) Modifying information.php by adding 2 references to a Blog and BB

 

$info_box_contents[] = array('text' =>

'<a href="' . tep_href_link(FILENAME_BB) . '">' . BOX_INFORMATION_BB . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_BLOG) . '">' . BOX_INFORMATION_BLOG . '</a><br>' .

 

B) Modifying English.php to add a title reference

 

English

 

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

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_BLOG', 'What\'s New Blog');

define('BOX_INFORMATION_BB', 'Customer Support');

 

c) Modifying French.php

 

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

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_BLOG', 'Ce qui est nouveau Blog');

define('BOX_INFORMATION_BB', 'Support à la clientèle');

 

d) created english and french bb.PHP files for a re-direct

 

PHP Script to re-direct to BB Page

 

BB.PHP English

 

<?php

header( 'Location: http://www.my.site.name/phpBB/index_eng.php' ) ;

?>

 

BB.PHP French

 

<?php

header( 'Location: http://www.my.site.name/phpBB/index_fr.php' ) ;

?>

 

e) modified includes/filenames.php

 

added a reference to (For Test Purposes)

 

define('FILENAME_BLOG', 'includes/languages/english/blog.php');

define('FILENAME_BB', 'includes/languages/english/bb.php');

 

I tried out this link and although it looks good I get a 404 error.

Appears that there is a .htaccess file with a deny on the above directory tree (I think)

 

Now I am stuck........

 

I recognize that I really (need) a bb.php file located in /catalog that somehow queries the language and then points to 2 different re-direct files bb.php in the language directories....or something like that

 

If anyone can point me in the right direction it would be greatly appreciated..... !

 

I am not a programmer but after some searching I have gotten this far....

close but no cigar.....

 

Please help

 

Ken

Posted

A quick 10 penny worth.

 

file names are case sensitive.

 

bb.php is different from BB.PHP and bb.PHP.

 

From wikipedia

 

The 404 or Not Found error message is an HTTP standard response code indicating that the client was able to communicate with the server but either the server could not find what was requested, or it was configured not to fulfill the request and not reveal the reason why. 404 errors should not be confused with "server not found" or similar errors, in which a connection to the destination server cannot be made at all.

 

Enjoy

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

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

×
×
  • Create New...