Quote:
Originally Posted by Shanj
Perhaps if you tell me the limitations on "minor modifications" I could understand what is possible, and do my design to fit the limitations.
I don't know how to do conditionals. But if you tell me where to look I will learn it.
|
When you use seperate webtemplates as you do now, you have priviledge to set different options for each webtemplates as you enter them in "edit webtemplate" page.
For instance webtemplate A can use theme A, webtemplate B can be BBcode parsed, webtemplate C can be banned to user C etc.
However when you use single webtemplate for all usergroups obviously you are bound with the settings you entered in that webtemplate so you can't set them seperately for each usergroup.
But if this is not your concern and you are just interested in displaying a different content in that very webtemplate to different usergroups, it is possible via "conditionals". You can see the usage of one conditional in builtin webtemplate named "test". It appears with "hidden text" remark when you login as admin.
Webtemplates inherit the default vb template conditionals syntax so you can use if else conditions just like you use them in your styles:
PHP Code:
<if condition="$bbuserinfo[usergroupid] == 6">
show this text to administrator
</if>
<if condition="$bbuserinfo[usergroupid] == 2">
show this text to registered member
</if>
etc.
And more info can be found in vb's manual about conditionals.