Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Completely private threads Details »»
Completely private threads
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 02-28-2004 Last Update: Never Installs: 33
 
No support by the author.

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.

Show Your Support

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

Comments
  #32  
Old 07-10-2004, 04:10 PM
H2k H2k is offline
 
Join Date: Apr 2004
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neocorteqz
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
Reply With Quote
  #33  
Old 07-25-2004, 05:59 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #34  
Old 08-04-2004, 01:43 AM
dndog dndog is offline
 
Join Date: Apr 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I set permissions so that only certain usergruops can access this feature?

Thanks.
Reply With Quote
  #35  
Old 08-26-2004, 05:36 PM
Tigerdude Tigerdude is offline
 
Join Date: Aug 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #36  
Old 08-26-2004, 08:41 PM
integra99's Avatar
integra99 integra99 is offline
 
Join Date: Jun 2003
Location: Indiana
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dndog
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
Reply With Quote
  #37  
Old 09-23-2004, 01:26 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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_notallowe d'));
}
// HACK: private threads.


if ($do == 'thread')
Reply With Quote
  #38  
Old 10-17-2004, 09:43 PM
amcd amcd is offline
 
Join Date: Oct 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this sounds like a great hack, why doesn't some expert iron out the shortfalls?
Reply With Quote
  #39  
Old 11-25-2004, 12:47 PM
rnmcd rnmcd is offline
 
Join Date: Aug 2004
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In this image attachment
https://vborg.vbsupport.ru/attachmen...chmentid=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.
Reply With Quote
  #40  
Old 11-25-2004, 12:50 PM
rnmcd rnmcd is offline
 
Join Date: Aug 2004
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this function with vb 3.0.3?
Reply With Quote
  #41  
Old 11-25-2004, 12:57 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rnmcd
In this image attachment
https://vborg.vbsupport.ru/attachmen...chmentid=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.
Reply With Quote
Reply


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 11:40 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.04734 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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