Agent Moose
|
|
« on: March 15, 2009, 12:10:49 pm » |
|
Footers: <script> var ShowGuest = "<font color='red'>[Only registered users can see links. Please <a href='/?action=login'>Login</a> or <a href='/?action=join'>Register</a>]</font>";
if(location.href.match(/topic,/i)){ //Created by Agent Moose (revolutionx.smfforfree3.com) var name = document.getElementsByTagName("span"); for(v=0;v<name.length;v++){ if(name[v].innerHTML.match(/Hello <b>(.*)<\/b>/i)){ if(!RegExp.$1) $("div.post a").replaceWith(ShowGuest); };};}; </script> Original Request: http://revolutionx.smfforfree3.com/index.php/topic,437.0.htmlI have no idea why, but this code didn't want to work with me when I used all javascript. Anyway, I got it done You may edit the red text. Enjoy
|
|
|
|
|
Qub1
©opy®ight
Member
Offline
Gender:
Posts: 42
The copyrighter
Badges: (View All)
|
|
« Reply #1 on: March 15, 2009, 01:47:47 pm » |
|
Thanks for making, moose, but for some reason i can't use this one and the post blocker for certain boards, because i have guides on my forum that are members only, and links that are members only. Could you please take a look at it?
|
|
|
|
|
Agent Moose
|
|
« Reply #2 on: March 16, 2009, 05:56:11 pm » |
|
So, you want this code to only block link's in certain boards, right?
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
|
« Reply #3 on: March 29, 2009, 01:50:49 am » |
|
do we even edit <font color='red'>[ and a>]</font>";
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
|
« Reply #4 on: March 29, 2009, 01:51:30 am » |
|
or we just edit Only registered users can see links. Please <a href='/?action=login'>Login</a> or <a href='/?action=join'>Register
|
|
|
|
Danidemps
|
|
« Reply #5 on: March 29, 2009, 02:09:07 am » |
|
you can edit <font color='red'>[ To any colour you want and
<a href='/?action=login'>Login</a> or <a href='/?action=join'>Register The register part makes it so they have to register before use =)
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
|
« Reply #6 on: March 29, 2009, 02:43:20 am » |
|
hmm for some reason its not working
|
|
|
|
Qub1
©opy®ight
Member
Offline
Gender:
Posts: 42
The copyrighter
Badges: (View All)
|
|
« Reply #7 on: March 29, 2009, 02:03:06 pm » |
|
yeah, same problem here Anyway, i made my own code so i don't really need it anymore
|
|
|
|
|
Andrew
|
|
« Reply #9 on: June 25, 2009, 01:07:05 pm » |
|
hmm weird...I tested it before and it worked fine, now its not working for me either. Nothing in it was edited, I used this code: <script> var ShowGuest = "<font color='red'>[Only registered users can see links. Please <a href='/?action=login'>Login</a> or <a href='/?action=join'>Register</a>]</font>";
if(location.href.match(/topic,/i)){ //Created by Agent Moose (revolutionx.smfforfree3.com) var name = document.getElementsByTagName("span"); for(v=0;v<name.length;v++){ if(name[v].innerHTML.match(/Hello <b>(.*)<\/b>/i)){ if(!RegExp.$1) $("div.post a").replaceWith(ShowGuest); };};}; </script>
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
Same. I just copied the code up above. Not doing anything
|
|
|
|
|
|