Log in

View Full Version : Template per Usergroup


Infinity101
05-08-2011, 05:17 PM
Hello, I am curious how to peform a check on a usergroup ID and select a different template depending on that group. I have seen two mods which perform this action and had no success. Preferably I would like to do this hard coded into specific PHP files though. Version of code is 4.0.8.

Thank you for any help.

PokeCenter
05-09-2011, 12:49 AM
I saw one through VB Add ons today, but you may have seen it already. Just alerting you.

Zachery
05-09-2011, 01:15 AM
Template > Style? A style/skin is a collection of stylevars, css, and templates. Sometimes they can be called "templates", but more rarely, since the useage of the word template normally refers to a singular template in the software, vs the collection of stylevars css and html.

Infinity101
05-09-2011, 03:50 AM
Template > Style? A style/skin is a collection of stylevars, css, and templates. Sometimes they can be called "templates", but more rarely, since the useage of the word template normally refers to a singular template in the software, vs the collection of stylevars css and html.

A style. However, I guess the same can be accomplished in a template.

I.E < if condition: $bbuserinfo['usergroupid'] == #></vb:else>

However, I have tried that with no luck. I'm sure the variable's I'm using are wrong.