Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #62  
Old 03-06-2006, 02:14 AM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it isnt a work around, its a fix to a problem :P
Reply With Quote
  #63  
Old 03-06-2006, 02:16 AM
rnmcd rnmcd is offline
 
Join Date: Aug 2004
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is gonna be one awesome hack!
Your first one, right?
Reply With Quote
  #64  
Old 03-06-2006, 03:33 AM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My first at least for 3.5, and my first released, yes.
Reply With Quote
  #65  
Old 03-06-2006, 12:31 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi
This is an error I am working on currently, I am sorry for the current inconvience, it should be patched and fixed within the near future hopefully

EDIT: Wait, is this on forumdisplay or forumhome? When you view a forum you see the thread? Because that means you must have missed an edit somewhere. The only place a none viewable person can find out if a private thread exists is through forumhome's lastpost bit. I am currently working on making it so they cant see that either.
nope it's on New Posts...search.php...but according to what i read above i missed an edit in Search.php?! I'll go double check, but i don't believe that's the case...one sec.

Code:
// show results as posts
	if ($search['showposts'])
	{
		foreach ($itemids AS $post)
		{
			// M/DD/YY PRIVATE THREADS PORT
            include_once('./includes/functions_privatethread.php');
            if (private_thread_not_allowed($post))
                        {
                            continue;
                        }
            // END PRIVATE THREADS PORT
Code:
// threadbit_deleted conditionals
		$show['threadtitle'] = true;
		$show['viewthread'] = true;
		$show['managethread'] = true;

		foreach ($itemids AS $thread)
		{
			// M/DD/YY  PRIVATE THREADS PORT
			include_once('./includes/functions_privatethread.php');
			if (private_thread_not_allowed($thread))
                        {
                        	continue;
                        }
            // END PRIVATE THREADS PORT
Reply With Quote
  #66  
Old 03-06-2006, 03:43 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, that's quite correct and matches what I have for private threads in my search.php file. And you say they're showing up when you do NOT have permission to view them on a "New Posts" search?
Reply With Quote
  #67  
Old 03-06-2006, 04:10 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi
No, that's quite correct and matches what I have for private threads in my search.php file. And you say they're showing up when you do NOT have permission to view them on a "New Posts" search?
yep...

http://www.worksafeboredom.com/content/

go there, click Today's Posts (or register and do New Posts) and you should be able to see a thread named Test w/ a preview of, "You can see this can't you?"
Reply With Quote
  #68  
Old 03-06-2006, 07:26 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm.... The next best thing to try is to uninstall the entire hack, and try at installing it again. Ensure that all of the plugins are turned on, and that all the file edits have been made.

Might I ask when you downloaded the package? It has been changed quite a few times in the past few days. Sorry about that.

Also, if you need any help installing it or wish me to do it then just drop me a PM. I have some free time this week so it wouldn't be to much of a problem
Reply With Quote
  #69  
Old 03-07-2006, 12:19 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi
Hmmm.... The next best thing to try is to uninstall the entire hack, and try at installing it again. Ensure that all of the plugins are turned on, and that all the file edits have been made.

Might I ask when you downloaded the package? It has been changed quite a few times in the past few days. Sorry about that.

Also, if you need any help installing it or wish me to do it then just drop me a PM. I have some free time this week so it wouldn't be to much of a problem
I had installed the version you posted just before you sent out the email that it had been updated (removed 2 plugins, added a file change or two...last week sometime)...then did the update when you sent the email about those new changes.

I'll uninstall/reinstall right now and tell you what I find.

nope, no luck. still showing up under New Posts.
Reply With Quote
  #70  
Old 03-07-2006, 08:56 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats just bizarre, I can't replicate it and I don't see anything in the code you posted, is there by chance anything that could be blocking it?

Any other hack that might be getting in the way.
Reply With Quote
  #71  
Old 03-08-2006, 10:01 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi
Thats just bizarre, I can't replicate it and I don't see anything in the code you posted, is there by chance anything that could be blocking it?

Any other hack that might be getting in the way.
the only other plugin that's registering on any of the search pages/functions is Thread Prefixes. I'm not sure if that could be it but i'll go disable it and test it.

EDIT: well..that was it. i turned off Thread Prefixes and the thread disappeared...*dang* i know you're busy but if "one day" you get a chance to work through that I'd appreciate it I have to use thread prefixes for a NWS section on my site that i want CLEARLY marked (so i require the prefix) so i can't keep that plugin disabled.

thank you for all the help so far though!
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 07:25 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.05659 seconds
  • Memory Usage 2,320KB
  • 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
  • (5)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