Forums / Basic Configuration / About Us Page not working

About Us Page not working

Locked

Views: 2,093

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Apr 2007, 1:03 PM
#1
tertius avatar

tertius

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

About Us Page not working

Hey guys,

I've been trying to fix this stupid things for a few hours now.

If you go to http://www.myflash.co.za/ you'll see under the "Information" drop-down box a link/button with "About Us" on it.

It's not working.

I've added the following to information.php

if (DEFINE_ABOUT_US <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>';
}

and the following to english.php

define('BOX_INFORMATION_ABOUT_US','About Us');

I've also uploaded "define_about_us.php" to "html_includes". I can see that the file needs to be referenced somwhere. I just don't know where.

The thing is, the "About Us" text in the Information drop-down was there before I added it to information.php and english.php. (Got it in the template files)

And that's as far as I've gotten but just hacking around.:yuck:

4 Apr 2007, 9:32 PM
#2
tertius avatar

tertius

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: About Us Page not working

Anyone have any ideas?

5 Apr 2007, 2:41 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: About Us Page not working

Get rid of

if (DEFINE_ABOUT_US <= 1) {

Your information.php addition of the about us should not be conditional. BTW, I
assume you mean

includes/modules/sideboxes/custom/information.php

Right?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

5 Apr 2007, 8:51 AM
#4
tertius avatar

tertius

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: About Us Page not working

I don't have a custom directory there, only a classic one.

And it's this one "includes/modules/sideboxes/information.php"

5 Apr 2007, 8:58 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: About Us Page not working

"custom" is the directory you create. Follow the directions for adding a custom template.

http://www.zen-cart.com/forum/faq.php?faq=catalog_issues#faq_template_customize

If you don't do this, you'll lose your work in the next upgrade.

Then follow the directions in about_us. When the readme says "MY_TEMPLATE,"
think "custom."

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

5 Apr 2007, 9:05 AM
#6
tertius avatar

tertius

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: About Us Page not working

Why is it so complicated?

I installed a normal template. And it doesn't work out of the box, I don't want to make my own.

And the 'readme' in about_us? I don't understand what that means.

But i'll try it out, and you let you know where I have trouble :)

Thanks for the pointer.

5 Apr 2007, 9:12 AM
#7
tertius avatar

tertius

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: About Us Page not working

Quickly, if I use "custom" will this override the template that I'm using at the moment? Or do I need to put my modifications in the directory that my current template is using? (And create the same name in other place, like with the sideboxes where there isn't a directory with that name?)

5 Apr 2007, 9:26 AM
#8
tertius avatar

tertius

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: About Us Page not working

Trail and error is awesome, thanks, i've learned so much! :)

5 Apr 2007, 9:34 AM
#9
tertius avatar

tertius

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: About Us Page not working

Ok I'm stuck, I've made a file in "/includes/extra_datafiles" and now it just shows up at the top of my page? (about_us_filenames.php) I don't really get how I need to get the information.php file to find this file.

I had the define_about_us.php in "/includes/languages/english/html_includes" and moved this to "/includes/languages/english/html_includes/apple_zen" but this didn't solve my problem, it's still referencing "FILENAME_ABOUT_US" which I don't see where it can get a reference from to point to that page that i put there.

:frusty:

5 Apr 2007, 9:48 AM
#10
tertius avatar

tertius

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: About Us Page not working

Ok I saw the following.

  • Example: You create a custom page, about_us and need to call the filename.

Rather than putting a new define in /includes/filenames.php, you should call the filename from the existing directory,

/includes/extra_datafiles.

Create a new filename, about_us_filenames.php and place this file in /includes/extra_datafiles.

In this file, you would have the code:

This file will be called automatically, as would any other file in this directory, thereby telling the system what your custom filenames are.

Try and keep the same format for other new files you make...example, calling a file named blah would be named

blah_filenames.php*

I can now see where the files are referenced, but putting a file in "extra_datafiles" doesn't get it referenced. There is a bit that worries me "In this file you would have the code:" and there's nothing there. That might help?

5 Apr 2007, 1:20 PM
#11
tertius avatar

tertius

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: About Us Page not working

I have it working, it's referencing the correct file, i just took the syntax from the filenames.php.

But it can't find the page? And it is there.

I'm at my intellectual end here. :frusty: