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 04-09-2011, 12:28 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 69,025
AlexC is an unknown quantity at this point
Default Can I format things differently depending on the layout?

I was wondering if it was possible to have a page or code that will only activate certain changes to a page if it's on a certain layout.

Like if I could have the MyAdopts page formatted differently for a different layout, and stuff like that.

I assume it would be possible... but I have no idea how - any ideas/suggestions?
Reply With Quote
  #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: 33,286
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
  #3  
Old 04-09-2011, 07:11 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 69,025
AlexC is an unknown quantity at this point
Default

Alright, thank you very much!

Can I still do things like perhaps edit the way the myadopts page is formatted to fit the othe theme? Or is that impossible?
Reply With Quote
Reply


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
My Layout x3 Rozel Questions and Supports 17 04-21-2011 02:35 PM
Converting a layout? Rozel Questions and Supports 1 03-29-2011 10:28 PM
xD I screwed up the layout~ Rozel Questions and Supports 0 03-21-2011 10:33 PM
Outputting dates in a format other than "yyyy-mm-dd"? Quillink Questions and Supports 6 01-29-2010 11:47 AM
How do i make a new layout? RipJawWolfFang Questions and Supports 1 04-10-2009 08:39 AM


All times are GMT -5. The time now is 07:24 PM.

Currently Active Users: 886 (0 members and 886 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