I know if I wanted to I could make the pick which individual forum I want to be for members-only to see. However, most of the forums I have I'd like for guests to see as a way to encourage them to join and engage in the conversation.
Basically this type of code would be where only members can view the thread and guests cannot.
I also thought it might be a good idea to have a "staff-only" as part of this if it's possible.
Instead of a code, what about just making a board specifically for members-only chat? It could also be used as an incentive for guests to sign up and see what's being discussed![]()
I know that I have the option to do that as stated in my post, but you're missing my point. I don't want to close off some of the individual boards to guests, but there are certain threads I would like closed off. I am not talking about a general forum. I am talking about a board for bands with different individual sections. I don't want to close off some of the individual band boards. I still want the guests to see those discussion and engage, but I have a plan for my members where I'd like certain threads to be closed off from guests. Think of it as like livejournal where you can make your posts friends-locked, but guests can read your other posts if they aren't. Only this would be members-locked. This would actually help organize my board for what I have in mind. If I were to make another board for what I am trying to do that would actually disorganize my board.
Ahh, I see what you mean. I'll get this to you after my exam today.![]()
*Needs to get ready as the bus arrives in 10 minutes*![]()
Thank-you!! ^^
Sorry, I'd missed this thread; I've got some work to get finished tonight, but if I don't get to it today then I will tomorrow.![]()
I am still interested in this code. I just didn't know what to say.
I'm assuming you'd like this to work for multiple threads?![]()
Yes, please.
I'll get to this soon.![]()
Okay. *waiting*
Board footer:
Code:
- <script type="text/javascript">
- <!--
- /*
- Restrict Topics For Guests
- Coded by Cr0w
- Copyright 2008
- */
- var topics = "13|14";
- // No more edits
- if(vf_username == "guest" && location.href.match("topic/") && location.href.match(topics)){
- get('forum_table','id').style.display = "none";
- var tbl = '<table cellspacing="1" cellpadding="3" class="border" align="center" width="' + vf_width + '">';
- tbl += '<tr><td class="title1" style="font-weight: bold">';
- tbl += 'An Error Has Occurred';
- tbl += '</td></tr>';
- tbl += '<tr><td class="window1">';
- tbl += 'You must <a href="/action/login/">login</a> or <a href="/action/register/">register</a> to view this topic.';
- tbl += '</td></tr></table>';
- document.write(tbl);
- }
- //-->
- </script>
Seperate topics with a | (Ex: 14|15|17|23|1223 )![]()
Marc, you left in 'alert(1); alert(2):' ... not sure if it's intentional?
Marc, you left in 'alert(1); alert(2):' ... not sure if it's intentional?
Oops, ran into a weird bug when coding it up; forgot to remove them.![]()
Thanks Wrighty.![]()
Oh! Thank-you!! =]