Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2011, 01:30 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 66,897
AlexC is an unknown quantity at this point
Default 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.
Reply With Quote
  #2  
Old 05-03-2011, 08:39 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,070
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

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.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #3  
Old 05-03-2011, 09:24 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 66,897
AlexC is an unknown quantity at this point
Default

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?
Reply With Quote
  #4  
Old 05-03-2011, 11:45 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,070
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

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.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #5  
Old 05-04-2011, 12:46 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,667
fadillzzz is an unknown quantity at this point
Default

Or use cookies instead....
Reply With Quote
  #6  
Old 05-04-2011, 01:03 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,070
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Yeah cookies elude me still.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #7  
Old 05-04-2011, 08:04 AM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 66,897
AlexC is an unknown quantity at this point
Default

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).
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

Forum Jump

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


All times are GMT -5. The time now is 09:27 PM.

Currently Active Users: 522 (0 members and 522 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636