Thread: Define_page_5

Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Define_page_5

    Using 1.3.9h

    I'm trying to add a page 5 to the more information sidebox. All works good, but the new page 5 will not show text. And it does not appear in the sitemap.

    I have edited these files:

    includes/filenames.php to read
    PHP Code:
    define('FILENAME_DEFINE_PAGE_2''define_page_2');
    define('FILENAME_DEFINE_PAGE_3''define_page_3');
    define('FILENAME_DEFINE_PAGE_4''define_page_4');
    define('FILENAME_DEFINE_PAGE_5''define_page_5'); 
    PHP Code:
    define('FILENAME_PAGE_2''page_2');
    define('FILENAME_PAGE_3''page_3');
    define('FILENAME_PAGE_4''page_4');
    define('FILENAME_PAGE_5''page_5'); 
    in includes/languages/TEMPLATE/english.php reads
    PHP Code:
    define('BOX_INFORMATION_PAGE_2''Testamonials');
      
    define('BOX_INFORMATION_PAGE_3''Media');
      
    define('BOX_INFORMATION_PAGE_4''Franchise or Not?');
      
    define('BOX_INFORMATION_PAGE_5''Savings'); 
    I added includes/languages/english/page_5.php
    PHP Code:
    define('NAVBAR_TITLE''Savings');
    define('HEADING_TITLE''Savings');
    define('TEXT_INFORMATION''Page 5 information goes here.');
    ?> 
    I added includes/modules/pages/page_5/page_5.php
    PHP Code:
    $define_page zen_get_file_directory(DIR_WS_LANGUAGES $_SESSION['language'] . '/html_includes/'FILENAME_DEFINE_PAGE_5'false'); 
    The more information sidebox works fine.
    PHP Code:
    if (DEFINE_PAGE_2_STATUS <= 1) {
        
    $more_information[] = '<a href="' zen_href_link(FILENAME_PAGE_2) . '">' $pointer BOX_INFORMATION_PAGE_2 '</a>';
      }
      if (
    DEFINE_PAGE_3_STATUS <= 1) {
        
    $more_information[] = '<a href="' zen_href_link(FILENAME_PAGE_3) . '">' $pointer BOX_INFORMATION_PAGE_3 '</a>';
      }
      if (
    DEFINE_PAGE_4_STATUS <= 1) {
        
    $more_information[] = '<a href="' zen_href_link(FILENAME_PAGE_4) . '">' $pointer BOX_INFORMATION_PAGE_4 '</a>';
    }
    if (
    DEFINE_PAGE_5_STATUS <= 1) {
        
    $more_information[] = '<a href="' zen_href_link(FILENAME_PAGE_5) . '">' $pointer BOX_INFORMATION_PAGE_5 '</a>';
      } 
    I have a includes/templates/template_default/templates/tpl_page_5_default.php
    PHP Code:
    <?php if (DEFINE_PAGE_5_STATUS >= and DEFINE_PAGE_5_STATUS <= 2) { ?>
    <div id="pageFiveMainContent" class="content">
    <?php
    /**
     * load the html_define for the page_5 default
     */
      
    require($define_page);
    ?>
    </div>
    <?php ?>
    and added to my sitemap
    PHP Code:
    <?php if (DEFINE_PAGE_2_STATUS <= '1') { ?>
                <li><?php echo '<a href="' zen_href_link(FILENAME_PAGE_2) . '">' BOX_INFORMATION_PAGE_2 '</a>'?></li>
    <?php ?>
    <?php 
    if (DEFINE_PAGE_3_STATUS <= '1') { ?>
                <li><?php echo '<a href="' zen_href_link(FILENAME_PAGE_3) . '">' BOX_INFORMATION_PAGE_3 '</a>'?></li>
    <?php ?>
    <?php 
    if (DEFINE_PAGE_4_STATUS <= '1') { ?>
                <li><?php echo '<a href="' zen_href_link(FILENAME_PAGE_4) . '">' BOX_INFORMATION_PAGE_4 '</a>'?></li>
    <?php ?>
    <?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 ?>
    So, the problem is that it does not appear on my sitemap, nor does the define page 5 text appear here:

    http://www.robertvenezia.com/atoz/in...in_page=page_5

    http://www.robertvenezia.com/atoz/in..._page=site_map

    Can someone point out what I missed?

    Thanks

  2. #2
    Join Date
    Mar 2008
    Posts
    218
    Plugin Contributions
    0

    Default Re: Define_page_5

    I would make life easy and use this:

    http://www.zen-cart.com/index.php?ma...roducts_id=804

    It does all the work for you and just add the files in the correct folders. Plus you don't have to name it define page 5, it can be whatever you want.

  3. #3
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: Define_page_5

    Thanks, but it requires a .NET framework.

    Anybody else got an idea? I looked at it again and I'm not seeing where there is a problem.

  4. #4
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Define_page_5

    You might download the About Us mod by webmiss just for the file structure
    http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=182
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

  5. #5
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: Define_page_5

    Okay then,

    Searching the forum for define_page_5 shows that others have done this. Above is correct, I forgot to include a couple of admin files, but that's how you do it. Just search files and folders for instances of page_2 and clone it.

    However, the missing link was that you must run a query that I found in the add more pages to info sidebox in the downloads,

    http://www.zen-cart.com/index.php?ma...oducts_id=1125

    or posted by Ajeh:

    http://www.zen-cart.com/forum/showth...t=85237&page=4

    PHP Code:
    insert into configuration (configuration_titleconfiguration_keyconfiguration_value
    configuration_descriptionconfiguration_group_idsort_orderlast_modifieddate_added
    use_functionset_functionvalues ('Define Page 5''DEFINE_PAGE_5_STATUS''1''Enable 
    the Defined Page 5 Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define 
    Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF'
    '25''85'
    now(), now(), NULL'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),'); 
    Oh Boy! Are we having fun yet?

 

 

Similar Threads

  1. Make a define_page_5.php
    By CookieMonster in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Jun 2014, 01:53 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