Zen Cart Logo
Forums / All Other Contributions/Addons / Template Rotator Mod

Template Rotator Mod

Locked

Views: 4,566

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
14 Jan 2008, 4:59 AM
#1
therose avatar

therose

New Zenner

Join Date:
Jan 2008
Location:
PA
Posts:
31
Plugin Contributions:
0

Template Rotator Mod

Hey all don't know how hard this would be.. i have it in CGI but i would like to make a mod for zin in PHP what it would do is this i would make like a few diff templates for my site like one for Christmas one for halloween and one for Easter and so on and it would flip to that template at a certain time of year for a certain time of days that would be allotted in the admin area.... anyone interested in helping would be GREAT beings i don't know how to code.. but i can debug and Alter the code to tweak it.. some help would be great.. like i said i have it for CGI but i don't have it for PHP..

Any Suggestions would be great.....

14 Jan 2008, 6:29 AM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Template Rotator Mod

Changing template is not that hard, you can just go to admin and change it, so I don't see the reason to do that.
Why? Because as you say you will change the template for special occasions, lets say there are 10/year. Now, to achieve this you need to use Cron job for sure, and have your server runs it at least once per day.
1 more thing: before changing template, you have to make sure that one works well (lets say you upgraded to new version recently and have not had time to upgrade all templates yet, what will happen if the site automatically change to those templates? Crash)

14 Jan 2008, 6:55 PM
#3
therose avatar

therose

New Zenner

Join Date:
Jan 2008
Location:
PA
Posts:
31
Plugin Contributions:
0

Re: Template Rotator Mod

yellow1912:

Changing template is not that hard, you can just go to admin and change it, so I don't see the reason to do that.
Why? Because as you say you will change the template for special occasions, lets say there are 10/year. Now, to achieve this you need to use Cron job for sure, and have your server runs it at least once per day.
1 more thing: before changing template, you have to make sure that one works well (lets say you upgraded to new version recently and have not had time to upgrade all templates yet, what will happen if the site automatically change to those templates? Crash)

Ok part one the reason is you have same layout just diff images... for like christmass and holloween and so on... so you dont have to goto the admin area and change it.. it will change the images itself.. for each hollady.. so acually it will be a Full site teplate image rotator that can be maintained in the admin area.. how would someone go about doing this? hope not too hard:clap:

14 Jan 2008, 7:09 PM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Template Rotator Mod

you just create complete new templates for each holiday or season,
the same way that you created the original,
then just flip the switch in
admin -> tools -> template manager

14 Jan 2008, 7:17 PM
#5
therose avatar

therose

New Zenner

Join Date:
Jan 2008
Location:
PA
Posts:
31
Plugin Contributions:
0

Re: Template Rotator Mod

Merlinpa1969:

you just create complete new templates for each holiday or season,
the same way that you created the original,
then just flip the switch in
admin -> tools -> template manager

Yes i can just do that but i am trrying to make it a fully automated procesess... that way i dont have to use the template mod.. it will rotate.. the images for me..

14 Jan 2008, 8:26 PM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Template Rotator Mod

Im trying to figure out
WHY you would want to pull your hair out for something that you can setup in a few minutes.....

make a copy of your template,
name it christmas, add your new images
then upload it,
and turn it ON on the day after Thanksgiving.

14 Jan 2008, 10:05 PM
#7
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Template Rotator Mod

Unless you hire someone to do this, I dont see anyone would be interested in such module to actually code it.
This is a waste of time and system resources.

14 Jan 2008, 10:17 PM
#8
gsis avatar

gsis

Zen Follower

Join Date:
Jun 2007
Posts:
140
Plugin Contributions:
0

Re: Template Rotator Mod

I can't see it being much of a problem to set up a cron job to run every night at midnight (or thereabouts) and swap the template as dictated by a calendar file of some sort.

OTOH, I can't see it being much of a problem to set an alarm and log on for a few seconds to change it either.

For me this would be such a low priority as to be unlikely to ever happen.

An even better mod - maybe it already exists - would be a user selectable template mod. Users who need a high contrast screen could choose it, or users with a talking browser could select an extra-simple template that doesn't waffle on through a list of over 1000 authors ...

14 Jan 2008, 10:21 PM
#9
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Template Rotator Mod

GSIS, that mod is great for a forum, but I dont think any ecommerce site ever used it. Maybe in the near future, who knows.

14 Jan 2008, 10:34 PM
#10
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Template Rotator Mod

An even better mod - maybe it already exists - would be a user selectable template mod.
Template Switcher Box.. top right hand side at
http://(sorry, site offline)/138/index.php
but as yellow1912 commented, not suitable for
zencart live production sites re security reasons

15 Jan 2008, 1:43 AM
#11
therose avatar

therose

New Zenner

Join Date:
Jan 2008
Location:
PA
Posts:
31
Plugin Contributions:
0

Re: Template Rotator Mod

misty:

Template Switcher Box.. top right hand side at
http://(sorry, site offline)/138/index.php
but as yellow1912 commented, not suitable for
zencart live production sites re security reasons

is that available for DL? i can work on it to get it to work with the site.. and make it do what i need it to do

3 Apr 2008, 5:31 PM
#12
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Template Rotator Mod

I agree.. I would love to use a template switcher box!! Not on a live site of course.. but for my own use when I'm working on building templates for people.. no more running 5-6 version of zencart so they can see a preview of their template while I'm working on someone else's template...

Anybody know how to set this up???????? :blink:

I'm afraid my talents are limited to designing and coding up the templates and putting in mods... custom php code is beyond my ability :cry:

23 May 2008, 11:14 PM
#13
toritaiyo avatar

toritaiyo

New Zenner

Join Date:
Oct 2007
Posts:
19
Plugin Contributions:
0

Re: Template Rotator Mod

Also Wish this mod existed so I could show clients several possible templates.

And as I work on a template they've picked I can show them several different edits and get their feedback.
This exists for wordpress, and obviously it is possible for Zen cart too, so why not.

Any tip that could send me in the right direction to create this would be appreciated.

24 May 2008, 12:02 AM
#14
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Template Rotator Mod

Same here... I've seen this done on a few sites.. if someone could offer it as a mod, or some instructions on how to do it with a big "DON'T USE IT ON A LIVE STORE" to cover whoever releases it because of the security issues... then I would love to see it happen.

Anyone have any advice on how this is done?? :blink: