Zen Cart Logo
Forums / General Questions / How do EZ-Pages work?

How do EZ-Pages work?

Views: 245,840

Results 261 to 280 of 570
4 Aug 2008, 5:09 PM
#261
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

How do EZ-Pages work?

When I click on that link, I am asked to log in as admin.
Your syntax is wrong, I believe it includes the zenid.
Look a little earlier in the thread, I gave an example of how to build a working hyperlink.
Later kuroi suggested an alternate method using the built-in ZC function, both work.
In this case, you are linking to a page outside EZ pages, not to an EZ page, so the function won't work.
Just use the example, go to that image in your browser, look at the address bar and leave out your site info and the zen id.
Example:
<a href="index.php?...your image URL" target="blank"> your text or image</a>

4 Aug 2008, 8:11 PM
#262
dableys avatar

dableys

New Zenner

Join Date:
Apr 2008
Location:
Westmeath, Ireland
Posts:
30
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hi there

Thanks for your help, all is working now, i didn't need to use the <a href" html at all when i created the link through the ezpages builder. Can't understand why it wouldn't work the first time.

:clap:

darbleys

11 Aug 2008, 3:36 AM
#263
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: How do EZ-Pages work?

I want to add Google Analytics code to my EZ pages.
For the define pages it is easy: I just add the code before the </body> tag in the common tpl_main_page.php.
Now, I am looking at the template for EZ pages and there is no </body> tag.
Should I add it before the last </div> tag?
Thanks.

11 Aug 2008, 9:14 AM
#264
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do EZ-Pages work?

ckosloff:

I want to add Google Analytics code to my EZ pages.
For the define pages it is easy: I just add the code before the </body> tag in the common tpl_main_page.php.
Now, I am looking at the template for EZ pages and there is no </body> tag.
Should I add it before the last </div> tag?
Thanks.The body tag for all pages is in the common/tpl_main_page.php template.

11 Aug 2008, 7:06 PM
#265
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: How do EZ-Pages work?

Kuroi,

Thanks for answer, but please clarify.
Are you saying that's all I need?
The body tag in tpl_main_page.php will work in ALL pages, including EZ, which have a different tpl?
Best regards.

PS.
Disregard.
Never mind, the answer is YES.

14 Aug 2008, 1:09 PM
#266
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: How do EZ-Pages work?

Is EZ Pages going to be multilanguage as standard in the next ZC release, 1.4?
It is quite strange to have splendidly working language system otherwise but the informational pages are always stuck with the idea of non-perfect multilingual content since the mod has some issues and the multilingual usage is not smooth.

Elli

16 Aug 2008, 3:54 AM
#267
erinl avatar

erinl

New Zenner

Join Date:
May 2007
Posts:
62
Plugin Contributions:
0

Re: How do EZ-Pages work?

I'm want to use EZ-Pages for my FAQ. My intention was to use internal links to document-general pages.

When I add the internal link, the listing on the EZ-Pages is gone.

http://www.momandbabyboutique.ca/servlet/index.php?main_page=page&id=2&chapter=1

There is supposed to be a listing called Cloth diaper guide. If I remove internal link then the listing shows again.

Any ideas why it is missing? what I should do to fix it.

Thanks,

Erin Laver
https://www.momandbabyboutique.ca/servlet

17 Aug 2008, 12:24 AM
#268
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: How do EZ-Pages work?

How do you add php code to an ez-page?

I wan't to put this:

<?php

	require_once("rsslib.php");

	$url = "http://simplefeed.consumerreports.org/rss/?f=96678890-01dc-11dc-3c7e-00001a1a9134";

	echo RSS_Display($url, 100);

?>

into my More Information ez-pages, but haven't found an answer by searching, so, thought I'd ask.:P

17 Aug 2008, 6:38 AM
#269
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do EZ-Pages work?

wtashby:

How do you add php code to an ez-page?It's explained here. Though personally I see this as a bit of a hack and would recommend building your pages with PHP as proper pages and then add them to your menus as internal links via EZ-Pages

17 Aug 2008, 6:41 AM
#270
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do EZ-Pages work?

@erinl

I can't see anything wrong with your FAQ (apart from the site being painfully slow to load). Did you fix this already?

17 Aug 2008, 8:34 PM
#271
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: How do EZ-Pages work?

kuroi:

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.

18 Aug 2008, 4:43 AM
#272
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

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. :cool:

24 Aug 2008, 5:51 PM
#273
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

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.

28 Aug 2008, 12:28 AM
#274
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

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.

28 Aug 2008, 7:06 AM
#275
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do EZ-Pages work?

ckosloff:

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.

28 Aug 2008, 7:47 PM
#276
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: How do EZ-Pages work?

kuroi:

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?

29 Aug 2008, 3:10 PM
#277
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

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.

29 Aug 2008, 3:13 PM
#278
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do EZ-Pages work?

ckosloff:

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

29 Aug 2008, 4:46 PM
#279
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: How do EZ-Pages work?

kuroi:

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 Sep 2008, 4:46 PM
#280
neo2008 avatar

neo2008

New Zenner

Join Date:
Aug 2008
Posts:
3
Plugin Contributions:
0

Re: How do EZ-Pages work?

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