Page 28 of 57 FirstFirst ... 18262728293038 ... LastLast
Results 271 to 280 of 570
  1. #271
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: How do EZ-Pages work?

    Quote Originally Posted by kuroi View Post
    recommend building your pages with PHP as proper pages and then add them to your menus as internal links via EZ-Pages
    Could you point me in the right direction for doing this then(keep in mind, I am NOT a coder)? I think this would be a much better solution, and a much better learning opportunity for me as well.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  2. #272
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: How do EZ-Pages work?

    I decided to forget trying to add php to my ez-page. No one seems to have a viable solution to offer, so, I decided to go with the About Us Page mod and just create a new defines page (unless that's what everyone has been hinting at all along).

    I then added a php call inside of my new defines page to the script I wanted to use, and it works just fine. Problem solved.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  3. #273
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: How do EZ-Pages work?

    Regarding the fix to eliminate your html from wrapping around the TOC.
    Copy includes/templates/template_default/templates/tpl_page_default.php to includes/templates/CUSTOM/templates/
    Then add this after line 52 (immediately below the last </div>):
    <br class="clearBoth" />
    The class comes from the main stylesheet.
    You can also do: <br clear="both" />
    If you implement this fix you won't need to add extra spaces and will achieve a consistent cross-browser look.

  4. #274
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: How do EZ-Pages work?

    I am trying to implement the "correct" way of linking within EZ pages.
    So I did:
    <a href="<php echo zen_ez_pages_link(15,2); ?>">Read more...</a>
    and got a 403 Access Forbidden error on my test site.
    Now, when I do my "incorrect" way:
    <a href="index.php?main_page=page&id=15&chapter=2">Read more...</a>
    it works.
    Please explain.
    Thanks.

  5. #275
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How do EZ-Pages work?

    Quote Originally Posted by ckosloff View Post
    I am trying to implement the "correct" way of linking within EZ pages.
    So I did:
    <a href="<php echo zen_ez_pages_link(15,2); ?>">Read more...</a>
    and got a 403 Access Forbidden error on my test site.
    Now, when I do my "incorrect" way:
    <a href="index.php?main_page=page&id=15&chapter=2">Read more...</a>
    it works.
    Please explain.
    Thanks.
    The "correct" way of linking to PHP pages is for linking TO them from PHP code. It does more than just create a link. It handles whether the link is to an external or internal page, whether it should be opened in a new window or tab, and whether the page being linked to should be encrypted. This is why it is best practise to use it when possible.

    However, EZ-Pages are designed to allow users to insert HTML onto a page not PHP, which is why you need the explicit HTML instead of a PHP function when creating a link ON an EZ-Page.

    I don't know if this explains the specific error that you got, but hope that it clarifies why each is the "correct" approach is different contexts.
    Kuroi Web Design and Development | Twitter

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

  6. #276
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: How do EZ-Pages work?

    Quote Originally Posted by kuroi View Post
    The "correct" way of linking to PHP pages is for linking TO them from PHP code. It does more than just create a link. It handles whether the link is to an external or internal page, whether it should be opened in a new window or tab, and whether the page being linked to should be encrypted. This is why it is best practise to use it when possible.

    However, EZ-Pages are designed to allow users to insert HTML onto a page not PHP, which is why you need the explicit HTML instead of a PHP function when creating a link ON an EZ-Page.

    I don't know if this explains the specific error that you got, but hope that it clarifies why each is the "correct" approach is different contexts.
    I am trying to get this to sink in.
    Since I am linking from one EZ page to another, I need the explicit HTML, whereas linking from another page, say a define page, would be best achieved using the PHP function, right?

  7. #277
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: How do EZ-Pages work?

    I answered my own question.
    However, my answer is still not satisfactory.
    I did this from a define page:
    <a href="<php echo zen_ez_pages_link(15,2); ?>">Read more...</a>
    and am still getting the 403 Access Forbidden error.
    I am using the last version of XAMPP to test.
    Is there a syntax error there?
    Anybody care to explain?
    Thanks.

  8. #278
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How do EZ-Pages work?

    Quote Originally Posted by ckosloff View Post
    <a href="<php echo zen_ez_pages_link(15,2); ?>">Read more...</a>
    Should be

    <a href="<?php echo zen_ez_pages_link(15,2); ?>">Read more...</a>
    Kuroi Web Design and Development | Twitter

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

  9. #279
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: How do EZ-Pages work?

    Quote Originally Posted by kuroi View Post
    Should be

    <a href="<?php echo zen_ez_pages_link(15,2); ?>">Read more...</a>
    Kuroi,
    Thanks for answer but it didn't work.
    Same error.
    I'm copying and pasting, so no typo involved.
    I appreciate your dedication.

  10. #280
    Join Date
    Aug 2008
    Posts
    3
    Plugin Contributions
    0

    Default Mr.

    have created ezpage and enabled it to be shown in header footer and side box but cannot see the page/link? any ideas?

 

 
Page 28 of 57 FirstFirst ... 18262728293038 ... LastLast

Similar Threads

  1. v154 Links ON ez-pages TO OTHER turned-off ez-pages don't work after upgrade
    By anduril3019 in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 19 May 2015, 09:12 AM
  2. how do i get javascript to work in the ez pages?
    By warroyo90 in forum General Questions
    Replies: 2
    Last Post: 28 Mar 2012, 05:14 AM
  3. How can I get my CSS navigation tabs to work for groups of similar pages?
    By sifuhall in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Nov 2009, 07:57 PM
  4. Replies: 3
    Last Post: 22 Jul 2008, 12:01 AM
  5. Bwahahaha How do I get ez-pages to work?
    By hodgejr in forum General Questions
    Replies: 7
    Last Post: 8 Oct 2007, 09:10 AM

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