Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating General Discussion
Author Message
rystan
New Member
New Member



Joined: Nov 27, 2005
Posts: 21
Location: Redding

PostPosted: Sat Apr 11, 2009 6:36 pm Reply with quote

Hello,

I run a gaming group community site and am trying to figure out the best method of integrating the different games into a single site. I've figured using groups would be one method, however I want to allow it so that a user can select which game he is playing (or his default from his profile) and it would change not only the Theme, but the default displayed news, forums, downloads and other modules. Of course the site default would be all shown with a standard theme. Would I do this by adding additional user variables that each module would then use to select its default display mode? Any thoughts/suggestions would be great. I've found I can create multiple copies of a module (i.e news) and change the sql to pull only a specific topic, removing the admin directory from it (central topic management from the original news module) and changing its directory name.

Looking at the code in the theme_preview block gives me some insight as to how to manage the multiple themes, its the rest that boggles me.

Thank you,
 
View user's profile Send private message
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Sat Apr 11, 2009 8:17 pm Reply with quote

first thing that pops to mind would be to use a custom profile in RNYA and then check for that.if the user has a particular game selected set the default_theme variable to this ......

just my initial thought on the them anyway
 
View user's profile Send private message
testy1







PostPosted: Sat Apr 11, 2009 8:26 pm Reply with quote

not that I think about it, something like this may work for the theme

Code:


sql = 'select users game from custom profile';
   if (user's game = this) {
   $ThemeSel = 'theme for that game';
   } else {
   $ThemeSel = get_theme();
   }
 
rystan







PostPosted: Sat Apr 11, 2009 9:01 pm Reply with quote

Thank you for the reply.

I'm lookin at that now. I'll reply again after I've slept and had a lot more coffee.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating General Discussion

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©