If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / Change About us to Sponsors CODE HELP please

Change About us to Sponsors CODE HELP please

Started by jgirl5799 on 3 Aug 2012, 1:48 PM · Views: 793

Results 1 to 5 of 5
3 Aug 2012, 1:48 PM
#1
jgirl5799 avatar

jgirl5799

New Zenner

Join Date:
Aug 2012
Posts:
24
Plugin Contributions:
0

Change About us to Sponsors CODE HELP please

Morning Zenners,

I am working on my sidebar column changes for the information categories. (about us, shipping and returns, contact us ect)

I am in an HTML constipation mode at the moment and am having a hard time figuring out this code to show up properly.. I was changing the tab information .php file categories. I am wishing to change the link from about us to Sponsors.

I do not think I have this code right at all and I am having a brain fart at the moment to think what I may be missing. this is what I changed it too..

if (DEFINE_ABOUT_US_STATUS <= 1) {

$information[] = '<a href="' . zen_href_link(FILENAME_SPONSORS) . '">' .BOX_INFORMATION_SPONSORS . '</a>';

}

However, its not showing nn my home page it shows like this above shipping: BOX_INFORMATION_SPONSORS.

Any help is appreciated thanks again!

3 Aug 2012, 2:18 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Change About us to Sponsors CODE HELP please

You would have to define BOX_INFORMATION_SPONSORS somewhere, probably in the file in the extra_definitions folder from the mod.

3 Aug 2012, 3:36 PM
#3
jgirl5799 avatar

jgirl5799

New Zenner

Join Date:
Aug 2012
Posts:
24
Plugin Contributions:
0

Re: Change About us to Sponsors CODE HELP please

thank you for responding, I went into the mod folder and this is the link that I changed that this is what I put as well, nothing has changed in the front home page it still showed as: BOX_INFORMATION_SPONSORS

The code I used for the mod page was the following

if (DEFINE_SPONSORS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_SPONSORS) . '">' . BOX_INFORMATION_SPONSORS . '</a>';
}

It still showed up on the home page with the

3 Aug 2012, 5:55 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Change About us to Sponsors CODE HELP please

BOX_INFORMATION_SPONSORS is, I think, a constant that you created. Before you can use it in the code you wrote, you'll need to define a value for it. You could do that in includes/languages/english/extra_definitions/YOUR_TEMPLATE_NAME/about_us.php by adding the red part:

// this is used to display the text link in the "information" or other sidebox
define('BOX_INFORMATION_ABOUT_US', 'About Us');
define('BOX_INFORMATION_SPONSORS', 'Sponsors');

4 Aug 2012, 12:11 AM
#5
jgirl5799 avatar

jgirl5799

New Zenner

Join Date:
Aug 2012
Posts:
24
Plugin Contributions:
0

Re: Change About us to Sponsors CODE HELP please

OMG Steve you rock that fixed it and I totally overlooked that file in the php... it worked perfectly!!! thank you so much for your help