#1 (permalink)  
Old 02-06-2008, 04:27 AM
Registered User
 
Join Date: Jun 2007
Location: Quebec
Posts: 133
DGTALGOODIES is on a distinguished road
Default Switch template for index

Hi i was just on your online demo and saw Switch template.

I would like to know how to do it for index.html, i think be a cool feature to have for users.

Reply With Quote
  #2 (permalink)  
Old 02-06-2008, 11:45 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

The way it's done is not a good way to do it, plus it doesn't work for all browsers. There is no code available so you would need to figure out how it's done, I have ideas as to how it can be done, but have no code for it.
Reply With Quote
  #3 (permalink)  
Old 02-06-2008, 01:31 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

I jsut did a quick test, seems its pretty simple to do with a little hack to application.php - this is in no way a workign example, just a concept that seems to work. You need to make a template switcher that sets a cookie, and then change the code here to a cookie checking code. I did this quick-and-dirty to see if it worked.

If your interested in this, i could probably write an article on my site, but its going to be a few weeks i got tons of stuff lined up now!

Okay so check it out :
http://indexu.co.uk/demoSVN/index.php?usertheme=momo
and
http://indexu.co.uk/demoSVN/index.php?usertheme=kosmos

notice i can overwrite the default theme easily. In application.php the code i have is :

Code:
Content visible to License Owner only.
and thats it ... i would need to replace the application.php code to check for a cookie instead ( $_COOKIE['usertheme'] instead of $_REQUEST ) and i would need to build a theme changer that set the cookie

I havent had time to see whats messed up with the momo theme, i jsut dont think its completed... i havent uploaded any other alternative themes so i jsut used that as it was already available

okay hope that sparks some ideas.
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
Reply With Quote
  #4 (permalink)  
Old 02-06-2008, 01:34 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

okay, probably need to add the cookie checking code in a couple more php files, but doesnt look too difficult.. dont have time to check further though.
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
Reply With Quote
  #5 (permalink)  
Old 02-06-2008, 02:45 PM
Registered User
 
Join Date: Jun 2007
Location: Quebec
Posts: 133
DGTALGOODIES is on a distinguished road
Smile

OK il give this thread sometime since i am a total noob in this lol.

Il just keep checking every so often.

But thanks to look into it.
Reply With Quote
  #6 (permalink)  
Old 03-10-2008, 02:26 AM
Registered User
 
Join Date: Feb 2008
Posts: 22
seveneth is on a distinguished road
Default

Well, I dont think this will be useful for most users.
But if you're selling templates, then this is a must have mods.

I have this kind of mods, but it is not free mods.
I'm not sure that if mods will for work all browsers, but I have test it on IE, FF, Opera and no problem so far.

Let me know if you interested.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Switch Themes In Indexu54? sissy v5.x 2 01-01-2008 12:42 PM
3 New Template Available + Template Price reduced!! sikumbang Templates 9 07-23-2007 10:27 AM
switch DB? inspireme v5.x 4 08-29-2006 03:24 PM
switch to smarty template engine dody v5.x 20 01-10-2005 05:58 PM
Add a template to the modify template list? abm193xc v5.x 3 04-24-2003 05:31 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 05:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate