Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default 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/inde..._page=about_us

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

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default 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
    Last edited by birdoasis; 6 May 2007 at 10:39 PM.

  3. #3
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default 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.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 Code:
    <?php if (DEFINE_ABOUT_US_STATUS >= 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:
    PHP Code:
    insert into configuration (configuration_titleconfiguration_keyconfiguration_valueconfiguration_descriptionconfiguration_group_idsort_orderlast_modifieddate_addeduse_functionset_functionvalues ('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: v1.5.5]
    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!

  5. #5
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default 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.


  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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?
    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: v1.5.5]
    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. #7
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default 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.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  9. #9
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default 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

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    You are most welcome ...

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

    But think of all you learned ...
    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: v1.5.5]
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Remove Define Page x from Define Page Status
    By krazykev in forum Basic Configuration
    Replies: 1
    Last Post: 15 Feb 2009, 08:33 PM
  2. about us and define page status
    By imaginarynumber in forum Customization from the Admin
    Replies: 3
    Last Post: 19 Jan 2009, 11:44 PM
  3. Define page status and sql database
    By ChristopherDoiron in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 7 Aug 2008, 09:38 PM
  4. Page created not on Admin. Define Page Status
    By beautifulminds-us in forum Basic Configuration
    Replies: 21
    Last Post: 23 Aug 2007, 12:12 PM
  5. Page Editor Not Working Or Define Page Status
    By awoman in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 30 Sep 2006, 11:23 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