Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jul 2006
    Location
    UK
    Posts
    158
    Plugin Contributions
    0

    Default Adding text boxes with ezpages

    Hi,

    I used to use this solution on V1.3.9h:

    <div id="contact_content">
    <?php
    $page_query = $db->Execute("SELECT pages_html_text FROM ezpages WHERE pages_title='Contact Us Bottom'");
    $seo_text = $page_query->fields['pages_html_text'];
    echo $seo_text;
    ?>
    </div>

    But it doesn't work on V1.5.1, I get the following error message:
    WARNING: An Error occurred, please refresh the page and try again.

    Does anyone know if it's possible to do on V1.5.1 and if so how please?


  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Adding text boxes with ezpages

    I used to use this solution on V1.3.9h:
    And in what file did you use this?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2006
    Location
    UK
    Posts
    158
    Plugin Contributions
    0

    Default Re: Adding text boxes with ezpages

    Quote Originally Posted by kobra View Post
    And in what file did you use this?
    templates/classic/templates/tpl_contact_us_default.php

    It's from this thread http://www.zen-cart.com/showthread.p...on-to-homepage


  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Adding text boxes with ezpages

    Do you have a define page named "Contact Us Bottom"
    With the spaces??
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jul 2006
    Location
    UK
    Posts
    158
    Plugin Contributions
    0

    Default Re: Adding text boxes with ezpages

    Hi Kobra,

    No, it's an ezpage.

    Following your suggestion I tried closing the gaps but I still got the original error.

    This all worked fine as it is on my 1.3.9h version.


  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Adding text boxes with ezpages

    This all worked fine as it is on my 1.3.9h version
    Compare files & admin settings for this on the 1.5.1 install to your 1.3.9h install
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jul 2006
    Location
    UK
    Posts
    158
    Plugin Contributions
    0

    Default Re: Adding text boxes with ezpages

    Hi Kobra,

    I copied all admin settings when doing the rebuild. I've double checked my ezpage settings and ezpages. Anywhere else you think I should look please?

    Many thanks for your time.

  8. #8
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding text boxes with ezpages

    try

    <div id="contact_content">
    <?php
    $page_query = $db->Execute("SELECT pages_html_text WHERE ezpages.pages_title='Contact Us Bottom'");
    $seo_text = $page_query->fields['pages_html_text'];
    echo $seo_text;
    ?>
    </div>

  9. #9
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding text boxes with ezpages

    this should work as well

    <?php
    $sql = "select pages_html_text from " . TABLE_EZPAGES . " where pages_title = 'Contact Us Bottom'";
    $seo_text = $db->Execute($sql);
    echo $seo_text->fields['pages_html_text']
    ?>

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding text boxes with ezpages

    Yes, this would take care of the possibility that your new installation uses a db table prefix. A hard-coded table name like you show would not be able to account for any prefix, so you would get a "not found" kind of error when looking if your new site uses a prefix.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Problem with Text Boxes Turning from White To Transparent..
    By JennH in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Apr 2010, 05:46 PM
  2. No hover in Information & EZPages boxes
    By DebiWebi in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Aug 2009, 08:48 PM
  3. Help with adding Text Editor
    By caryn in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Nov 2006, 11:08 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