rosebud Junior Member
 
Posts: 73 Status: Offline Joined:
pm | Member-Only / Staff-Only (23rd Jun 08 at 11:36pm UTC) Threads | | 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. | |
|
Graham Support Administrator
    
![[Avatar]](http://uploads.virtualforums.co.uk/forums/pokemon/vforums-qr1.png) Posts: 1,642 Status: Offline Gender: Male Location: Sussex, UK Age: 40 Joined:
Additional Groups: Support Team
  
pmwww | Re: Member-Only / Staff-Only (24th Jun 08 at 12:04am UTC) | | 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 | |
|
rosebud Junior Member
 
Posts: 73 Status: Offline Joined:
pm | Re: Member-Only / Staff-Only (24th Jun 08 at 2:02am UTC) | | 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. | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Member-Only / Staff-Only (24th Jun 08 at 11:20am UTC) | | 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* | |
rroll.to— Shorten a link, rickroll your friends. |
|
rosebud Junior Member
 
Posts: 73 Status: Offline Joined:
pm | Re: Member-Only / Staff-Only (27th Jun 08 at 9:15pm UTC) | | Thank-you!! ^^ | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Member-Only / Staff-Only (28th Jun 08 at 1:04am UTC) | | 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. | |
rroll.to— Shorten a link, rickroll your friends. |
|
rosebud Junior Member
 
Posts: 73 Status: Offline Joined:
pm | Re: Member-Only / Staff-Only (5th Jul 08 at 6:12pm UTC) | | I am still interested in this code. I just didn't know what to say. | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Member-Only / Staff-Only (5th Jul 08 at 6:52pm UTC) | | I'm assuming you'd like this to work for multiple threads? | |
rroll.to— Shorten a link, rickroll your friends. |
|
rosebud Junior Member
 
Posts: 73 Status: Offline Joined:
pm | Re: Member-Only / Staff-Only (6th Jul 08 at 8:18pm UTC) | | Yes, please. | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Member-Only / Staff-Only (7th Jul 08 at 1:23am UTC) | | I'll get to this soon. | |
rroll.to— Shorten a link, rickroll your friends. |
|
rosebud Junior Member
 
Posts: 73 Status: Offline Joined:
pm | Re: Member-Only / Staff-Only (9th Jul 08 at 5:39am UTC) | | Okay. *waiting* | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Member-Only / Staff-Only (10th Jul 08 at 6:29am UTC) | | 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 ) | |
rroll.to— Shorten a link, rickroll your friends. |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Member-Only / Staff-Only (10th Jul 08 at 8:59am UTC) | | Marc, you left in 'alert(1); alert(2):' ... not sure if it's intentional? | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Member-Only / Staff-Only (10th Jul 08 at 10:17am UTC) | | 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. | |
rroll.to— Shorten a link, rickroll your friends. |
|
rosebud Junior Member
 
Posts: 73 Status: Offline Joined:
pm | Re: Member-Only / Staff-Only (18th Jul 08 at 7:22pm UTC) | | Oh! Thank-you!! =] | |
|