Results 1 to 10 of 570

Hybrid View

  1. #1
    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.

  2. #2
    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)

  3. #3
    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?

  4. #4
    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.

  5. #5
    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)

  6. #6
    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.

  7. #7
    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?

 

 

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

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