Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HTL] & [Normal] Private threads Details »»
[HTL] & [Normal] Private threads
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-31-2004 Last Update: Never Installs: 15
 
No support by the author.

Tested with 3.0.1

This hack lets you have private threads. A private thread is either:
* A thread where only some selected users can post
* A thread where some some selected users cannot post, everybody else can

With this regular users can protect their threads from regular spammers, it is useful for a roleplaying game, for a semi-private conversation (everybody can read, only some users can post), if you wanted to have a semi-private conversation with 5 people that is not possible in private messages, but a private thread would do.

The hack works:

When you create a thread you will be given the option for the thread to be private. If the thread is private you need to specify:

To allow some users or to deny some users (not both!)

Everybody can see the thread but when they try to answer they must have the proper permissions, otherwise a "this is a private thread" message would be shown to them.

After the thread is posted you can go to the "edit thread" screen and change which users can see the thread and its general behaviour, you can either make it public again or make a public thread now private. This is done by whoever has access to the edit thread tool.

I am not planning to release a "completely private" thread hack, if you don't want anybody to see the thread or to post in it just use a private forum I think only not being able to post is enough functionality (at least for me!).



Please take in consideration this hack only runs with php version > 4.1.0

Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-01-2004, 02:56 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This might be useful for clan/club threads. Neat
Reply With Quote
  #3  
Old 02-01-2004, 06:04 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank, nice job
Reply With Quote
  #4  
Old 02-01-2004, 06:28 AM
TheAnt TheAnt is offline
 
Join Date: Sep 2003
Location: Iceland
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod. Would it be possible to work for replies as well?
Reply With Quote
  #5  
Old 02-01-2004, 07:02 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is an error.

The following sentence does not exist: ' privatethread_notallowed'

you do not have to forget to add this sentence?
Reply With Quote
  #6  
Old 02-01-2004, 07:12 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheAnt
nice mod. Would it be possible to work for replies as well?
If you create a private thread a user that is not in the allowed list will not be able to reply to it
Reply With Quote
  #7  
Old 02-01-2004, 07:14 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Socrate
there is an error.

The following sentence does not exist: ' privatethread_notallowed'

you do not have to forget to add this sentence?
Add this phrase in your admincp (phrases -> add new phrase):

Type: Front-End Error Messages
Name: privatethread_notallowed
Text: This is a private thread and you are not allowed to post.

It was in the instructions, just in the front page.. I guess it was a little hidden
Reply With Quote
  #8  
Old 02-01-2004, 07:19 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kentaurus
Add this phrase in your admincp (phrases -> add new phrase):

Type: Front-End Error Messages
Name: privatethread_notallowed
Text: This is a private thread and you are not allowed to post.

It was in the instructions, just in the front page.. I guess it was a little hidden
oups, sorry Kentaurus , I had badly read the beginning of file HTML

Very good taff
Reply With Quote
  #9  
Old 02-01-2004, 07:43 AM
sjau sjau is offline
 
Join Date: Apr 2003
Location: Switzerland
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like a must have hack... I'll download it now but will see about installtion. there's a few other things to do first.
Reply With Quote
  #10  
Old 02-01-2004, 10:43 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

interesting, but not sure if it is of some use for me ...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04968 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete