Sarah
SMF For Free Member
Offline
Posts: 63
www.creativ.com.net.sc
|
 |
« on: September 29, 2007, 06:00:36 pm » |
|
Modification : Hide Posts from Guests Author : Sarah , Edited By Agent Moose Preview: None Description: Hides the post's content from guests so they don't rip your content. Location: Footers <script type='text/javascript'> //Hide Posts from Guests by Sarah //Edited by Agent Moose (smcodes.smfforfree3.com) //slyvion.co.nr | Don't remove copyright var hideText = '<span style="color:red;">This post has been protected. Login or register to view</span>'; var hideFind = document.getElementsByTagName('div'); var hideGuest = $('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html() for( z=0; z<hideFind.length; z++ ){}else{ if((hideGuest != null) && (hideFind[z].className == "postcolor")){ hideFind[z].innerHTML = hideText; };}; </script>
|
|
|
|
« Last Edit: September 29, 2007, 08:18:08 pm by Sarah »
|
Logged
|
|
|
|
|
|
|
Granny1
|
 |
« Reply #1 on: October 20, 2007, 12:17:09 pm » |
|
Forum Url: http://pogoinslowmo.smfforfree.comMoosie, will this code totally hide all posts from guest? If you view our forum, you can click on "View recent Post" and it will show you everything, even though we only have a "Welcome Guest" board that is suppose to be viewable by guest. We are having problems with a person that was banned from our forum and they keep using proxies to get in, and we keep banning. This person is also harassing a member of our forum by being able to view posts. We could sure use some help in this matter of hiding post.
|
|
|
|
|
Logged
|
|
|
|
mr_css
SMF For Free Sr. Member
Offline
Posts: 257
|
 |
« Reply #2 on: October 20, 2007, 12:54:44 pm » |
|
Very nice!
|
|
|
|
|
Logged
|
|
|
|
|
Agent Moose
|
 |
« Reply #3 on: October 20, 2007, 01:00:25 pm » |
|
Here ya go RedKnight. I just relised that the first code didn't work so I created my own: <script> var guests = '<span style="color:red;">This post has been protected. Login or register to view</span>';
//Edited by Agent Moose (smcodes.smfforfree3.com) if($('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html()){}else{ $("div.post").html(guests) }; </script>
|
|
|
|
|
Logged
|
Want to know how good your board is? Why not get it reviewed at Revolution X!

|
|
|
|
Granny1
|
 |
« Reply #4 on: October 20, 2007, 03:34:38 pm » |
|
Forum Url: http://pogoinslowmo.smfforfree.comThank you so much Moosie, I am going to put it in right now. I am assuming the headers is where this goes. Gonna try it there, and if I have a problem, I will give you a shout. Thanks again. Edit by RedNight: Moose it didn't work. I tried in the headers and the footers and still as a guest I can View Recent Post. What am I doing wrong?
|
|
|
|
« Last Edit: October 20, 2007, 03:39:12 pm by RedNight »
|
Logged
|
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 3056
Internet Challenged
|
 |
« Reply #5 on: October 20, 2007, 04:08:14 pm » |
|
Moose: I think what she wants to disable is this link for use by guests: http://YourForum.smfforfreeX.com/index.php?action=recent Can SMF make a true on/off switch for this?
|
|
|
|
|
Logged
|
|
|
|
|
Granny1
|
 |
« Reply #6 on: October 20, 2007, 06:18:14 pm » |
|
Forum Url: http://pogoinslowmo.smfforfree.comHere is a thumbnail of what I am talking about, and this is viewed as a Guest. The Latest Post shows as "Welcome to PogoFinishers", BUT if you click on under that of "View the most recent posts on the forum", a Guest can view all posts and all boards and all topics. If a Guest clicks on Home or anything they get about not being able to view and the need to register. We are having a problem with a stalker being able to view all the things by clicking on the "View the most recent posts on the forum". Anyone visiting our forum can see everything, not that we have anything to hide, but want to protect our member/members from this stalker or anyone else that will cause anyone problems. Hope that explains it better. 
|
|
|
|
« Last Edit: October 20, 2007, 06:19:48 pm by RedNight »
|
Logged
|
|
|
|
mr_css
SMF For Free Sr. Member
Offline
Posts: 257
|
 |
« Reply #7 on: October 20, 2007, 06:20:35 pm » |
|
wow cool work Sarah.
|
|
|
|
|
Logged
|
|
|
|
|
|
Gordie
SMF For Free Hero
Offline
Posts: 591
I'm around somewhere!!!
|
 |
« Reply #9 on: October 21, 2007, 07:00:46 am » |
|
Guests can also view recent posts via the rss feed so be careful.Just thought I'd let you know. 
|
|
|
|
|
Logged
|
|
|
|
|
Granny1
|
 |
« Reply #10 on: October 21, 2007, 07:18:08 am » |
|
Whooo hoooo Moose, you are awesome. I did the first one that you had updated, and it works. Thank you so very much. 
|
|
|
|
|
Logged
|
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 3056
Internet Challenged
|
 |
« Reply #11 on: October 21, 2007, 08:05:28 am » |
|
That's wonderful, Moose. Works fine on my FF, now off to test it against IE. Sometimes what works good on FF jams up the IE loading process.
|
|
|
|
|
Logged
|
|
|
|
|
Granny1
|
 |
« Reply #12 on: October 21, 2007, 11:22:24 am » |
|
It worked great on both FF and IE for me. I know what you mean though about some things working on one and not the other. I can tell you all of us at PF are so excited about this one. We feel a lot better knowing our stalker can't see everything. Thanks again Moosie. 
|
|
|
|
|
Logged
|
|
|
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 3056
Internet Challenged
|
 |
« Reply #14 on: October 21, 2007, 02:51:18 pm » |
|
Your welcome, Moose. Anything I can do, please ask. This might encourage people to join, read and post also.
|
|
|
|
|
Logged
|
|
|
|
|
|
|