July 19, 2024, 04:02:10 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Block Post Links from Guests

Pages: [1]   Go Down
  Print  
Author Topic: Block Post Links from Guests  (Read 4998 times)
Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
« 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:
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>
Report Spam   Logged



Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy