Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Way To Add Blog Link To Site


Guest

Recommended Posts

Hi,

I have a couple of blogs that I wanted to add to my site but I am wary of addons (I know they are good but Im averse to risk taking) so I changed a couple of bits of code to put them in my right hand column in place of Languages (I only use English so this seemed redundant.)

Its really simple (hence my success) so here it is if anyone wants to copy it.

 

Go to includes/boxes/languages.php and copy all the contents to Notepad in case you wish to reinstall them at a later date

 

DELETE THIS BIT

 

a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a>

 

AND REPLACE IT WITH THIS

 

a href="http://MY BLOG URL">BLOG NAME</a>

 

Then go to includes/languages/english.php and find the line defining the Box Heading as 'Languages' and retype this as 'MY BLOG' or whatever name is preferred

 

:)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...