The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How To Run different Scripts for 2 Different UserGroups
I am in desperate need to be able to run 2 scripts for 2 different user groups.
For Example I need to have a VSA agent script come up for all guests exiting the site, then I have another VSA Campaign script that I need to run for members that activate the VSA Image to make it clickable and working. But it Appears due to the fact i have members excluded from the guests script I cannot run the second script. Another Scenario is That I have Members getting a hotbar pop up, but not guests since they get the survey. But I have adult related forums in which I cannot run the survey in those forums and I want the guests to get the hotbar popup in those forums. As it stands now guests get the survey in most of the sites threads but are able to view all the adult related forums freely with no money making scripts running. I am sure these scenarios are doable and i am sure many site admins have a need to be able to do this same thing. Usergrp A's are subjected to this scriptA and usergrp B's are subjected to scriptB. If This condition is met run script A if not the run script B on all other conditions. |
#2
|
|||
|
|||
So did I post this in the right forum for help with this?
|
#3
|
|||
|
|||
I figured it out so if anyone is interested this is a small guideline of how you can do it:
The following is if you are a guest and not in specified forums or their child forums run scriptA otherwise if you are a guest and in these particular forums and child forums then run scriptB. <if condition="is_member_of($bbuserinfo, 1) AND !in_array($forumid, array(145,113,10,9,292,71,298))">$childforumbits <script type="text/javascript">var isloaded = false;</script><script type="text/javascript" src="http://www.cpalead.com/mygateway.php?pub=21615&gateid=MTA4MDI%3D"></script><script type="text/javascript">if (!isloaded) { window.location = 'http://cpalead.com/adblock.php?pub=21615'; }</script><noscript><meta http-equiv="refresh" content="0;url=http://cpalead.com/nojava.php?pub=21615" /></noscript> <else /> <if condition="is_member_of($bbuserinfo, 1) AND in_array($forumid, array(292,71,298))">$childforumbits <script type="text/javascript">var isloaded = false;</script><script type="text/javascript" src="http://www.adultaccessnow.com/mygateway.php?pub=1153&gateid=MjM2NzM%3D"></script><script type="text/javascript">if (!isloaded) { window.location = 'http://adultaccessnow.com/adblock.php?pub=1153'; }</script><noscript><meta http-equiv="refresh" content="0;url=http://adultaccessnow.com/nojava.php?pub=1153" /></noscript> </if></if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|