PDA

View Full Version : Seperate skins..?


Gamelobby
05-12-2009, 12:40 AM
Is there a way to have different skins/styles from the main skin to the Arcade, Social Groups, Tournaments, etc.?

Thanks :)

Lynne
05-12-2009, 01:15 AM
I would guess you could use the style_fetch plugin to change the style id depending on the page (THIS_SCRIPT).

Gamelobby
05-16-2009, 08:04 PM
"style_fetch", "THIS SCRIPT" ..?

I'm confused. was there a link somewhere in this.?
i did a search, but didn't find much.

Lynne
05-17-2009, 02:50 AM
style_fetch is a hook location. Do a search of your vb files if you want to see exactly what file it is located in.

THIS_SCRIPT is what the script is defined as at the top of every php page, ie at the top of index.php is:
define('THIS_SCRIPT', 'index');

So, if you wanted a condition based on what page you were on, you would look at THIS_SCRIPT and see if it was equal to 'index'.

Dismounted
05-17-2009, 03:22 AM
<a href="http://www.vbulletin.com/docs/html/plugin_system" target="_blank">Plugin System</a>

Gamelobby
05-17-2009, 10:35 PM
I see..
I think that is all above my skill level for now.
Thanks for the info.

Lynne
05-18-2009, 02:11 AM
You don't want to write a plugin? It really shouldn't be that hard. Something like:
if (THIS_SCRIPT == 'index') {
$styleid = xx;
}
That should do it.

Gamelobby
05-18-2009, 06:54 AM
I'll try that, Thanks.!!

I really dont understand how code works, all i know is i can follow directions, & make simple edits, but to make something up from scratch is very out of my realm.