Zen Cart Logo
Forums / Basic Configuration / problem with EZpages

problem with EZpages

Locked

Views: 1,941

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
27 Jul 2006, 2:22 PM
#1
whiteboxer avatar

whiteboxer

New Zenner

Join Date:
Apr 2006
Location:
Columbus, OH
Posts:
97
Plugin Contributions:
0

problem with EZpages

I created a couple of pages for my site using the EZpages option in the admin. The problem I'm having is that I don't know where they reside so I can add links to them in the navigation. Anyone know where the default location for EZpages is?

Also with a similar issue, I downloaded a couple of additional pages for the site (about_us.php). Are there any issues in moving these into the main directory (eg, breaking links to essential files to make them work properly)?

27 Jul 2006, 2:42 PM
#2
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: problem with EZpages

To link to an EZ-page:

index.php?main_page=page&id=15

The ID is the Id number of the EZ-page you created. For some reason this doesn't seem to be documented anywhere. I should add it to the wiki.

I wouldn't go moving things around within Zen. If you use Ezpages correctly you can link directly to anything you create.

Good luck!

28 Jul 2006, 3:37 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: problem with EZpages

If you load the demo mysql db, there is a good outline for ez-page setup & use. among many other useful items

1 Aug 2006, 1:32 PM
#4
whiteboxer avatar

whiteboxer

New Zenner

Join Date:
Apr 2006
Location:
Columbus, OH
Posts:
97
Plugin Contributions:
0

Re: problem with EZpages

madk,

I added the link but the page shows up blank. The copy I entered in admin for that page doesn't show up for some reason. I'm not sure if the problem is with the page/copy itself or with the link. Any suggestions?

1 Aug 2006, 2:06 PM
#5
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: problem with EZpages

Post a bit more info like the link itself and the page contents/id number.

1 Aug 2006, 5:47 PM
#6
whiteboxer avatar

whiteboxer

New Zenner

Join Date:
Apr 2006
Location:
Columbus, OH
Posts:
97
Plugin Contributions:
0

Re: problem with EZpages

Here's how the link is coded in includes/languages/english/header.php:

<li><a href="http://royalcoffeeandtea.com//index.php?main_page=page&id=5">BREWING TIPS</a></li>

in the admin widow, I have No selected for Open New Window, Page in SSL, Sidebox, and TOC. I have Yes selected for Header and Footer, with the number 5 as the Order Number for both.

The following text is in the HTML area box:

<h1>How to Brew the Best-Tasting Coffee at Home</h1> <h2 class="firsttext">How often would you choose a bad cup of coffee over a well-brewed cup? If you enjoy your coffee, probably hardly ever if at all. However, most people think the best-brewed coffee is only available in expensive coffee shops. The truth is, you CAN make a great cup of coffee at home. The trick is knowing what you're doing. So many factors go into determining the difference between a great cup of coffee and a bad one. Here's some tips on improving your own coffee.</h2> <h3>Great coffee starts with great beans</h3> <p>This should be a no-brainer. If its not 100% arabica beans, its not the best. Most inexpensive coffee available in the grocery store is either 100% robusto beans (inferior quality) or a combination of arabica and robusto.</p> <h3>The best beans are fresh-roasted in small batches</h3> <p>Coffee beans begin to lose their flavor in about three weeks after their roasted. Unfortunately, you usually have no idea how long coffee has sat on the shelf, whether in the grocery store or in the coffee shop chain. We date every bag of coffee we sell with a roast date. That way you know when your coffee has sat too long.</p> <p>Also, roasting in small batches enables a more-even roasting, giving your coffee a more consistent flavor. Large batch roasting can lead to some beans being either under-roasted or burnt.</p> <h3>Grind your beans to the brewers specifications</h3> <p>Each coffee maker is different, and coffee beans should be ground in the way that brings out the best flavor. French presses require a coarser ground, while espresso makers require very fine grounds. Even the average coffee maker could require different grounds, depending on what filter they take. For example, cone-shaped filters need a finer ground than flat-bottomed filters.</p> <p>The best way to grind your beans is to use a bore-style grinder. The common blade grinders can burn the coffee if ground too long, and affect the taste. However, the best bore grinders are also fairly expensive. The best advice is be careful to not overgrind your coffee.</p> <h3>Measure your coffee</h3> <p>For many this is a measure of taste, but we find the best coffee grounds-to-water ratio is two level teaspoons of grounds to 8 oz. of water. Try it and see if it makes a difference.</p> <h3>Brew your coffee at proper temperatures</h3> <p>Coffee is best when brewed between 190 and 205 degrees F. Unfortunately, most inexpensive coffee brewers only get to around 180-185 degrees. Which leads us to our next tip...</p> <h3>Use proper brewing equipment</h3> <p>We recommend investing in a AquaBrew or Bunn coffee maker. They make brewers that use proper brewing temperatures and saturation. You will pay a bit more though. Better yet, invest in a French Press.</p> <h3>Use clean-filtered water</h3> <p>Coffee is primarily water, so it makes sense that the quality of that water affects the taste. We recommend using filtered water (bottled or from a filtration system). Try it once. We guarantee you won't want to use anything else. <h3>Store brewed coffee in thermal servers</h3> <p>We can't emphasize this enough...DO NOT USE BURNERS. They do more that keep your coffee warm, they actually burn it. Thermal carafes do a great job in preserving coffee's warmth without affecting the taste. <h3>Drink as nature intended...black</h3> <p>Many won't agree on this point, and that's ok. We think you experience the true flavor of our coffee without adding anything to it. Save the cream and sugar for the cheaper brands.</p>

Nothing is in the internal and external URL areas

1 Aug 2006, 6:00 PM
#7
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: problem with EZpages

I checked out the link and you have 2 problems.

  1. Your link contains a double /. This shouldn't affect the link but you may want to correct it as I don't know how other browsers handle it.

  2. Your errors are:

Warning: main(includes/templates/template_default/sideboxes/tpl_blank_sidebox.php): failed to open stream: No such file or directory in /home/content/r/o/y/royalcoffee/html/includes/modules/sideboxes/testbox.php on line 31

Looks like did a no no and edited something in the default dir. I would double check that file and make sure it exists. If not grab a default one from a fresh install and then when you edit your makes sure you do it in an override folder.

Once you get that figured out we'll move onto why you can't see your ez pages.

Good luck!

1 Aug 2006, 8:05 PM
#8
whiteboxer avatar

whiteboxer

New Zenner

Join Date:
Apr 2006
Location:
Columbus, OH
Posts:
97
Plugin Contributions:
0

Re: problem with EZpages

I'm trying to create custom sideboxes and didn't code the display text properly, hence the error message. I shut off the box for now.

1 Aug 2006, 9:56 PM
#9
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: problem with EZpages

After looking over your HTML source I cannot see anything wrong. All your content just seems to be missing. Did you happen to edit tpl_main_page.php? If so post it's contents.

1 Aug 2006, 11:34 PM
#10
whiteboxer avatar

whiteboxer

New Zenner

Join Date:
Apr 2006
Location:
Columbus, OH
Posts:
97
Plugin Contributions:
0

Re: problem with EZpages

All I remember doing is commenting out a few items (like the banners). Here's the code:

if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}

$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = str_replace('_', '', $_GET['main_page']);
?>

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>> <?php if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> <div id="mainWrapper"> <?php /** * prepares and displays header output * */ require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper"> <tr> <?php if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) { // global disable of column_left $flag_disable_left = true; } if (!isset($flag_disable_left) || !$flag_disable_left) { ?> <?php } ?>
<td valign="top">
<!-- bof breadcrumb <?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?> <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div> <?php } ?> eof breadcrumb --> <?php if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> <?php /** * prepares and displays center column * */ require($body_code); ?> <?php if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?></td> <?php if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) { // global disable of column_right $flag_disable_right = true; } if (!isset($flag_disable_right) || !$flag_disable_right) { ?> <td id="navColumnTwo" class="columnRight" style="width: <?php echo COLUMN_WIDTH_RIGHT; ?>"> <?php /** * prepares and displays right column sideboxes * */ ?> <div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td> <?php } ?> </tr> </table> <?php /** * prepares and displays footer output * */ require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?> </div> <!--bof- parse time display --> <?php if (DISPLAY_PAGE_PARSE_TIME == 'true') { ?> <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div> <?php } ?> <!--eof- parse time display --> <!--bof- banner #6 display <?php if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> eof- banner #6 display <p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0 Transitional</a></p> -->