PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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: 483

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

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
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

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

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();
   }
View user's profile Send private message
rystan
New Member
New Member


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

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

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.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum