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