#1
|
||||
|
||||
let guests change theme?
I was wondering if it was possible to alter a file somewhere that would allow guests to change the theme?
I'd like to be able to let my guests change the theme of my site, as well as my members. I deleted part of the changestyle.php file and that let the guests change it, but it won't stay. The moment I change the page, it goes back to the default. |
#2
|
||||
|
||||
That's because when users change the theme, it's recorded in the database what theme they picked. Guests don't have this so the information isn't stored and it goes back to the default. The only option really is to create a new table and store guest IP and theme settings, although personally I think it's a waste of space.
|
#3
|
||||
|
||||
It's for a very special project I'm working on. Changable themes for guests is a highly massive part of it.
Could you show me how to do that? Would there be any way to perhaps delete it every week or so that it doesn't get burdened with entries? |
#4
|
||||
|
||||
I can explain it for you.
What you'll need is a new table in your database with a couple fields. 1 for an IP, 1 for the theme name and 1 for the date. Then you'll want the coding to detect if someone is a guest and if they are insert a new entry into the table with the information. Simple as that. You'll also want a cron job to run weekly and erase entries over 1-2 weeks old depending on how many guests you get per day. |
#5
|
|||
|
|||
Or use cookies instead....
|
#7
|
||||
|
||||
Okay - I can do the mySQL part, but not the coding part. I'm not good at creating code from scratch. I'll see what I can do about the crib job. (don't know anything about cookies).
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove 'Change Theme' link | voni | Questions and Supports | 3 | 05-13-2014 01:27 PM |
Allow guests to view | SilverDragonTears | Questions and Supports | 7 | 12-08-2012 07:41 PM |
HELP! default theme won't change | mythic | Templates and Themes | 3 | 10-05-2011 08:24 PM |
my theme no change :( | kratosvr | Questions and Supports | 2 | 08-04-2011 12:24 PM |
Let Guests Change Theme | AlexC | Questions and Supports | 5 | 06-23-2011 06:44 PM |
What's New? |
What's Hot? |
What's Popular? |