Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBPrivate Threads Details »
vBPrivate Threads
Mod Version: 1.0.6, by Eikinskjaldi (Contributor) Eikinskjaldi is offline
Developer Last Online: Sep 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (2 votes - 4.50 average) Installs: 67
Released: 28 Feb 2006 Last Update: 03 Mar 2006 Downloads: 205
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:
"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!

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	screen1.PNG
Views:	1598
Size:	11.9 KB
ID:	43591   Click image for larger version

Name:	screen2.PNG
Views:	1393
Size:	28.9 KB
ID:	43592   Click image for larger version

Name:	screen3.PNG
Views:	2315
Size:	20.9 KB
ID:	43593   Click image for larger version

Name:	screen4.PNG
Views:	1083
Size:	8.8 KB
ID:	43594  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
ViewPosts -- View unanswered threads, threads you've started, you're own posts etc. Jordeh vBulletin 3.0 Full Releases 19 12 Mar 2009 22:07
Tagged Threads: Subscribed Threads behave like Sticky Threads Chris M vBulletin 3.5 Add-ons 35 28 Mar 2008 17:57

Comments
  #2  
Old 28 Feb 2006, 05:48
G-Force 199's Avatar
G-Force 199 G-Force 199 is offline
 
Join Date: Nov 2005
Installed.
Thank you
__________________
If you like vBulletin, you should buy it.
If you like or using vB.Org hack mods or styles, you should click Install.
Reply With Quote
  #3  
Old 28 Feb 2006, 07:45
wholemama wholemama is offline
 
Join Date: Feb 2006
First and foremost...THANK YOU!!!

*****************************

I'm getting an error when we try to call the search function (as in when we click New Posts)...

Fatal error: Call to undefined function: private_thread_not_allowed() in /.../search.php on line 1823

Same happens in the other instantiation of the function on line 2224. Commented those out for now

****************************

The product doesn't seem to create the 'allowprivate' field...added that manually to the DB and then manually adjusted it as needed for my interim solution

***************************

When I try to edit a thread, I get...

Parse error: parse error, unexpected $ in /.../postings.php on line 2327

In the second portion of code added to postings.php, it's missing the closing } for the if statement

******************************

When I edit a thread that's been private...if I had more than one name saved originally in the allowed/denied list, when it pulls them back in, it only brings back the first name in the list.
Reply With Quote
  #4  
Old 28 Feb 2006, 08:30
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
That's unexpected behavior, and I have it running just fine on my main board and test board. I'll install it on my test board again tonight and get back to you on the results of further testing.

It's still in beta and I have some improvements ready for it, too.
Reply With Quote
  #5  
Old 28 Feb 2006, 09:37
waza waza is offline
 
Join Date: Apr 2005
Does it has usergroup permissions?
And can't you do it with less file edits (by replacing them with plugins.)
However, It sure looks good!
__________________
Now available: SAPR, it's like god send an angel
Reply With Quote
  #6  
Old 28 Feb 2006, 10:29
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Bleh, my first release and I mess up stuff as simple as copying and pasting. Sorry about that :nervous:

I've updated to v1.0.5 and fixed the problems (works flawlessly when installed on my test board), added to the product, and added a new plugin to it.

@waza: What do you mean by usergroup permissions? You can allow or restrict viewing by usergroup, if that's what you mean.

I've tried to limit file edits to the best of my ability. I've only been on vB3.5 for a week, and just learning the new data management was daunting enough. If I can find other ways, or if anyone else can find other ways, to avoid file edits and maximize plugin use, the hack will be updated for that.
Reply With Quote
  #7  
Old 28 Feb 2006, 13:55
waza waza is offline
 
Join Date: Apr 2005
No what I mean is if you can restrict usergroups who can post private threads.
However, I looked @ the zip, and as there aren't any bitfield xml's their wont be usergroup permissions.
Like here:
http://www.vbulletin.org/forum/showthread.php?t=82844

And I'm sure a lot of file edits can be done by plugins, If I find some time I try to make use of plugins and pm them.
__________________
Now available: SAPR, it's like god send an angel
Reply With Quote
  #8  
Old 28 Feb 2006, 14:43
buro9 buro9 is offline
 
Join Date: Feb 2002
Perfect!

You wouldn't believe the need I have for this. It's incredibly sensitive, and this is a life saver.

Thank you so much for making and publishing it.
Reply With Quote
  #9  
Old 28 Feb 2006, 14:50
rnmcd rnmcd is offline
 
Join Date: Aug 2004
Thanks.

Looks like you finished before this:
http://www.vbulletin.org/forum/showthread.php?t=80135
Reply With Quote
  #10  
Old 28 Feb 2006, 15:33
XanTrax XanTrax is offline
 
Join Date: Aug 2005
From the types of people I deal with in my forums this would be abused 10 thousand times over. If anything try to add an option for which usergroups or users are allowed/not allowed to use this option. Something like...

Can user select thread options: Yes / No
Reply With Quote
  #11  
Old 28 Feb 2006, 15:39
wholemama wholemama is offline
 
Join Date: Feb 2006
That version fixes everything!

And I figured out the multiple users thing...I was doing what was intuitive and putting a space after the semi-colon like a list...but no space can go there. So I'm altering the template to put a warning about that for my users (who aren't the most computer literate sometimes!).

The only problem that's keeping me from making this live now...when the thread shows in the Last Post column and you click on it, you can see it no matter if you're supposed to or not. It's like that call doesn't check the private_thread_not_allowed().
Reply With Quote
  #12  
Old 28 Feb 2006, 15:44
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Future Plans: Private Threads will NOT show in the lastpost column when user does not have access to thread
I'm hoping to have that changed soon. I still need to find out how to make it check for the next available "last thread" after that, and then repeat the permissions check, and loop until it finds one the person does have permission to.
Reply With Quote
  #13  
Old 28 Feb 2006, 15:49
buro9 buro9 is offline
 
Join Date: Feb 2002
I think you missed out something like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in the showthread.php file, and then change $restrictedusers to $threadinfo[privateusers] in the showthread template.

And I've made it admin only, by doing things like the following in the newthread and the edit thread templates:
<if condition="$foruminfo['allowprivate'] == 1 and is_member_of($bbuserinfo, 6)">
Where 6 is the id of the Admins usergroup
Reply With Quote
  #14  
Old 28 Feb 2006, 16:00
wholemama wholemama is offline
 
Join Date: Feb 2006
Originally Posted by Eikinskjaldi
I'm hoping to have that changed soon. I still need to find out how to make it check for the next available "last thread" after that, and then repeat the permissions check, and loop until it finds one the person does have permission to.
Yup...

I don't mind it showing in the Last Post column...that doesn't matter at all...it's just that it needs to check it when you load from that link (or any other direct link).
Reply With Quote
  #15  
Old 28 Feb 2006, 16:16
wholemama wholemama is offline
 
Join Date: Feb 2006
Ok...got that working...that was my error!

Happy happy joy joy!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 02:17.

Layout Options | Width: Wide Color: