The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello i have been thinking about incorporating Adfly into my forum and i was wondering if there was a way for this small script (pasted below) to check and run for only certain user groups. i have some members that have donated to the forum and i would like for them not to have the hassle of dealing with it. I dont if there is some sort of code that could be added but if anyone has any ideas I would be greatfull
<script type="text/javascript"> onmousemove = function adfly() { adfly_id = '1409766'; //replace with your ID for (var i = 0; i < document.links.length; i++) { var hrefer = document.links[i].href; if(hrefer.match("adf.ly") || hrefer.match("http://www.mobilephonetalk.com")|| hrefer.match("http://www.symbiantalk.net/")) { document.links[i].href = document.links[i].href; }else{document.links[i].href = 'http://adf.ly/' + adfly_id + '/' + document.links[i].href;} } } </script> |
#2
|
|||
|
|||
![]()
If you added that code to a template, then you should be able to surround it with an if, like:
Code:
<vb:if condition="is_member_of($bbuserinfo, X, Y, X)"> // script code </vb:if> |
#3
|
|||
|
|||
![]()
Thank you works perfect
|
#4
|
|||
|
|||
![]()
Hello
Where put this script in footer template ? Quote:
|
#5
|
||||
|
||||
![]()
Adding it to the bottom of the template should be fine.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|