![]() |
Need help on a basic Script
I would like to set up a script that changes, when Users change the style. This could be used for Advertising, changing the colour, when the Skin changes.
I am using 3 different styles so it should have an if, else, elseif function. But I am really not sure how to set it up. Style IDs: 16, 15 and 31 Code 16: Code:
<script type="text/javascript"><!-- Code:
<script type="text/javascript"><!-- Code:
<script type="text/javascript"><!-- So to put it into a nutshell: If Style ID = 16 then Code 16 else if Style ID = 15 then Code 15 else if Style ID = 31 then code 31 Thank you, Hendricius |
Code:
<if condition="$styleid == 15"> |
you do not need a condition, you just have to edit the proper style...
example, if you put your code in header, the template "header" of the style #15 would contain the code #15... why is it so complicated? |
nexialys has the idea. Everyone's thinking too advanced.
|
Yea. But I would like to use it together with my VBadmanagement. Some Usergroups are not seeing ADs, that's why I need it in those IF-else conditions.
Code:
<if condition="$styleid == 15"> |
if you want to manage it from a script released here, just as in the related topic... this will be easier.
|
Quote:
There is no reason to have changes in all the sub-styles if a simple condition is used in a master template/style. That asumes all styles are very similar of course. |
Quote:
|
Yep, I tried it, however, it doesn't work :/
|
All times are GMT. The time now is 12:15 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|