Version: 1.0.6, by Eikinskjaldi
Developer Last Online: Jul 2023
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
Can you post or PM me the lines of code you are having issues with? I had no issues with my own board and this hack so it might be that something is interfering, if the line is a plugin then please specify the plugin and i'll check it to see if there is anything outstanding in it.
The other thing you mentioned is that it shows a link to a new private thread, but it gives you an error message, it should be a vBphrase error message as well. This is to alert the user they don't have permission. However until I figure out the exact code I need to use I cannot remove them from the 'New thread' area without making it do a much more ugly thing of 'Private thread' and no link.
I believe I've found the problem - It was where several file edits had been changed to be plugins, plugins that, looking at the code, come at inopportune times. I am editing the install file and the product to reflect the revert back to having, I believe, 2 more file edits and 2 less plugins.
Well, I have found the cause of the search issue, It is quite a stupid one to be honest. If you have the current private thread hack installed, all you need to do is change the search and forumdisplay files. The instructions for each will be in the install directions.
Good luck!
[[Will shortly upload the new and improved install file with the correct code edit. Sorry about that!]]
Nothing I was doing was working, but I just got an update e-mail. I just uploaded the new file and did the file edits and now it works great. Thank you!
Nothing I was doing was working, but I just got an update e-mail. I just uploaded the new file and did the file edits and now it works great. Thank you!
buro9: Quite apparently in the installer, although my installed version seems to already have it. The product's been updated, thank you for catching that
drex: The plugins at threadbit_display and search_results_threadbit have been removed. They've been replaced with the following file edits.
In search.php
Find:
PHP Code:
// show results as posts
if ($search['showposts'])
{
foreach ($itemids AS $post)
{
Add BELOW:
PHP Code:
// M/DD/YY PRIVATE THREADS PORT
include_once('./includes/functions_privatethread.php');
if (private_thread_not_allowed($post))
{
continue;
}
// END PRIVATE THREADS PORT
In forumdisplay.php
Find:
PHP Code:
while ($thread = $db->fetch_array($threads))
{ // AND $counter++ < $perpage)
Add BELOW:
PHP Code:
// M/DD/YY PRIVATE THREADS PORT
include_once('./includes/functions_privatethread.php');
if (private_thread_not_allowed($thread))
{
continue;
}
// END PRIVATE THREADS PORT