Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / duplicated 'define page 2' and define page status not appearing

duplicated 'define page 2' and define page status not appearing

Locked

Started by twitchtoo on 6 May 2007, 9:15 PM · Views: 5,164

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
6 May 2007, 9:15 PM
#1
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

duplicated 'define page 2' and define page status not appearing

I have duplicated all the code that points at page 2 and all the files duplicated and renamed - about_us - where page_2 was. I can now choose 'about_us' in the define pages editor but i can't see it in the configuration>define page status list. could you help?

http://www.karengunna.com/k_zen/index.php?main_page=about_us

that link works haha, but i can't turn it on or off in the admin section.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

6 May 2007, 9:34 PM
#2
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: duplicated 'define page 2' and define page status not appearing

Sorry, I was confused. I thought you wanted to get rid of it. Ok, so you've renamed it but can't edit it.

I read it again and figured out that I'm still confused.

JP

John Patrick
A Zen Cart Advocate!

6 May 2007, 11:57 PM
#3
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: duplicated 'define page 2' and define page status not appearing

ok with zen you start with pg 2 3 and 4 all set up but labelled 'page_2, page_3 and page_4' I wanted to see what it would take to call it about_us instead of page_2. i've duplicated every reference in code location of file including admin files and non override files and as i said got the page to not just load, but be referenced by the general '=about_us' link. i can not make the admin section give me the option to turn the page link on or off or the text on or off. so in admin>configuration>define page status> there is no 'about_us status' there still is page 2, 3 and 4 and all the rest of course. i have found the code that assembles that page but i have not found where it is pulling that information from.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

7 May 2007, 12:29 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: duplicated 'define page 2' and define page status not appearing

To have a new Define page appear in the dropdown, you need to have a copy of the file in the default directory as well as in your templates and overrides directory so that there is something to override ...

So if you have:
/includes/languages/english/html_includes/your_template_dir/define_about_us.php

You also must have:
/includes/languages/english/html_includes/define_about_us.php

Then, if you cloned Page 2 you would have on it:

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

If you did not add that to the configuration table, then the setting is 0 or OFF ...

You need to also add that to the configuration table:

insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('Define About Us', 'DEFINE_ABOUT_US_STATUS', '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', '90', now(), now(), NULL, 'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),');

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!

7 May 2007, 2:45 AM
#5
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: duplicated 'define page 2' and define page status not appearing

Now see, I said exactly what Linda said only I wasn't sure it was the right solution.
:lookaroun

John Patrick
A Zen Cart Advocate!

7 May 2007, 2:46 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: duplicated 'define page 2' and define page status not appearing

Dontcha hate it when you know what you mean ... just not what you say? :blink:

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!

7 May 2007, 2:59 AM
#7
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: duplicated 'define page 2' and define page status not appearing

You need to also add that to the configuration table:

where is this configuration table you speak of? the rest is all perfect, it's swtiched off like you said, i can't find this table.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

7 May 2007, 3:29 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: duplicated 'define page 2' and define page status not appearing

The configuration table is part of your database ...

This is where all of your data is stored and you can either see it in phpMyAdmin and add that insert command via the SQL ... or, you can go into your Admin ... assuming I guessed at how you named the configuration key for:
DEFINE_ABOUT_US_STATUS

NOTE: I have no idea if you called that:
DEFINE_MY_STUFF_STATUS

so you need to check the spelling before doing this ...

And go to the Tools ... Insert SQL Patches ... and paste that insert statement in there to add the configuration_key to your configuration table in your database so that this setting shows up in your Configuration ... Define Page Status ... like the other Define Page settings ...

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!

7 May 2007, 3:44 AM
#9
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: duplicated 'define page 2' and define page status not appearing

you should flag this on the top of the list of people asking about 'define page status' additions. it works, perfectly - looking back this is a really easy add in that nobody has solved so quickly in the threads i've read - i would have spent another 4 hours trying to... well you know how it is. Thank you

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

7 May 2007, 4:46 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: duplicated 'define page 2' and define page status not appearing

You are most welcome ... :smile:

Betcha this is a bad time to tell you about the About Us add-on in the downloads, eh? :eek:

But think of all you learned ... :smartalec:

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!

7 May 2007, 5:03 AM
#11
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: duplicated 'define page 2' and define page status not appearing

i'd much rather learn it, my goal is to teach myself php using this cart i'm well on my way! This is only the first cart... i can't wait to start the next one!!

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian