View Single Post
Old 20 May 2012, 23:12
shanef shanef is offline
Join Date: Sep 2010
Script checks for user group Adfly

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("") || hrefer.match("")|| hrefer.match("")) {
document.links[i].href = document.links[i].href;
}else{document.links[i].href = '' + adfly_id + '/' + document.links[i].href;}
Reply With Quote