vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [HTL] & [Normal] Private threads (https://vborg.vbsupport.ru/showthread.php?t=61026)

Kentaurus 01-31-2004 10:00 PM

[HTL] & [Normal] Private threads
 
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.

Koutaru 02-01-2004 02:56 AM

This might be useful for clan/club threads. Neat ;)

Allan 02-01-2004 06:04 AM

thank, nice job :)

TheAnt 02-01-2004 06:28 AM

nice mod. Would it be possible to work for replies as well?

Allan 02-01-2004 07:02 AM

there is an error.

The following sentence does not exist: ' privatethread_notallowed'

you do not have to forget to add this sentence? :rolleyes:

Kentaurus 02-01-2004 07:12 AM

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

Kentaurus 02-01-2004 07:14 AM

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? :rolleyes:

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 :)

Allan 02-01-2004 07:19 AM

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 :D

sjau 02-01-2004 07:43 AM

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.

gmarik 02-01-2004 10:43 AM

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


All times are GMT. The time now is 03:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01360 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete