Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
vBPrivate Threads Details »»
vBPrivate Threads
Version: 1.0.6, by Eikinskjaldi Eikinskjaldi is offline
Developer Last Online: Jul 2023 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 02-27-2006 Last Update: 03-02-2006 Installs: 67
Supported DB Changes Uses Plugins Template Edits
Code Changes Additional Files  

vBPrivate Threads

This hack has been ported to vBulletin 3.5.4 from the vBulletin 3.0.0 version with permission granted by:
Quote:
"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"
in Kentaurus's post for its original release, found here

--------------------------------------------------------
This is my first major ported and released hack for vB.
--------------------------------------------------------

With this Code Modification you can add private threads to your forums. A private thread is:
  • A thread that some users or usergroups can view. Others cannot.
  • A thread that some users or usergroups cannot view. All others can.

Using this Modification, any user in a forum that has Private Threads turned on may create a private thread. It is useful for holding private moderator conversations, or for making a thread private when some users would like to see the discussion closed and others want it to continue.

Future Plans:
  • Add Super Moderators and Moderators to override the standard permissions
  • Admin Options for allowed private thread types
  • Admin Options to define users with override-permissions privilages
  • Admin Options for those who can make private threads
  • Private Threads will NOT show in the lastpost column when user does not have access to thread
  • Creator can view thread by default

Hack History:

Version 1.0.6
  • Changed several file edits to plugins (Thank you waza)
  • Some plugins were reverted back to file edits, no version change as it is going a bit backward
Version 1.0.5
  • Updated queries for install
  • Added queries for uninstall
  • 1 Added Plugin
  • Fixed copy/paste errors in file edits find/change
  • Added missing printthread edit
  • Fixed Search problem
Version 1.0.0
  • Initial release

Hack Overview:
  • Products: 1
    • 2 Queries
    • 1 Phrase
    • 13 Plugins
  • File Edits: 5 files (7 edits)
  • Template Edits: 3
  • Estimated Install time: Under 10 minutes

If you liked this hack then please Install it!

Supporters / CoAuthors

Show Your Support

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

Comments
  #102  
Old 09-12-2006, 03:27 PM
SimCityForum SimCityForum is offline
 
Join Date: Feb 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wholemama
Has anyone successfully had this working on 3.6?
Yes if you just upgraded from vB3.5x to vB3.6 you need to go back through and modify your templates and FOUR vBulletin PHP files as per the instructions.

Be very careful and use a little judgement as there are subtle adjustments that need to be made. For instance in postings.php the following mod needs to be used:
Code:
// M/DD/YY PRIVATE THREADS PORT

if ($_POST['do'] == 'updatethread')
{
	$vbulletin->input->clean_array_gpc('p', array(
		'visible'		=> TYPE_BOOL,
		'open'			=> TYPE_BOOL,
		'sticky'		=> TYPE_BOOL,
		'iconid'		=> TYPE_UINT,
		'notes'			=> TYPE_NOHTML,
		'threadstatus'		=> TYPE_UINT,
		'reason'		=> TYPE_NOHTML,
		'title'			=> TYPE_STR,
		'redirect'		=> TYPE_STR,
		'frame'			=> TYPE_STR,
		'period'		=> TYPE_UINT,
		'privatethread'		=> TYPE_UINT,
		'privateusers'		=> TYPE_STR
	));
// END PRIVATE THREADS PORT
Instead of:
Code:
// M/DD/YY PRIVATE THREADS PORT

if ($_POST['do'] == 'updatethread')
{
	$vbulletin->input->clean_array_gpc('p', array(
		'visible'		=> TYPE_BOOL,
		'open'			=> TYPE_BOOL,
		'sticky'		=> TYPE_BOOL,
		'iconid'		=> TYPE_UINT,
		'notes'			=> TYPE_NOHTML,
		'threadstatus'		=> TYPE_UINT,
		'reason'		=> TYPE_NOHTML,
		'title'			=> TYPE_STR,
		'redirect'		=> TYPE_STR,
		'privatethread'		=> TYPE_UINT,
		'privateusers'		=> TYPE_STR
	));
// END PRIVATE THREADS PORT
because of the two additional fields in v3.6. Just be careful and if you understand PHP you will be fine.
Reply With Quote
  #103  
Old 09-15-2006, 03:06 PM
camoman camoman is offline
 
Join Date: Oct 2004
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IS there a way to have it NOT display the post to users who do not have permission to view it? right now when a user posts it shows the post on vbcmps but comes up with the No Permission reply. It would save some controversy on the site if people who didn't have permission to view it didn't see it at all..

also is there a way so that users can edit the list of people allowed to view the thread after the fact?
Reply With Quote
  #104  
Old 09-17-2006, 04:58 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for pointing out those little things above SimCit.

As for making it not show stuff on vbCMPS, I have not honestly looked into that because I dont show any private threads on it. However when the 3.6 version is released you can use a new permissions function for it most likely, but to make it look right you'd have to increase the amount of posts it takes in, to balance it out.

As far as making it editable by users, this seems to be a popular idea, I may e nd up making a page and such for it and just add it to inline tools but as I recall if you give the forums with private threads specific user permission they should be able to edit the thread or get to the place for editing options where they can also edit private users.
Reply With Quote
  #105  
Old 11-21-2006, 10:32 AM
Been Told Been Told is offline
 
Join Date: Oct 2006
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi View Post
I am going to release a version for 3.6 but it wont really be a port, i am finally going to release a version with all the bug fixes and such that this one never had. So yes it will be coming soon. It resembles less of the old version and more of my own code but at its heart it is still the same program, so port or new, its coming.
That's great to hear
I just migrated from Invision and I had a hack that password-protected threads. This cool hack would be the nearest to that sort of thing I can find.
Reply With Quote
  #106  
Old 11-26-2006, 10:53 AM
LadyBeth LadyBeth is offline
 
Join Date: Jun 2003
Location: East Coast
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really really need this for 3.6.3
Pretty please with sugar on top?
Reply With Quote
  #107  
Old 11-29-2006, 06:06 PM
Been Told Been Told is offline
 
Join Date: Oct 2006
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same here... I migrated from Invision where I had a similar mod and my members want their private threads back lol.
Reply With Quote
  #108  
Old 12-02-2006, 03:35 AM
Revpolar Revpolar is offline
 
Join Date: Feb 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant get it to work on 3.6. It does kinda work but when i select usergroup option everyone can see it. When I choose user option the selected user cant see it and get the your not allowed message. Im sure its a simple edit or two that would have it fully working.
Reply With Quote
  #109  
Old 12-13-2006, 08:34 AM
Been Told Been Told is offline
 
Join Date: Oct 2006
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just got this to work on vBulletin 3.6!!!! Thanks very much for this great mod man! Awesome!

One Question though... How do I edit who can see the thread after it has been created?
Reply With Quote
  #110  
Old 12-16-2006, 01:58 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Currently only mods and admins can, you have to edit the actual thread. Same as the location where you edit the thread title. I am planning on moving this to its own option later on.

As for the official version for 3.6, iv run into to many time traps to get it out, when iv got the chance i'll start packaging the official Private Threads for 3.6
Reply With Quote
  #111  
Old 12-21-2006, 04:38 PM
Revpolar Revpolar is offline
 
Join Date: Feb 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please do. I really would appretiate it.
Reply With Quote
Reply

Thread Tools

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:31 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.05266 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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