Forums / Addon Templates / Simple Zen Template - Support Thread

Simple Zen Template - Support Thread

Views: 127,323

Results 21 to 40 of 462
27 Aug 2006, 1:35 PM
#21
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Simple Zen Template - Support Thread

Parse error: syntax error, unexpected T_VARIABLE in /home/xxxx/xxx/xxxx/includes/templates/simple_zen/template_info.php on line 1

I had the same issue

I grabbed the template_default template_info.php, then copied in just the values, and then saved it as my new simple_zen template_info.php file....and it cleared the template_info.php error above. So, it's something with the template_info.php file that comes with the download.

The admin Template Selection manager now comes up, and I can select Simple Zen and update the Layout Boxes, but now when I call the public cart, I get the syntax error mentioned before:

[code]Parse error: syntax error, unexpected '{' in /home/user/public_html/cart/includes/templates/simple_zen/common/tpl_header.php on line 1[code]

Any idea on that one?

Many thanks :-)

27 Aug 2006, 1:43 PM
#22
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Re: Simple Zen Template - Support Thread

Oops....edit timed out.

Parse error: syntax error, unexpected '{' in /home/user/public_html/cart/includes/templates/simple_zen/common/tpl_header.php on line 1
27 Aug 2006, 2:04 PM
#23
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Simple Zen Template - Support Thread

DogTags:

I had the same issue

I grabbed the template_default template_info.php, then copied in just the values, and then saved it as my new simple_zen template_info.php file....and it cleared the template_info.php error above. So, it's something with the template_info.php file that comes with the download.

The admin Template Selection manager now comes up, and I can select Simple Zen and update the Layout Boxes, but now when I call the public cart, I get the syntax error mentioned before:

[code]Parse error: syntax error, unexpected '{' in /home/user/public_html/cart/includes/templates/simple_zen/common/tpl_header.php on line 1[code]

Any idea on that one?

Many thanks :-)

I would guess its the same issue the last person had. Combination of me being on a mac and having different handling of line breaks than windows, and one of your programs you're using is removing the line breaks, turning the file into one long line.

27 Aug 2006, 2:28 PM
#24
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Re: Simple Zen Template - Support Thread

jettrue:

I would guess its the same issue the last person had. Combination of me being on a mac and having different handling of line breaks than windows, and one of your programs you're using is removing the line breaks, turning the file into one long line.

I pulled the file into my editor, and it looked normal, not all one line.

I then enabled "special chars" to see the line breaks, and they were there as in other files I've worked with.

Saved the file and then re-uploaded, but same error.

27 Aug 2006, 3:15 PM
#25
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Re: Simple Zen Template - Support Thread

Yep, you're right. Your files are all coming across with MAC line endings. I started to convert to WIN line endings and uploaded, and then things started to work. BTW, my site is on UNIX, but the WIN line endings work okay:

CR LF

The best visualization I've seen of this is Notepad ++:

http://notepad-plus.sourceforge.net/uk/site.htm

This will very clearly display the line endings.

Thanks for this really nice template :-)

HTH

28 Aug 2006, 3:30 AM
#26
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Simple Zen Template - Support Thread

Me again!

I've uploaded another update. This time I resaved each file with a UNIX style line return (dreamweaver has the ability to adjust that in the preferences) vs. the mac style. From googling, it seems like that is the best option for files used between mac/windows/unix. It should work fine for windows users now. (Here's to hoping!)

There are no content changes, so if you've installed this and it uploaded fine for you, then no need to update anything.

29 Aug 2006, 6:56 PM
#27
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Simple Zen Template - Support Thread

I'm just trying to customize it and i'm curious how i could go about putting in background images.

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

29 Aug 2006, 8:23 PM
#28
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Simple Zen Template - Support Thread

MB1:

I'm just trying to customize it and i'm curious how i could go about putting in background images.

I would do that in the css file.

Where are you wanting a background image? For the whole page?

30 Aug 2006, 7:52 PM
#29
lynnema avatar

lynnema

New Zenner

Join Date:
Aug 2006
Posts:
22
Plugin Contributions:
0

Re: Simple Zen Template - Support Thread

This is a dumb newbie question I know, but here it goes:

This installation calls for uploading and overriding the includes folder. I don't see anything about creating a new "Simple Zen" folder under includes>templates. Will this cause all the default files in the includes folder to be lost, including the classic and default templates?

This is a beautiful template and I'm really looking forward to working with it.

Thanks!

30 Aug 2006, 9:39 PM
#30
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Simple Zen Template - Support Thread

lynnema:

This is a dumb newbie question I know, but here it goes:

This installation calls for uploading and overriding the includes folder. I don't see anything about creating a new "Simple Zen" folder under includes>templates. Will this cause all the default files in the includes folder to be lost, including the classic and default templates?

This is a beautiful template and I'm really looking forward to working with it.

Thanks!

Hi!

Actually, no, it doesn't require overwriting the includes folder.

The files are already in the correct folders:
includes/languages/english/simple_zen AND
includes/templates/simple_zen/

It depends on how you're planning on uploading the files. If you're planning on doing it manually, then yes, you have to create the new folder just as it is in the download.

31 Aug 2006, 12:57 PM
#31
lynnema avatar

lynnema

New Zenner

Join Date:
Aug 2006
Posts:
22
Plugin Contributions:
0

Re: Simple Zen Template - Support Thread

At the risk of sounding even dumber than before, can I get some clarification?

I tried creating a Simple Zen folder under templates and moved the css, button, common and images folder into it. When I go into the ZC admin>tools>templates, I don't see a Simple Zen template option.

So, where and how should I upload the includes folder? Into store>includes? And again, won't that over-write any existing templates I have? And if I don't want to over-write the existing template, how do I install this?

Not trying to sound like a dolt, but I'm very confused. Thanks again! :dontgetit

Updated - Nevermind - I got it - thanks again!!

31 Aug 2006, 2:11 PM
#32
kuroi avatar

kuroi

Totally Zenned

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

Re: Simple Zen Template - Support Thread

Did you also create the simple_zen directory under languages/english and put the revised header.php file in there? It's a pretty important step for this template.

Kuroi Web Design and Development | Twitter

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

1 Sep 2006, 2:35 AM
#33
shopyoungway avatar

shopyoungway

New Zenner

Join Date:
Jul 2005
Posts:
53
Plugin Contributions:
0

Re: Simple Zen Template - Support Thread

ok i have a question and i hope this is right. I want to take out the 3 linked images in the header and in it place put shopping cart in header this is the code i have to work with...

<?php if ($_SESSION['cart']->count_contents() > 0) { $products = $_SESSION['cart']->get_products(); echo '<p><a href="/index.php?main_page=shopping_cart">' . $_SESSION['cart']->count_contents().' Item(s) - Total: £'; echo $currencies->format($_SESSION['cart']->show_total()); } if ($_SESSION['cart']->count_contents() == 0) { $products = $_SESSION['cart']->get_products(); echo '<p><a href="/index.php?main_page=shopping_cart"> Item(s) £0.00'; } ?></a></p>

But i have tried twice and it seems to break up in IE. Can someone help me

Thanks

1 Sep 2006, 4:19 AM
#34
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Simple Zen Template - Support Thread

shopyoungway:

ok i have a question and i hope this is right. I want to take out the 3 linked images in the header and in it place put shopping cart in header this is the code i have to work with...

<?php if ($_SESSION['cart']->count_contents() > 0) { $products = $_SESSION['cart']->get_products(); echo '<p><a href="/index.php?main_page=shopping_cart">' . $_SESSION['cart']->count_contents().' Item(s) - Total: £'; echo $currencies->format($_SESSION['cart']->show_total()); } if ($_SESSION['cart']->count_contents() == 0) { $products = $_SESSION['cart']->get_products(); echo '<p><a href="/index.php?main_page=shopping_cart"> Item(s) £0.00'; } ?></a></p>

But i have tried twice and it seems to break up in IE. Can someone help me

Thanks

Try this instead:

       <li><?php if ($_SESSION['cart']->count_contents() > 0) {
$products = $_SESSION['cart']->get_products();
echo '<a href="/index.php?main_page=shopping_cart">' . $_SESSION['cart']->count_contents().' Item(s) - Total: £';
echo $currencies->format($_SESSION['cart']->show_total());
}

if ($_SESSION['cart']->count_contents() == 0) {
$products = $_SESSION['cart']->get_products();
echo '<a href="/index.php?main_page=shopping_cart"> Item(s) £0.00';
}

?></a></li>
1 Sep 2006, 2:13 PM
#36
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Simple Zen Template - Support Thread

MB1:

OK so far i have made it look like this http://www.gorillagear.ca/store/index.php which i'm satisfied with but i'd like http://www.gorillagear.ca/GorillaNuke/ with background images for the borders etc.

Oh my, well those are some quite complicated borders. I'm a less is more gal myself :wink2:, but to do that, you're going to have to go into the includes/templates/YOUR_TEMPLATE/common/tpl_box_default_left.php and tpl_box_default_right.php and start creating a table shell to hold all of those corners. Give them each a specific css tag, then you can go into your css file, and start adding background images. You already have them chopped up, so that's one step down.

Did you build the sideboxes for the layout you linked? If so, it shouldn't be too bad, but the first step will be going into the two files above, and change the framework for the sideboxes.

Hope that helps a bit!

ETA: I would also suggest that you either optimize your images (make medium (_MED) and large ones (_LRG) OR install the ImageHandler2 mod, that will do all that for you. I find your site images take a long time to load.

1 Sep 2006, 2:22 PM
#37
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Simple Zen Template - Support Thread

that's a wee bit too complicated at the moment how about just a background in the main area that's boxed in and another for the new products area where all the pictures are i tried playing with the style sheet but it didn't work out

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

1 Sep 2006, 2:38 PM
#38
kuroi avatar

kuroi

Totally Zenned

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

Re: Simple Zen Template - Support Thread

Agree with jettrue's comment on image sizes. I took a closer look at one and it was a whopping 100x the file size that I'd expect to see as a thumbnail on your frontpage.

What you want to do can be done relatively easily with CSS. You've done your work on Simple Zen so stick with that, but look at how the future Zen sidebox borders are constructed (make sure that you look at version 1.2). This approach will work for your more complicated borders too, both sideboxes and center column boxes if you stick to fixed widths (which the nature of your graphics pretty well forces anyway).

Kuroi Web Design and Development | Twitter

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

1 Sep 2006, 2:38 PM
#39
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Simple Zen Template - Support Thread

MB1:

that's a wee bit too complicated at the moment how about just a background in the main area that's boxed in and another for the new products area where all the pictures are i tried playing with the style sheet but it didn't work out

For a background image for the whole boxed in area (exluding the top header area), just go in your css:

#contentMainWrapper{
background: url(../images/image_name_here.gif)
}

Make sure the image is uploaded to your includes/templates/simple_zen/images folder.

For the new products area, you'll have to create a new css section:

.centerBoxContentsNew {
background: url(../images/image_name_here.gif)
}

Let me know how that works for ya!

1 Sep 2006, 3:10 PM
#40
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Simple Zen Template - Support Thread

thankx for the info i'll get to work on it as soon as i have the time. and i'll look into the image size thingy

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods