Forums / General Questions / How can I do this???

How can I do this???

Locked

Started by wmorris on 5 Aug 2007, 6:39 PM · Views: 4,629

Results 1 to 20 of 40
This thread is locked. New replies are disabled.
5 Aug 2007, 6:39 PM
#1
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

How can I do this???

In the More Information box How can I change,add pages and/or links?

5 Aug 2007, 6:43 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I do this???

You would create an over-ride file for includes/modules/sideboxes/more_information.php and then add extra text or links to it as required.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Aug 2007, 7:13 PM
#3
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How can I do this???

I have done that I was creating a page information about my fund raisers at this address ~~>http://www.mtechama.com/index.php?main_page=fund_raisers it gave me an error. why is that?

5 Aug 2007, 7:41 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I do this???

What files did you create to make up your fund raisers page? I would expect to see at minimum:

  • includes/modules/pages/fund_raisers/header_php.php
  • includes/languages/english/YOUR_TEMPLATE/fund_raisers.php and
  • includes/templates/YOUR_TEMPLATE/templates/tpl_fund_raisers_default.php

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Aug 2007, 7:53 PM
#5
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How can I do this???

I don't have this includes/templates/YOUR_TEMPLATE/templates/tpl_fund_raisers_default.php what can I do?

5 Aug 2007, 7:55 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I do this???

That's the template file for your new page. You will need to create it. What files do you have? and what do they do?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Aug 2007, 7:59 PM
#7
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How can I do this???

I got thank you, I also got another problem I got the box and "HEADER_SALES_TAXT" in the header how can I get rid of it?

5 Aug 2007, 8:10 PM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I do this???

Looks like your includes/languages/english/header.php and includes/languages/english/classic/header.php files are missing or incomplete. Maybe you didn't want a logo or tag line and edited them out of the language file without removing them from your common/tpl_header.php template.

It's also a bad idea to use classic as your template folder as all your changes risk being over-written when you next upgrade.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Aug 2007, 8:45 PM
#9
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How can I do this???

I have created a page 1 but when I go into admin Tools>Define Pages the drop down menu don't have the new page that I created.

5 Aug 2007, 9:57 PM
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I do this???

Without information about what files you have created and their functions I am unable to help you with this.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Aug 2007, 10:08 PM
#11
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How can I do this???

Here are the files I have created for Clearwire page:
this is for page 1
/includes/modules/pages/clearwire/header_php.php

<?php
/**
 * Clear Wire
 *
 * @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_1, 'false');
?>

/includes/languages/english/clearwire.php

<?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: clearwire.php 1969 2005-09-13 06:57:21Z drbyte $
//

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

define('TEXT_INFORMATION', 'Clear Wire information goes here.');
?>

/includes/templates/templates_defualt/templates/tpl_clearwire_default.php:

<?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_1_default.php 3464 2006-04-19 00:07:26Z ajeh $
 */
?>
<div class="centerColumn" id="pageOne">
<h1 id="pageOneHeading"><?php echo HEADING_TITLE; ?></h1>

<?php if (DEFINE_PAGE_1_STATUS >= 1 and DEFINE_PAGE_1_STATUS <= 2) { ?>
<div id="pageOneMainContent" class="content">
<?php
/**
 * require the html_define for the page_1 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>

/includes/languages/english/html_includes/define_clearwire.php

am I missing anything here?

5 Aug 2007, 10:14 PM
#12
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I do this???

Try putting a copy of /includes/languages/english/html_includes/define_clearwire.php in /includes/languages/english/html_includes/classic/define_clearwire.php

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 Aug 2007, 3:15 AM
#14
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How can I do this???

Amyone please HELP!

6 Aug 2007, 9:08 AM
#15
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I do this???

Did you move, or copy, your define_clearview.php to the includes/languages/english/html_includes/classic folder? i.e. did you leave a copy in the includes/languages/english/html_includes folder?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 Aug 2007, 2:21 PM
#16
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How can I do this???

Yes I did that but it still doesn't work

this is my /includes/languages/english/html_includes/classic/define_clearwire.php

<p><strong>Clearwire 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>
<p>This file is located in<code> /languages/english/html_includes/classic/</code></p>
<p><strong>NOTE: Always backup the files in<code> /languages/english/html_includes/your_template</code></strong></p>

and my /includes/languages/html_includes/defin_clearwire.php

<p><strong>Page 1 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>
6 Aug 2007, 2:26 PM
#17
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I do this???

The file path for the second file that you listed is incomplete. But unless it is correctly placed (whatever it's contents) the file in the classic folder that you need to amend won't be found.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 Aug 2007, 2:34 PM
#18
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How can I do this???

kuroi:

The file path for the second file that you listed is incomplete. But unless it is correctly placed (whatever it's contents) the file in the classic folder that you need to amend won't be found.

What do you mean incomplete? I don't understand?

6 Aug 2007, 2:40 PM
#19
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I do this???

It should be /includes/languages/english/html_includes/classic/define_clearwire.php not /includes/languages/html_includes/defin_clearwire.php

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 Aug 2007, 2:42 PM
#20
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: How can I do this???

kuroi:

It should be /includes/languages/english/html_includes/classic/define_clearwire.php not /includes/languages/html_includes/defin_clearwire.php

Please be more specific which file is not purpose to be in /includes/languages/html_includes/define_clearwire.php ?

and what file do I need to replace it?