Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2005
    Posts
    63
    Plugin Contributions
    0

    Default More fun w/ extra pages!

    I know this topic is thoroughly exhausted, but I still need to splash a little water on it... I've read & re-read so many posts regarding this subject, it feels like my head is about to explode! Unfortunately, I couldn't find a solution (or similarity) to my particular issue...

    I've tried all of the older contribs, and I think that the Extra Pages1 will work the best for me -- IF I can get it to work...

    I'm using v1.2.7, and w/ all of my mods, I'll be staying w/ it for a while (at some point it HAS to be more about selling & less about tweaking).

    In a nutshell, I'm seeing all of my pages in Admin (Define Pages Status & Define Pages Editor), but I'm NOT seeing them in my information sidebox. I am using the Better Categories contrib, but I can't see where that would make much of a difference.

    I do have my FAQ defined as F.A.Q. (in all areas), so I don't know if "periods" will effect anything.

    Anyway, I've tried everything that I can think of, so now I'm hoping that one of our adept Zenners can give me some advise - and save me from a date w/ a padded cell...

    Thank you.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: More fun w/ extra pages!

    Have you added the code for the new links to your sidebox?

  3. #3
    Join Date
    Sep 2005
    Posts
    63
    Plugin Contributions
    0

    Default Re: More fun w/ extra pages!

    Quote Originally Posted by Kim
    Have you added the code for the new links to your sidebox?

    Hi, Kim. Thanks for your reply.

    Yes, I do have that added to my sidebox info files. Here are some examples of my code:


    extra_pages_filenames.php

    Code:
    // define the extra page filenames
    define('FILENAME_DEFINE_RETURNS', 'define_returns');
    define('FILENAME_DEFINE_ABOUT_US', 'define_about_us');
    define('FILENAME_DEFINE_F.A.Q.', 'define_f.a.q.');
    define('FILENAME_DEFINE_NEWS', 'define_news');
    define('FILENAME_DEFINE_WANTED', 'define_wanted');
    define('FILENAME_DEFINE_PAGE_10', 'define_page_10');
    ?>

    filenames.php

    Code:
    // define page editor files
    define('FILENAME_DEFINE_RETURNS', 'define_returns');
    define('FILENAME_DEFINE_ABOUT_US', 'define_about_us');
    define('FILENAME_DEFINE_F.A.Q.', 'define_f.a.q.');
    define('FILENAME_DEFINE_NEWS', 'define_news');
    define('FILENAME_DEFINE_WANTED', 'define_wanted');
    define('FILENAME_DEFINE_PAGE_10', 'define_page_10');
    
    -----------------------------------------------------------
    **What about this area?**
    
    define('FILENAME_POPUP_IMAGE', 'popup_image');
    define('FILENAME_PAGE_2', 'page_2');
    define('FILENAME_PAGE_3', 'page_3');
    define('FILENAME_PAGE_4', 'page_4');
    define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten');
    
    ------------------------------------------------------------

    includes/languages/english.php

    Code:
    define('BOX_INFORMATION_RETURNS', 'Returns');
    define('BOX_INFORMATION_ABOUT_US', 'About Us');
    define('BOX_INFORMATION_F.A.Q.', 'F.A.Q.');
    define('BOX_INFORMATION_NEWS', 'News');
    define('BOX_INFORMATION_WANTED', 'Wanted');
    define('BOX_INFORMATION_PAGE_10', 'page 10');

    includes/modules/pages/...

    Code:
    **Example for the "about us" file**
    
    
    // include template specific file name defines
      $define_about_us = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', 
    FILENAME_DEFINE_ABOUT_US, 'false');
    ?>
    includes/modules/sideboxes/...

    more_information.php

    Code:
    $more_information[] = '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . BOX_INFORMATION_HOME . '</a>';
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
    $more_information[] = '<a href="' . zen_href_link(FILENAME_RETURNS) . '">' . BOX_INFORMATION_RETURNS . '</a>';
    $more_information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>';
    $more_information[] = '<a href="' . zen_href_link(FILENAME_F.A.Q.) . '">' . BOX_INFORMATION_F.A.Q. . '</a>';
    $more_information[] = '<a href="' . zen_href_link(FILENAME_NEWS) . '">' . BOX_INFORMATION_NEWS . '</a>';
    $more_information[] = '<a href="' . zen_href_link(FILENAME_WANTED) . '">' . BOX_INFORMATION_WANTED . '</a>';
    $more_information[] = '<a href="' . zen_href_link(FILENAME_page_10) . '">' . BOX_INFORMATION_PAGE_10 . '</a>';
    information.php

    Code:
    unset($information);
      $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_SHIPPING) . 
    
    '">' . BOX_INFORMATION_SHIPPING . '</a></div>';
     $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_RETURNS) . 
    '">' . BOX_INFORMATION_RETURNS . '</a></div>';
      $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PRIVACY) . 
    '">' . BOX_INFORMATION_PRIVACY . '</a></div>';
      $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_CONDITIONS) . 
    
    '">' . BOX_INFORMATION_CONDITIONS . '</a></div>';
     $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_ABOUT_US) . 
    '">' . BOX_INFORMATION_ABOUT_US . '</a></div>';
      $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_CONTACT_US) . 
    
    '">' . BOX_INFORMATION_CONTACT . '</a></div>';
     $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_F.A.Q.) . 
    '">' . BOX_INFORMATION_F.A.Q. . '</a></div>';
     $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_NEWS) . 
    '">' . BOX_INFORMATION_NEWS . '</a></div>';
     $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_WANTED) . 
    '">' . BOX_INFORMATION_WANTED . '</a></div>';
     $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_2) . 
    '">' . BOX_INFORMATION_PAGE_2 . '</a></div>';
    $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_3) . 
    '">' . BOX_INFORMATION_PAGE_3 . '</a></div>';
    $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_4) . 
    '">' . BOX_INFORMATION_PAGE_4 . '</a></div>';
     $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_10) . 
    '">' . BOX_INFORMATION_PAGE_10 . '</a></div>';
    $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_DEFAULT) . 
    '">' . BOX_INFORMATION_PAGE_1 . '</a></div>';

    In some define areas I have "about us" and in others, "about_us". Basically, I just followed the format of the previously-named pages (e.g. 'page_2' or 'page 2'), so I'm assuming this is correct (or irrelevant).

    Do extra_pages_filenames.php & filenames.php coexist, or is extra_pages unnecessary if defines are added to filenames.php? I've tried one, the other & both together, and found no difference. I also have a question inserted in the above filenames.php code box, in case it was missed.

    Any input on this matter will be GREATLY appreciated!!! Like I said, this is driving me nuts...

  4. #4
    Join Date
    Sep 2005
    Posts
    63
    Plugin Contributions
    0

    Default Re: More fun w/ extra pages!

    Check.

    Check, one, two...

    <tap><tap>

    Is this thing on?

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

    Default Re: More fun w/ extra pages!

    I believe this is a no-no in php:
    PHP Code:
    define('BOX_INFORMATION_F.A.Q.''F.A.Q.'); 
    The periods in the constant name is like saying take the following constants:
    BOX_INFORMATION_F
    A
    Q

    And combine them together ... and could produce some very bad results ...
    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!

  6. #6
    Join Date
    Sep 2005
    Posts
    63
    Plugin Contributions
    0

    Default Re: More fun w/ extra pages!

    Quote Originally Posted by Ajeh
    I believe this is a no-no in php:
    PHP Code:
    define('BOX_INFORMATION_F.A.Q.''F.A.Q.'); 
    The periods in the constant name is like saying take the following constants:
    BOX_INFORMATION_F
    A
    Q

    And combine them together ... and could produce some very bad results ...

    Hi Linda,

    Thanks for your input.

    I, too, thought that may be the problem (see first post), but sadly enough it isn't... I've spent countless hours exhausting every possible option, so I guess it's time to move on. Very frustrating...

 

 

Similar Threads

  1. v139h Product download page blank - More fun than it sounds
    By SgtPepper in forum General Questions
    Replies: 6
    Last Post: 7 Nov 2012, 11:23 PM
  2. Extra pages to More Info. Add On
    By bluelightnin6 in forum Addon Sideboxes
    Replies: 0
    Last Post: 10 Jan 2012, 10:28 PM
  3. more of the Fun Stuff..
    By Soniccc in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 21 Apr 2011, 08:54 AM
  4. Fun with EZ pages and I-Frame
    By inksale in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 26 Mar 2010, 05:28 PM
  5. Add extra pages to 'More Information' Sidebox
    By bonheddwr in forum Basic Configuration
    Replies: 1
    Last Post: 28 Jul 2007, 05:59 PM

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