Forums / Basic Configuration / About Us Page and extras not working

About Us Page and extras not working

Locked

Views: 1,473

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
7 Dec 2007, 9:09 PM
#1
catrinau avatar

catrinau

New Zenner

Join Date:
Aug 2007
Posts:
2
Plugin Contributions:
0

About Us Page and extras not working

I've been playing around with this for hours now and can't figure it out.

I know you aren't fond of newbies dorky questions, but I am desperate for some help here. I read through the about us page mod read me info. I believe I followed it word for word, but it is not working right.

http://tykies.com is the website. You can see the additions of "about us", "size", "cotton", "flannel", "knits" ... etc.

When you click on them they take you to the page with the correct heading for them. The problem is, nothing is showing up on these pages. If I go into the define pages editor I can edit the pages and I have edited them, but it isn't showing up. I've checked to make sure everything is correct with permissions and they are.

So now I'm at a loss as to what I've done wrong.

Any help would be greatly appreciated.

Thank you :)
Cat

8 Dec 2007, 4:44 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: About Us Page and extras not working

The define pages use a constant such as for Page 2 you would have in the configuration table the configuration_key for:
DEFINE_PAGE_2_STATUS

Based on the assumption that the new pages you made follow this pattern you should have some code on your tpl_ file(s) similar to:

<?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?>
<div id="pageTwoMainContent" class="content">
<?php
/**
 * load the html_define for the page_2 default
 */
  require($define_page);
?>
</div>
<?php } ?>

But the constant would have its own name or should such as:
DEFINE_PAGE_ABOUT_US

or something similar ...

Where do you have that defined? If not defined, then it defaults to 0 or false or OFF and you don't get to see your new text on your new page(s) as you told it not to show it ... :eek:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Dec 2007, 4:56 AM
#3
catrinau avatar

catrinau

New Zenner

Join Date:
Aug 2007
Posts:
2
Plugin Contributions:
0

Re: About Us Page and extras not working

Oh my! Thank you so much. Isn't it funny that you can stare at something for hours and hours, and one fresh mind can come in and figure it right out like that. LOL, it helps that it was a mind that knows more about this stuff than me too! :) :)

Thank you so much! :)
Smiles,
Cat

10 Jan 2008, 1:21 PM
#4
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: About Us Page and extras not working

Ajeh:

The define pages use a constant such as for Page 2 you would have in the configuration table the configuration_key for:
DEFINE_PAGE_2_STATUS

Based on the assumption that the new pages you made follow this pattern you should have some code on your tpl_ file(s) similar to:

<?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?> <div id="pageTwoMainContent" class="content"> <?php /** * load the html_define for the page_2 default */ require($define_page); ?> </div> <?php } ?> ``` > > But the constant would have its own name or should such as: > DEFINE_PAGE_ABOUT_US > > or something similar ... > > Where do you have that defined? If not defined, then it defaults to 0 or false or OFF and you don't get to see your new text on your new page(s) as you told it not to show it ... :eek:

Hi,
I just posted a little while ago with the same problem, except regarding the more_information sidebox & a cloned page2 as page5.
In the thread I posted to, Ajeh asked where the person posting had defined his page5.
I posted saying I had done all the same things, with the same results, but didn't understand what was meant by " where was the page defined"
Now, after following this thread, I think it was includes/filenames.php that was being refered to.
If it was, then I wrote the following in filenames.php:
define('FILENAME_DEFINE_PAGE_5', 'define_page_5');
then later:
define('FILENAME_PAGE_5', 'page_5');
Only my page heading is appearing, not text that has been entered using the tools define pages editor, & no reference to it in configuration define page status.
Just thought: when I change the page2 to page5 in includes/languages/english.php I write:
define('BOX_INFORMATION_PAGE_5', 'Directories');
That doen't affect it does it?
In filenames.php page4 is called page4 & includes/languages/english.php it is
define('BOX_INFORMATION_PAGE_4', 'Links');
so I don't really think so, just thought I'd check.
Still need the solution though.
Any ideas why?
Regards
Gay
http://www.artyfactsforcrafts.com

13 Jan 2008, 3:17 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: About Us Page and extras not working

Where is:
DEFINE_PAGE_5_STATUS

defined ... based on the assumption you cloned all page_# to page_5 and PAGE_# to PAGE_5 etc. etc.

If that is used in the file and not defined, then the default value will be 0 or OFF and you will not see the text ... even if the page works ... :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Jan 2008, 3:30 PM
#6
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: About Us Page and extras not working

Ajeh:

Where is:
DEFINE_PAGE_5_STATUS

defined ... based on the assumption you cloned all page_# to page_5 and PAGE_# to PAGE_5 etc. etc.

If that is used in the file and not defined, then the default value will be 0 or OFF and you will not see the text ... even if the page works ... :unsure:

Thanks for the reply.
In includes/modules/sideboxes/classic/more+information.php I have:
Line #25 : if (DEFINE_PAGE_5_STATUS <= 1) {
In includes/modules.sideboxes/more_information.php I have:
Line #25 : if (DEFINE_PAGE_5_STATUS <= 1) {
In includes/templates/template_default/templates/tpl_page_5_default.php I have:
Line #14 : <?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?>
In includes/templates/template_default/templates/tpl_site+map_default.php I have:
Line #74 : <?php if (DEFINE_PAGE_5_STATUS <= 1) { ?>
Those were all the instances I found after putting DEFINE_PAGE_5_STATUS in the Develpoers Tool Kit in admin.
Now, I know NOTHING about php, but I can see a pattern here:
the first two lines end with{ but the second two ens with {?>
Are the missing{> what have cause the error?
I think I'll try changing them myself before I get an answer to try it out.
Fingers crossed because, foolishly, this IS a live site!
Look forward to you reply.
Gay
http://www.artyfactsforcrafts.com

13 Jan 2008, 3:45 PM
#7
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: About Us Page and extras not working

Ok, I've gone onto the server & realised that reply was a load of rubbish!
I'll copy & paste direct from the server, but I have to say, both new lines look the same as the original 3.
In includes/modules/sideboxes/classic/more_information.php I have:
if (DEFINE_PAGE_5_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';
}
In includes/modules/sideboxes/more_information.php I have:
if (DEFINE_PAGE_5_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';
}
In includes/templates/template_default/templates/tpl_page_5_default.php I have:

<?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?> <div id="pageFiveMainContent" class="content"> <?php /** * require the html_define for the page_5 page */ In includes/templates/template_default/templates/tpl_site_map_default.php I have: <?php if (DEFINE_PAGE_5_STATUS <= 1) { ?> <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>'; ?></li> <?php } ?> They all seem to be the same as the original lines to me. Really can't see anything wrong, but as I've said before, I really know nthing about PHP. Look forward to your reply. Regards Gay <http://www.artyfactsforcrafts.com>
13 Jan 2008, 4:07 PM
#8
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: About Us Page and extras not working

Ajeh:

The define pages use a constant such as for Page 2 you would have in the configuration table the configuration_key for:
DEFINE_PAGE_2_STATUS

Based on the assumption that the new pages you made follow this pattern you should have some code on your tpl_ file(s) similar to:

<?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?> <div id="pageTwoMainContent" class="content"> <?php /** * load the html_define for the page_2 default */ require($define_page); ?> </div> <?php } ?> ``` > > But the constant would have its own name or should such as: > DEFINE_PAGE_ABOUT_US > > or something similar ... > > Where do you have that defined? If not defined, then it defaults to 0 or false or OFF and you don't get to see your new text on your new page(s) as you told it not to show it ... :eek: I scrolled up from my post, Ajeh, & found this quoted answer to Catrinau's post. The code for my tpl_page_5_default.php is as follows:<?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?> <div id="pageFiveMainContent" class="content"> <?php /** * require the html_define for the page_5 page */ require($define_page); ?> Being as I cloned the whole page & page_2 has the : * load the html_define for the page_2 default line, why hasn't the page I cloned??? If I insert that line will it solve the problem? I'll have a go & let you know. Regards Gay Elston <http://www.artyfactsforcrafts.com>
13 Jan 2008, 4:08 PM
#9
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: About Us Page and extras not working

And, just a thought, why would a commented out line of code have such an effect?
Gay
http://www.artyfactsforcrafts.com

13 Jan 2008, 4:14 PM
#10
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: About Us Page and extras not working

Ok,
Tried replacing

<?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?> <div id="pageFiveMainContent" class="content"> <?php /** * require the html_define for the page_5 page */ require($define_page); ?> With <?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?> <div id="pageFiveMainContent" class="content"> <?php /** * load the html_define for the page_5 page */ require($define_page); ?> but it had no effect at all. Still no text being displayed on my Page 5. Any ideas? Thanks Gay Elston <http://www.artyfactsforcrafts.com>