vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Private Threads Beta 2! (https://vborg.vbsupport.ru/showthread.php?t=48412)

Link14716 01-31-2003 10:00 PM

Private Threads Beta 2!
 
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.
PHP Code:

strstr(" ".$canusecpb." "" ".$bbuserinfo[usergroupid]." "


Link14716 02-01-2003 09:32 PM

Screen:

Link14716 02-01-2003 09:42 PM

Request more features! :)

Floris 02-01-2003 09:59 PM

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 02-01-2003 10:00 PM

I'll look into it :)

Sketch 02-01-2003 11:28 PM

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-01-2003 11:31 PM

This can all be done using new usegroups & permissions.

But whatever works for you.

Link14716 02-02-2003 01:59 AM

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-02-2003 06:27 PM

Quote:

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-02-2003 07:01 PM

Quote:

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-02-2003 07:06 PM

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-02-2003 07:25 PM

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 02-02-2003 11:58 PM

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.
PHP Code:

strstr(" ".$canusecpb." "" ".$bbuserinfo[usergroupid]." "


MajBoothroyd 02-03-2003 07:35 AM

I helped. :D

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

Dean C 02-03-2003 02:31 PM

If you made this private posts AS well as private threads you may have a new hack installer ;)

- miSt

Link14716 02-03-2003 07:06 PM

Yea, but FireFly already made a private posts hack. ;)

Link14716 02-03-2003 09:15 PM

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 07-30-2003 12:07 PM

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?


All times are GMT. The time now is 04:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01362 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete