vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Member-Only / Staff-Only - View Topic
Topic Rating: *****
Printable View
rosebud
Junior Member
**

Posts: 73
Status: Offline
Joined:  
Reputation: 3%  


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]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 40
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


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 {Smile}
rosebud
Junior Member
**

Posts: 73
Status: Offline
Joined:  
Reputation: 3%  


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
***


Reputation: 40%  


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. {Smile}

*Needs to get ready as the bus arrives in 10 minutes* {Tongue Out}

rroll.to— Shorten a link, rickroll your friends.
rosebud
Junior Member
**

Posts: 73
Status: Offline
Joined:  
Reputation: 3%  


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
***


Reputation: 40%  


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. {Smile}

rroll.to— Shorten a link, rickroll your friends.
rosebud
Junior Member
**

Posts: 73
Status: Offline
Joined:  
Reputation: 3%  


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
***


Reputation: 40%  


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? {Smile}

rroll.to— Shorten a link, rickroll your friends.
rosebud
Junior Member
**

Posts: 73
Status: Offline
Joined:  
Reputation: 3%  


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
***


Reputation: 40%  


pmwww
Re: Member-Only / Staff-Only (7th Jul 08 at 1:23am UTC)
I'll get to this soon. {Smile}

rroll.to— Shorten a link, rickroll your friends.
rosebud
Junior Member
**

Posts: 73
Status: Offline
Joined:  
Reputation: 3%  


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
***


Reputation: 40%  


pmwww
Re: Member-Only / Staff-Only (10th Jul 08 at 6:29am UTC)
Board footer:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /*
  4. Restrict Topics For Guests
  5. Coded by Cr0w
  6. Copyright 2008
  7. */
  8.  
  9. var topics = "13|14";
  10.  
  11. // No more edits
  12. if(vf_username == "guest" && location.href.match("topic/") && location.href.match(topics)){
  13. get('forum_table','id').style.display = "none";
  14. var tbl = '<table cellspacing="1" cellpadding="3" class="border" align="center" width="' + vf_width + '">';
  15. tbl += '<tr><td class="title1" style="font-weight: bold">';
  16. tbl += 'An Error Has Occurred';
  17. tbl += '</td></tr>';
  18. tbl += '<tr><td class="window1">';
  19. tbl += 'You must <a href="/action/login/">login</a> or <a href="/action/register/">register</a> to view this topic.';
  20. tbl += '</td></tr></table>';
  21. document.write(tbl);
  22. }
  23. //-->
  24. </script>
 


Seperate topics with a | (Ex: 14|15|17|23|1223 ) {Smile}

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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
***


Reputation: 40%  


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. {Tongue Out}

Thanks Wrighty. {Smile}

rroll.to— Shorten a link, rickroll your friends.
rosebud
Junior Member
**

Posts: 73
Status: Offline
Joined:  
Reputation: 3%  


pm
Re: Member-Only / Staff-Only (18th Jul 08 at 7:22pm UTC)
Oh! Thank-you!! =]
 Printable View

All times are GMT+0 :: The current time is 9:29pm
Page generated in 0.8941 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums