Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Links on Top Bar


K0rd3rbackStyl3

Recommended Posts

Posted

Hi.

 

I was wondering how I can change the text and links on the top of my site. For example:

 

My Site:

www.xbox-mods4me.com

 

the top links are: "home" "what's new" "specials" "reviews" "login" and "catalog"

 

I would like to change "what's new" to "Live Chat" linking to www.xbox-mods4me.com/chat

 

And change "specials" to "forum" linking to www.xbox-mods4me.com/forum

 

I'm new to php editing so if you could help, that would be greatly appreciated.

Posted

All of these can be found in the language files. Most things are in includes/languages/english/english.php or one of the files nearby.

 

For example, "What's New" is in the line in english.php that starts with:

define('BOX_HEADING_WHATS_NEW',

 

-jared

Posted

'BOX_HEADING_WHATS_NEW'

 

so if I wanted to change it? would it be 'BOX_HEADING_LIVE_SUPPORT' ? and im assuming the link that controls that button is near that area?

 

if I wanted to make the link available for any language. I would have to edit all the language files?

 

THANKS! :)

Posted

Did you try it? Go look in the language file. I didn't post the entire line so that you'd go and look at it.

 

It'll make sense once you find the line in the file.

 

The main .php files refer to BOX_HEADING_WHATS_NEW. the language file defines the value of BOX_HEADING_WHATS_NEW.

 

Play with it. Try it out.

 

-jared

Posted

I've tried playing around with it. Its a no go.. :blush: Theres also nowhere to change the link so it'll link somewhere else...

 

 

I'm real close to offering somebody $10 (i'm guessing thats not a lot, but it seems like just some editing that my stupid self just cant do) to do all this for me... Any insights?

Posted

I found this section in the english.php file...

 

 

/////////////////////////////////////////////////////////////////////

// HEADER.PHP

// Header Links

define('HEADER_LINKS_DEFAULT','HOME');

define('HEADER_LINKS_WHATS_NEW','WHAT\'S NEW?');

define('HEADER_LINKS_SPECIALS','SPECIALS');

define('HEADER_LINKS_REVIEWS','REVIEWS');

define('HEADER_LINKS_LOGIN','LOGIN');

define('HEADER_LINKS_LOGOFF','LOG OFF');

define('HEADER_LINKS_PRODUCTS_ALL','CATALOG');

define('HEADER_LINKS_ACCOUNT_INFO','ACCOUNT INFO');

 

 

 

Those are the top links I'm talking about. So do I also edit something there? Again new to php... any help appreciated. Thanks! :)

Posted

I just played with the file like jcall suggested and I turned this:

 

/////////////////////////////////////////////////////////////////////
// HEADER.PHP
// Header Links
define('HEADER_LINKS_DEFAULT','HOME');
define('HEADER_LINKS_WHATS_NEW','WHAT\'S NEW?');
define('HEADER_LINKS_SPECIALS','SPECIALS');
define('HEADER_LINKS_REVIEWS','REVIEWS');
define('HEADER_LINKS_LOGIN','LOGIN');
define('HEADER_LINKS_LOGOFF','LOG OFF');
define('HEADER_LINKS_PRODUCTS_ALL','CATALOG');
define('HEADER_LINKS_ACCOUNT_INFO','ACCOUNT INFO');

 

INTO THIS:

 

 

/////////////////////////////////////////////////////////////////////
// HEADER.PHP
// Header Links
define('HEADER_LINKS_DEFAULT','HOME');
define('HEADER_LINKS_WHATS_NEW','FORUMS');
define('HEADER_LINKS_SPECIALS','LIVE CHAT');
define('HEADER_LINKS_REVIEWS','REVIEWS');
define('HEADER_LINKS_LOGIN','LOGIN');
define('HEADER_LINKS_LOGOFF','LOG OFF');
define('HEADER_LINKS_PRODUCTS_ALL','CATALOG');
define('HEADER_LINKS_ACCOUNT_INFO','ACCOUNT INFO');

 

 

Now my site www.xbox-mods4me.com shows FORUMS and LIVE CHAT like I wanted but I couldn't figure out where to change the actual link. So clicking on "FORUMS" will take you to "WHATS NEW" and clicking on "LIVE CHAT" will take you to specials. Can anyone show me how to change the link?

 

 

Thanks. :D

Posted

you can not randomly change the text and expect it to go to your forum. they are all tied into certain spots.

you are better off creating a link to your forum in an information box.

Posted

I have already sent you the information on how to change links in the header.php file. All that you have done is to change the name of the links - not where they go to.

 

Vger

Archived

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

×
×
  • Create New...