PDA

View Full Version : Private Threads Beta 2!


Link14716
01 Feb 2003, 22:29
DO NOT USE THIS HACK IF MODERATION IS TURNED ON!

This will give admins the option, while creating a thread, to make it a private thread. Private threads can only be seen by admins and are prefixed with Private:. I just created it, and it's probably not the most secure thing in the world. The install file is pretty pathetic, just basically logged what I did, but it should get the job done. All options are edited in the Admin CP --> Edit Options --> Private Threads Hack. Enjoy!

Features currently available in Beta 2:
Private threads can be created by usergroupd entered in the admin CP (and if enabled - users).
All abilities that are done to normal threads can be done in a private thread.
Private threads are prefixed.
Admins can enter in the usergroupids that can make/view private threads in admin CP.
Users can make private threads that only they and the selected usergroups can see (ON/OFF option).

NOTE: IF YOU DOWNLOADED BEFORE 7:38 PM EST ON 2/1/03, RE-DOWNLOAD IT AND REDO THE LAST NEWTHREAD.PHP EDIT AND CREATE THE NEW TEMPLATE NEWTHREAD_NOINVISIBLE!

If you do not, every new thread not posted by an admin would be deemed "Private".

NOTE: IF YOU DOWNLOADED BEFORE 10:02 PM EST ON 2/1/03, RE-DOWNLOAD IT AND CHANGE THE NEWTHREAD_INVISIBLE TEMPLATE TO WHAT IS IN THE NEW FILE!

Otherwise, every new thread made by an admin would be deemed "Private".

UPDATE: 2/1/03
Beta 1.1 released. The only difference is the ability to use the Admin Options on private threads (close, stick, edit, etc.) and the ability to edit posts in private threads. To upgrade from Beta 1, simply edit postings.php and editpost.php as stated in the text file. :)

UPDATE: 2/2/03
Beta 2 released. New options include: ability to add usergroups who can see all private threads in the admin CP, ability for users to create private threads that only they and selected usergroups can see (ON/OFF option), and a few bugfixes. To upgrade from Beta 1.1, follow the instructions in the upgrade.txt file; to upgrade from Beta 1, follow the instructions to edit editpost.php and postings.php in the install.txt file and then follow the instructions (minus the editpost.php and postings.php parts) in the upgrade.txt file.

Credits for Beta 2: Xenon, as I took a piece of code from his Custom Postbit hack to get this hack to work fully.
strstr(" ".$canusecpb." ", " ".$bbuserinfo[usergroupid]." ")

Link14716
01 Feb 2003, 22:32
Screen:

Link14716
01 Feb 2003, 22:42
Request more features! :)

Floris
01 Feb 2003, 22:59
Hi there,

Would it be possible for users to start a thread in a specified forum, and then only that user and the admin/smods/mods can see the content ? This way there can be nice one on one discussions between members and the staff without other members being able to see the content of those threads?

I would seriously have a big interest in such an addition to this cool hack :)

Link14716
01 Feb 2003, 23:00
I'll look into it :)

Sketch
02 Feb 2003, 00:28
yeah I'm the only admin so a convo with myself doesn't enlighten me online. I already do that enough as it is, don't need to add vBulletin to the picture...lol

However, awesome concept and when you get the usergroup thing worked out I'll definitely install this.

Aaron

Neo
02 Feb 2003, 00:31
This can all be done using new usegroups & permissions.

But whatever works for you.

Link14716
02 Feb 2003, 02:59
UPDATE: 2/1/03
Beta 1.1 released. The only difference is the ability to use the Admin Options on private threads (close, stick, edit, etc.) and the ability to edit posts in private threads. To upgrade from Beta 1, simply edit postings.php and editpost.php as stated in the text file. :)

Floris
02 Feb 2003, 19:27
Originally posted by Link14716
Next Beta: ability to define what usergroups can see private threads.
Next Beta/Future Release: ability for users to be able to create private threads than only they and the defined usergroups can see.

Cool :) :banana: :banana: :banana:

Floris
02 Feb 2003, 20:01
Originally posted by Neo
This can all be done using new usegroups & permissions.

But whatever works for you.

Yeeah!
I just found that out. How dumb am I to overlook that 500 million times, ROFL. (no, don't awnser that)

Xenon
02 Feb 2003, 20:06
looks intresting, a good combination with Chens private posts hack :)

just a question: have you tested to search such a thread with show as posts?

and the show single post option can hurt you too i think.

Ps: just guessing, i've not checked it completly :)

Link14716
02 Feb 2003, 20:25
You bring up a valid point, Xenon. I just tested out searching, using "Show As Posts", and searching for a users posts. When I searched for "Private" (I made a private thread with the title "Private Threads! lol). it said "Displaying Topics 1 to 4 of 4". However, it only showed 3 topics, and the invisible one was not shown.

I have not tested this with the single post option, however, I think I already got that covered up. :)

Link14716
03 Feb 2003, 00:58
UPDATE: 2/2/03
Beta 2 released. New options include: ability to add usergroups who can see all private threads in the admin CP, ability for users to create private threads that only they and selected usergroups can see (ON/OFF option), and a few bugfixes. To upgrade from Beta 1.1, follow the instructions in the upgrade.txt file; to upgrade from Beta 1, follow the instructions to edit editpost.php and postings.php in the install.txt file and then follow the instructions (minus the editpost.php and postings.php parts) in the upgrade.txt file.

Credits for Beta 2: Xenon, as I took a piece of code from his Custom Postbit hack to get this hack to work fully.
strstr(" ".$canusecpb." ", " ".$bbuserinfo[usergroupid]." ")

MajBoothroyd
03 Feb 2003, 08:35
I helped. :D

That is if you consider breaking it at every chance I got helping. :D

Dean C
03 Feb 2003, 15:31
If you made this private posts AS well as private threads you may have a new hack installer ;)

- miSt

Link14716
03 Feb 2003, 20:06
Yea, but FireFly already made a private posts hack. ;)

Link14716
03 Feb 2003, 22:15
Mist - here's a slightly modified version of FireFly's hack that allows you to post hidden posts. The only thing I changed was I made it so that the usergroupids entered in the admin CP were the ones able to post/see the hidden posts. :)

Frozen Dreams
30 Jul 2003, 13:07
When trying to run the 3rd and 4th query I get the following error (for each):

mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064
:(
Would anyone have an idea what may be causing this?