View Single Post
  #2  
Old 04-09-2011, 03:02 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 44,475
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

For each 'theme' you can have a different template(layout) and CSS(coloring and formatting). If you're talking about a certain code being active only when someone uses a specific theme, you can use a query to identify users with that theme.

PHP Code:
$result runquery("SELECT * FROM ".$GLOBALS[prefix]."users WHERE username='".$loggedinname."' ");
$row mysql_fetch_array($result);
if(
$row['theme'] == "THEMENAME"){
// Enable block of coding. Otherwise skip and do nothing. 

__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote