PDA

View Full Version : Completely private threads


Kentaurus
29 Feb 2004, 18:09
This is an "upgrade" to my previous "private threads" hack. I am releasing it as a new hack because some people would not want the "completely private" functionality and because the code is different.

Special thanks go to RMS10 who sponsored this hack and decided it should be public and for everyone to test.

A private thread is either:

* A thread that some selected users/usergroups can view
* A thread that some some selected users/usergroups cannot view, everybody else can
* The thread can be hidden from other users/usergroups at the user's will

How does it work?

When the user creates a thread he will be given the option to type users or usergroups and to limit posting only to that users or for that users to be excluded from the threads.

The disallowed users cannot see the thread in the forumdisplay page, they cannot search for it, the cannot view it even if they know the direct url (a message error appears to them). It is unavailable to them.

If a thread is private guests canot see it, otherwise a user can just log off your forum to see the thread. You have to be validated in the forum with proper permissions to see the thread.

Administrators can always see private thread, even if the user selected to exclude administrators.


If you installed the previous private thread hack please uninstall it (reverse the file and template edits) to properly install this one.

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.

Dean C
29 Feb 2004, 18:32
Looks great - thanks for releasing :)!

sabret00the
29 Feb 2004, 19:17
good work, although wouldn't it just be easier to set up a private forum?

Gaffer
29 Feb 2004, 22:14
WOOOOHOOOOO

i requested this months and months ago.... (but for vb2.x.x) finely i can use it. it will be EXTREAMLY handy.

rms10
29 Feb 2004, 22:24
good work, although wouldn't it just be easier to set up a private forum?

This gives you the ability to mix groups, i.e. today you want groups 1, 5 and 6 to view a certain thread. Tomorrow you may want 2,1 and 4 to view a different one.

I plan to use this to allow me to post certain information. Depending on the topic not all groups can have access to it. The access could change for each thread I post. Therefore a private forum would not work as well.

ChuanSE
01 Mar 2004, 03:21
One question....

Are users able to exclude admins to read their post?
I sure hope not... :/

Can i define which usergroups are able to use this feature?

nice mod if tweakable tho

rms10
01 Mar 2004, 12:16
Your questions are answered in his post.

SpeedStreet
02 Mar 2004, 00:30
Great idea!

The only option I would like to see, is some sort of marking that shows that a thread is private.

While the threadview itself is nice, it would be nice to see some sort of icon or whatnot that would display in the threaddisplay.

Hobbes
02 Mar 2004, 00:50
Great idea!

The only option I would like to see, is some sort of marking that shows that a thread is private.

While the threadview itself is nice, it would be nice to see some sort of icon or whatnot that would display in the threaddisplay.
Very nice!

I am sure I will use this hack!

Kentaurus
02 Mar 2004, 02:46
Great idea!

The only option I would like to see, is some sort of marking that shows that a thread is private.

While the threadview itself is nice, it would be nice to see some sort of icon or whatnot that would display in the threaddisplay.
If you have acces to the thread and you enter to it a legend of "This is a private thread and these are the allowed users" will appear. If you are not allowed to see it you will not see the thread at all. Users that are allowed to post are aware that it is a private thread.

gmarik
02 Mar 2004, 17:31
How much does it takes to install it?
Could it be remade as an add-on for a shoutbox, to replace the private room system?

Allan
02 Mar 2004, 18:58
thank Kentaurus, good job :)

ChuanSE
03 Mar 2004, 07:58
How much does it takes to install it?
Could it be remade as an add-on for a shoutbox, to replace the private room system?

Took me 10mins, Great hack ;)

Hoffi
05 Mar 2004, 09:45
Can I set this functionality in the Forum Permissions? I may use it, but only in some Forums.

ChuanSE
05 Mar 2004, 20:33
forum restriction are to be defined in your admincp indeed
this counts for a single post you make, even in a forum with full public access...

check it out ;)

Kentaurus
06 Mar 2004, 21:57
Can I set this functionality in the Forum Permissions? I may use it, but only in some Forums.
Right now any user in any forum can use completely private threads. Right now there is no way to disabled private threads in specific forums.

bluecat
07 Mar 2004, 02:23
Is it possible to only allow this option to certain usergroups?

Bad Bunny
21 Mar 2004, 06:13
Hello, and thanks for tackling this! I have wanted a system muh like this to replace PMs all together. More functionality, but you got the gist right here.

Anyway, my question is this: If USER_A only allows USER_B to view the thread, can USER_A still read it? Or if a member of GROUP_1 makes it so only GROUP_2 can read it, is it then possible for him to read it? I mean....they did write it, so it would be sort of silly to block themself.

Giveit2u43
18 Apr 2004, 05:49
One ever so slight problem I have with this is a private thread still shows on the forumhome if it is the last post in a forum.. people cannot view it but they know it is there and so I`m getting complaints, anyway to block it from the forumhome as well as everywhere else?

Racer
27 Apr 2004, 09:06
*bumping thread*
as I wonder the same question as Giveit2u43

I need to get the thread of forumhome...

007
10 May 2004, 23:34
Get the thread titles off forumhome, and setup forum and user permissions and this hack will totally replace PM's! Awesome. I can't use it though until that stuff is fixed. :)

diabme69
14 Jun 2004, 00:59
Suggestion.... as it may be, is to have a dropdown list of usergroups, and incorperate the pm systems find user button, so people do not have to know exact spelling///title

dndog
19 Jun 2004, 04:29
Thank you so much!

/me clicks install 5000000 times

zahco
19 Jun 2004, 08:32
thanks a lot Dir : Kentaurus
for this work

best regards
zahco

dndog
22 Jun 2004, 16:04
I get this error when I install this hack. I am currently running vB 3.0.1



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

neocorteqz
22 Jun 2004, 17:35
great idea. Nice work. :)

Cold Steel
22 Jun 2004, 19:30
Can i define which usergroups are able to use this feature?
I would love if this feature was added. Then I would click install.

Delirion
01 Jul 2004, 22:52
If the Forumhome issue could be solved, then I'd install too.

H2k
08 Jul 2004, 18:26
is this hack we can use it in the new v. of vb .?

neocorteqz
08 Jul 2004, 23:05
is this hack we can use it in the new v. of vb .?
Most hacks for previous versions do work, there may be some minor variations in code, but for the most part work with newer versions, unless there is a major change in the code.

H2k
10 Jul 2004, 17:10
Most hacks for previous versions do work, there may be some minor variations in code, but for the most part work with newer versions, unless there is a major change in the code.
HERE I HAVE INSTALL THIS HACK

I HAVE A PROBLEM WITH IT .. IAM USE VB 3.0.3

I HAVE DONE ALL AND WHEN I GO TO CHECK THE ADMIN PANEL I GET THIS ERROR

--------------------------------------------
Parse error: parse error in c:\apache\htdocs\forums\includes\functions.php on line 1935

Fatal error: Call to undefined function: devdebug() in c:\apache\htdocs\forums\includes\functions.php on line 1000
-------------------------------------------

I GO TO TO CHECK FUNCTIONS.PHP AND I REMOVE THE CODE THAT I ADD IN THIS FILE AND THE ADMIN WORK FINE BUT WHEN I GO TO THE FORUM HOME PAGE AND I TRY TO ENTER ANY FORUM I GET THIS ERROR


----------------------------------

Fatal error: Call to undefined function: private_thread_not_allowed() in c:\apache\htdocs\forums\forumdisplay.php on line 751
----------------------------------

ANY IDEA PLEASE

amykhar
25 Jul 2004, 18:59
The other problem is that the "lightbulb" for a new post will go on for everybody, even if they aren't allowed to view the thread.

dndog
04 Aug 2004, 02:43
How can I set permissions so that only certain usergruops can access this feature?

Thanks.

Tigerdude
26 Aug 2004, 18:36
Can anyone work on this hack or only the orginal author?

I'd be willing to pay for this hack if we cab get some of these minor bugs mentioned fixed.

This is a great hack.

What's the deal?

integra99
26 Aug 2004, 21:41
How can I set permissions so that only certain usergruops can access this feature?

Thanks.
I will install once this feature is added.

:)

I could add the features in, but then the up-tights would get their panties all twisted up over it. If you want it done, I'd be willing to do it for a fair price. IM me on AIM @ Mroadster84 or PM me. Thanks

Lionel
23 Sep 2004, 14:26
Hi, how can I prevent EVERYONE to see it from the archives?


ok, I fixed that by placing the below in archive/index.php

// display thread


// HACK: private threads.
if (private_thread_not_allowed($threadinfo))
{

echo "<div align=center>The author of this thread made it private and only users that he designated it for may access it.</div>";
eval(print_standard_error('privatethread_notallowed'));
}
// HACK: private threads.

if ($do == 'thread')

amcd
17 Oct 2004, 22:43
this sounds like a great hack, why doesn't some expert iron out the shortfalls?

rnmcd
25 Nov 2004, 13:47
In this image attachment
http://www.vbulletin.org/forum/attachment.php?attachmentid=17025


it has 5 options for a Private thread.
Can someone expand the intent of each of those options for me?

For example, option 2 says, "Only Selected Users". Does this mean "Only Selected Users" can see the thread but they cannot post or does it mean "Only Selected Users" can read and post to this thread?

Thank you.

rnmcd
25 Nov 2004, 13:50
Does this function with vb 3.0.3?

Lionel
25 Nov 2004, 13:57
In this image attachment
http://www.vbulletin.org/forum/attachment.php?attachmentid=17025


it has 5 options for a Private thread.
Can someone expand the intent of each of those options for me?

For example, option 2 says, "Only Selected Users". Does this mean "Only Selected Users" can see the thread but they cannot post or does it mean "Only Selected Users" can read and post to this thread?

Thank you.

That has nothing to do with posting. Posting permissions are the ones that you selected in forum settings for that forum. That hack is about viewing threads.

rnmcd
25 Nov 2004, 15:46
forum restriction are to be defined in your admincp indeed
this counts for a single post you make, even in a forum with full public access...

check it out ;)

ChaunSE, did this hack work for you in ver 3.0.3 or did you install it in another version? I have read a few people are having troubles with 3.0.3 and this hack.

Thanks.

rnmcd
22 Dec 2004, 18:03
Has anyone got this to work in ver 3.0.3?

Diana Notacat
27 Dec 2004, 22:59
I -love- this hack. The forum permission settings would be a blessing though as well as preventing them from showing up in the newthread display on the forum home!

And allow users to edit their private thread so they can edit the view permissions for it!

H2k
28 Dec 2004, 08:10
dose this mod work with vb3.0.3

H2k
04 Jan 2005, 06:08
I -love- this hack. The forum permission settings would be a blessing though as well as preventing them from showing up in the newthread display on the forum home!

And allow users to edit their private thread so they can edit the view permissions for it!
do u install this hack with vb3.0.4?

SlaPPiE
15 Jan 2005, 07:26
Has anyone been able to modify this to where only certain usergroups (Admins & Mods) can enable private threads? Allowing my regular users to create private threads is going to create problems...

rnmcd
16 Jan 2005, 00:08
It would be great if someone could modify this so that the private threads were also 'hidden' in the forumdisplay unless you are invited to the private thread.

kall
13 Feb 2005, 03:10
It would be great if someone could modify this so that the private threads were also 'hidden' in the forumdisplay unless you are invited to the private thread.

Huh? Is that not a factor already?

The disallowed users cannot see the thread in the forumdisplay page, they cannot search for it, the cannot view it even if they know the direct url (a message error appears to them). It is unavailable to them.

rnmcd
13 Feb 2005, 13:27
Kall, ...The forum permission settings would be a blessing though as well as preventing them from showing up in the newthread display on the forum home!

And allow users to edit their private thread so they can edit the view permissions for it!

It is a factor.

kall
13 Feb 2005, 17:53
Kall,

It is a factor.
You said forumdisplay, not Forum Home. You probably mean 'latest thread' on forum home.

rnmcd
14 Feb 2005, 01:02
I believe you are right...oops.
Thanks for correcting me.

It would be great if someone could preventing the private thread form showing up in the latest thread on forum home.

Protoman
09 Mar 2005, 03:44
does not work with 3.0.6 did all the edits and even worked around the outdated code sections to get everything installed. On new threads the settings weren't stored in the DB nor was I able to admin the threads.

Mukashi
14 Mar 2005, 03:38
Has anyone got this working in 3.0.7? I don't want to install it when it might screw up the system, especially when it seems to be no longer supported.

TruthElixirX
19 Mar 2005, 20:25
I just installed this on a patched 3.0.5 and it took away the button to post new attachtments. Yes, they're enabled. The button that says "Mnage Attachments" is gone. I can look at a style that is completely unedited I can post attachments that way. Does anyone know how I can fix this?

Lionel
19 Mar 2005, 21:52
Has anyone got this working in 3.0.7? I don't want to install it when it might screw up the system, especially when it seems to be no longer supported.

it works for me on 3.07

Lionel
19 Mar 2005, 21:55
I only wish that in search, instead of displaying a search page with no entries (if only one result and it is private), that it displays a message about that thread being private

JD210
08 May 2005, 22:58
Okay, how do you get a private thread from showing up on the portal page? I installed this, and can read the private posts on the portal page.

Singularity
18 Jul 2005, 16:38
Okay, how do you get a private thread from showing up on the portal page? I installed this, and can read the private posts on the portal page.

Are there any plans to make this hack 3.5.0-compatible?

Singularity
24 Jul 2005, 15:02
Are there any plans to make this hack 3.5.0-compatible?

And one more question:

Is it possible to enable completely private threads only for a single subforum?

yoyoyoyo
20 Aug 2005, 14:05
this works in 3.0.8, and I added conditionals to the template edits, so only mods and admins can access the feature to post a private thread by adding


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

(obviously your template edits are used instead of "private threads code goes in here")

Dreiko
04 Dec 2005, 19:24
Would someone like to port this to 3.5 in conjuntion with the [HTL] & [Normal] Private threads (http://www.vbulletin.org/forum/showthread.php?s=&threadid=61026) ?

Ramsesx
04 Dec 2005, 19:57
I also wish this hack for 3.5, it,s very useful. Please do it. Thanks

rnmcd
09 Jan 2006, 19:51
The person that developed this hack hasn't responded in a VERY long time. I doubt this will go any further.

oni0n56
25 Feb 2006, 20:42
Could someone please port this hack to 3.5? This is exactly what I need...

Eikinskjaldi
25 Feb 2006, 23:53
I could give porting this hack a shot. Of course, I have little experience with 3.5.x (though plenty with 3.0.x) and the new data manager seems a bit daunting, so it may take a deal of time before it is achieved without file edits.

Tralala
26 Feb 2006, 01:05
Some users complain about long-running threads, ask for them to be filed away, locked, deleted or whatever. And yet the participants in that thread want it to continue!

Therefore, I'd also like to see an addition that allowed users to hide a thread from themselves. This would solve lots of conflict on many forums.

Eikinskjaldi
28 Feb 2006, 05:18
This mod has been ported to vB3.5 like so many have asked, it is also undergoing extensive edits.

You'll find it here:
http://www.vbulletin.org/forum/showthread.php?t=109096