Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2007
    Posts
    2
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 Code:
    <?php if (DEFINE_PAGE_2_STATUS >= 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 ...
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Aug 2007
    Posts
    2
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: About Us Page and extras not working

    Quote Originally Posted by Ajeh View Post
    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 Code:
    <?php if (DEFINE_PAGE_2_STATUS >= 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 ...
    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
    ######
    http://www.artyfactsforcrafts.com

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    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: v1.5.5]
    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!

  6. #6
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: About Us Page and extras not working

    Quote Originally Posted by Ajeh View Post
    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 ...
    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.
    ######
    http://www.artyfactsforcrafts.com

  7. #7
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default 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
    ######
    http://www.artyfactsforcrafts.com

  8. #8
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: About Us Page and extras not working

    Quote Originally Posted by Ajeh View Post
    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 Code:
    <?php if (DEFINE_PAGE_2_STATUS >= 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 ...
    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
    ###### Elston
    http://www.artyfactsforcrafts.com

  9. #9
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: About Us Page and extras not working

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

  10. #10
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default 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
    ###### Elston
    http://www.artyfactsforcrafts.com

 

 

Similar Threads

  1. v153 mysite/extras/ipncheck.php page not found
    By jsteggy in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 28 Jul 2014, 02:50 PM
  2. v139g ez Pages not working and inks showing PAGE NOT FOUND
    By irishshopper in forum Basic Configuration
    Replies: 5
    Last Post: 18 Jun 2012, 07:21 PM
  3. Link to logo and Home Page button not working
    By mommyof2 in forum General Questions
    Replies: 4
    Last Post: 8 Nov 2009, 12:20 AM
  4. New page added and not working
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Jan 2008, 02:20 PM
  5. About Us Page not working
    By tertius in forum Basic Configuration
    Replies: 10
    Last Post: 5 Apr 2007, 02:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR