Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Unable to make a text appear from the sidebox

    Contributions are delayed on releases until reviewed ... usually they are done in 24-72 hours ...
    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!

  2. #12
    Join Date
    Jan 2007
    Posts
    26
    Plugin Contributions
    0

    Default Re: Unable to make a text appear from the sidebox

    Quote Originally Posted by jean View Post
    In fact the solution was simple : A typo in section 6.

    <?php if (DEFINE_ABOUT_US_STATUS >= 1) { ?>
    <div id="about_usMainContent" class="content">
    <?php

    should read : <?php if (DEFINE_ABOUT_US >= 1) { ?>
    Hi Jean, thanks for getting back to us.
    I removed "STATUS" like you did but still the same result (text not showing up)
    Because I'm quite a nitwit in this mather of programming I really mis the clue in al the messages posted after the one I'm qouting here.

    What I wonder is that it might be the case that those variables are tested for their value ">=1" I have no idea though where they are set to that value. Could anyone tell me that?

    regards

    Lex.

  3. #13
    Join Date
    Jan 2007
    Posts
    26
    Plugin Contributions
    0

    Default Re: Unable to make a text appear from the sidebox

    Some update,

    In my case, I wasn;t adding an about_us page but a page called broadcast.
    I started my includes/templates/delta-843/templates/tpl_broadcast_default.php like this :
    ########################################################################################################################____
    <?php
    /**
    * Page Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_privacy_default.php 3464 2006-04-19 00:07:26Z ajeh $
    */
    ?>
    <div class="centerColumn" id="broadcast">
    <h1 id="broadcastDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

    <?php if (DEFINE_BROADCAST_STATUS>= 1 and DEFINE_BROADCAST_STATUS <= 2) { ?>
    <div id="broadcastDefaultMainContent" class="content">
    <?php
    /**
    * require the html_define for the broadcast page
    */
    require($define_page);
    ?>
    </div>
    <?php } ?>

    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
    </div>
    ########################################################################################################################___
    I then deleted those two lines:

    <?php if (DEFINE_BROADCAST_STATUS>= 1 and DEFINE_BROADCAST_STATUS <= 2) { ?>

    <?php } ?>

    And the text finally showed!

    Hence still my question:
    Where should it be set that DEFINE_BROADCAST_STATUS >=1 and <=2 ?

    Regards,

    Lex.

  4. #14
    Join Date
    Jan 2004
    Posts
    18
    Plugin Contributions
    1

    Default Re: Unable to make a text appear from the sidebox

    Lexz.

    In the exemple that I sent you you have a sql statement. This statement that you will have to modify to deserve your project (Broadcast instead of about_us) should be put in the database. (I did it by phpMyadmin). At that moment, in
    admin/COnfiguration/Define Page Status, you will be able to set the page like the other ones in the information box.

    Hope it is clear enough.

    jean

  5. #15
    Join Date
    Jan 2007
    Posts
    26
    Plugin Contributions
    0

    Default Re: Unable to make a text appear from the sidebox

    Jean,

    Ok I think it's getting clear now. I haven't received your mail yet but I trust this will solve my issue.
    Thanks a lot Jean and I will send you my adres again cause that might have gone wrong.

    Regards,

    Lex.

  6. #16
    Join Date
    Jan 2004
    Posts
    18
    Plugin Contributions
    1

    Default Re: Unable to make a text appear from the sidebox

    I sent it to you the same day I receive your mail.

    Anyway, here is the sql statement:
    -- phpMyAdmin SQL Dump
    -- version 2.9.0.2
    -- http://www.phpmyadmin.net
    --
    -- Serveur: localhost
    -- Généré le : Jeudi 25 Janvier 2007 à 07:00
    -- Version du serveur: 4.0.25
    -- Version de PHP: 4.4.2
    --

    UPDATE INTO `zen_configuration` VALUES (655, 'define About us', 'DEFINE_ABOUT_US', '1', 'Enable the Defined About Us 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, 68, '2007-01-12 15:37:39', '0001-01-01 00:00:00', NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');


    Please take note I didn't create anything. I just modified and used what it was already in the script.

    Hope everything will be OK.

    Jean

  7. #17
    Join Date
    May 2007
    Location
    york, pa
    Posts
    98
    Plugin Contributions
    0

    Default Re: Unable to make a text appear from the sidebox

    Hi to all.
    Need help with the about us sidebox_link_to_about_us_with_admin_control
    I'm getting a error
    http://blackfriday717.com/index.php?main_page=about_us
    this is the page
    thanks

  8. #18
    Join Date
    May 2007
    Location
    york, pa
    Posts
    98
    Plugin Contributions
    0

    Default Re: Unable to make a text appear from the sidebox

    Hi need help
    get this error:

    Warning: main(includes/templates/template_default/templates/tpl_about_us_default.php) [function.main]: failed to open stream: No such file or directory in /home/4640/domains/blackfriday717.com/html/includes/templates/template_default/common/tpl_main_page.php on line 119

    Warning: main(includes/templates/template_default/templates/tpl_about_us_default.php) [function.main]: failed to open stream: No such file or directory in /home/4640/domains/blackfriday717.com/html/includes/templates/template_default/common/tpl_main_page.php on line 119

    Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_about_us_default.php' (include_path='.:/usr/local/php-4.4.7-1/share/pear') in /home/4640/domains/blackfriday717.com/html/includes/templates/template_default/common/tpl_main_page.php on line 119

    on the about us page

  9. #19
    Join Date
    Jun 2007
    Location
    Cymru
    Posts
    124
    Plugin Contributions
    0

    Default Re: Unable to make a text appear from the sidebox

    I've tried to follow the points at the top of this post to add two new pages to the 'More Information' Sidebox BUT I seem to be getting the same problem as many other people. The two pages have been created, the links appear in the 'More Information' Sidebox but no text appears on the pages!

    Here is what I did:

    1) In /includes/filenames.php

    I've added:
    define('FILENAME_PAGE_5', 'page_5');
    define('FILENAME_DEFINE_PAGE_5', 'define_page_5');

    2) In /includes/modules/pages/

    I created folder page_5 and a file header_php.php

    3) In /includes/modules/pages/page_5/header_php.php

    I have written

    <?php
    /**
    * Page 5
    *
    * @package page
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $
    */

    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    $breadcrumb->add(NAVBAR_TITLE);

    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_5, 'false');
    ?>

    4) In /includes/modules/sideboxes/more_information.php

    I have added:

    if (DEFINE_PAGE_5_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';
    }

    5) In includes/templates/template_default/templates/

    I created a new file called : tpl_page_5_default.php

    6) In this file, I put the following:

    <?php
    /**
    * Page Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_page_5_default.php 3464 2006-04-19 00:07:26Z ajeh $
    */
    ?>
    <div class="centerColumn" id="pageFive">
    <h1 id="pageFiveHeading"><?php echo HEADING_TITLE; ?></h1>

    <?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);
    ?>
    </div>
    <?php } ?>

    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
    </div>

    7) In /includes/languages/english.php, I've added

    // information box text in sideboxes/more_information.php - were TUTORIAL_
    define('BOX_INFORMATION_PAGE_5', 'Links');

    8) In /includes/languages/english/ I've added : page_5.php

    9) In /includes/languages/english/about_us.php

    I've again copied from the other (number) files, just replaced the other number with 5:

    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | [email protected] so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: page_5.php 1969 2005-09-13 06:57:21Z drbyte $
    //

    define('NAVBAR_TITLE', 'Links');
    define('HEADING_TITLE', 'Links');

    define('TEXT_INFORMATION', 'Page 5 information goes here.');
    ?>

    10) In /includes/languages/english/html_includes/ I've added : define_page_5.php


    11) in /includes/languages/english/html_includes/define_page_5.php

    Is included the general text:

    <p><strong>Page 5 Sample Text ...</strong></p>
    <p>This section of text is from the Define Pages Editor located under Tools in the Admin.</p>
    <p>To remove this section of the text, delete it from the Define Pages Editor.</p>

    When I go to the page http://www.cadwyngifts.com/page_5.html it opens with everything showing correctly except that there's no text!

    Where have I gone wrong?!?!?!

  10. #20
    Join Date
    Jun 2007
    Location
    Cymru
    Posts
    124
    Plugin Contributions
    0

    Default Re: Unable to make a text appear from the sidebox

    I've now used the 'Developers Tool Kit' under Tools in stockroom, and looked for all references to page_2 and page_5 , and I can confirm that page_5 is a complete clone of page_2, therefore I cannot understand why the text appears fine on Page 2, but not the new Page 5 that I have created

    The only thing I haven't done is to add any sql statement to the database. Is this where I'm going wrong?

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. I Want to Make Products Appear from Newest to Oldest
    By keickholt13 in forum Customization from the Admin
    Replies: 3
    Last Post: 16 May 2011, 12:48 AM
  2. How Do I Make EZ-Pages Appear on Sidebox?
    By zcnb in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Jul 2008, 03:29 PM
  3. How Do I Make the Link Text BOLD in My CATEGORIES Sidebox?
    By mtrantas in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jan 2008, 03:34 AM
  4. How to Make Text Appear as BOLD
    By mtrantas in forum Basic Configuration
    Replies: 1
    Last Post: 26 Jan 2008, 04:30 PM
  5. How Do I Make the Text Appear as BOLD in My CATEGORIES Sidebox
    By mtrantas in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 26 Jan 2008, 05:02 AM

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