Footers
<script>
var guests = '<span style="color:red;">This post has been protected. Login or register to view</span>';
var forum = new Array()
forum[forum.length] = ["Test"]
for(x=0;x<forum.length;x++){
$("a.nav").each(function(){
//Edited by Agent Moose (smcodes.smfforfree3.com)
if(this.innerHTML.match(forum[x][0])){
if($('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html()){}else{
$("div.post").html(guests);
};};});
if (location.href.match("sa=showPosts")){
$("td.middletext a").each(function(){
if(this.innerHTML.match(forum[x][0])){
if($('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html()){}else{
$(this).parent().parent().next().children("td.windowbg2").children("div.post").html(guests);
};};});};};
if (location.href.match("action=recent")){
if($('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html()){}else{
$("div#bodyarea").hide()
$("div#bodyarea").before("<table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='titlebg' colspan='2'>Sorry</td></tr><tr><td class='windowbg2' width='100%'><span class='middletext'><br>"+guests+"<br></span></td></tr></table>")
};};
</script>
This will hide posts from guests in certain forums

FORUM = The forum that the posts will be hidden from guests.
If you want to add more forums, add more of these lines:
forum[forum.length] = ["FORUM NAME"]
Enjoy
