Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
Private Threads Beta 2! Details »»
Private Threads Beta 2!
Version: 1.00, by Link14716 Link14716 is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-31-2003 Last Update: Never Installs: 1
Supported
Is in Beta Stage  

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]." "

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-02-2003, 07:06 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 02-02-2003, 07:25 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 02-02-2003, 11:58 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]." "
Reply With Quote
  #15  
Old 02-03-2003, 07:35 AM
MajBoothroyd's Avatar
MajBoothroyd MajBoothroyd is offline
 
Join Date: Dec 2002
Location: Crashing the internet one
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I helped.

That is if you consider breaking it at every chance I got helping.
Reply With Quote
  #16  
Old 02-03-2003, 02:31 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

- miSt
Reply With Quote
  #17  
Old 02-03-2003, 07:06 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, but FireFly already made a private posts hack.
Reply With Quote
  #18  
Old 02-03-2003, 09:15 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 07-30-2003, 12:07 PM
Frozen Dreams's Avatar
Frozen Dreams Frozen Dreams is offline
 
Join Date: Apr 2003
Location: Germany
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 12:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04257 seconds
  • Memory Usage 2,278KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete