vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBPrivate Threads (https://vborg.vbsupport.ru/showthread.php?t=109096)

SimCityForum 09-12-2006 03:27 PM

Quote:

Originally Posted by wholemama
Has anyone successfully had this working on 3.6?

Yes if you just upgraded from vB3.5x to vB3.6 you need to go back through and modify your templates and FOUR vBulletin PHP files as per the instructions.

Be very careful and use a little judgement as there are subtle adjustments that need to be made. For instance in postings.php the following mod needs to be used:
Code:

// M/DD/YY PRIVATE THREADS PORT

if ($_POST['do'] == 'updatethread')
{
        $vbulletin->input->clean_array_gpc('p', array(
                'visible'                => TYPE_BOOL,
                'open'                        => TYPE_BOOL,
                'sticky'                => TYPE_BOOL,
                'iconid'                => TYPE_UINT,
                'notes'                        => TYPE_NOHTML,
                'threadstatus'                => TYPE_UINT,
                'reason'                => TYPE_NOHTML,
                'title'                        => TYPE_STR,
                'redirect'                => TYPE_STR,
                'frame'                        => TYPE_STR,
                'period'                => TYPE_UINT,
                'privatethread'                => TYPE_UINT,
                'privateusers'                => TYPE_STR
        ));
// END PRIVATE THREADS PORT

Instead of:
Code:

// M/DD/YY PRIVATE THREADS PORT

if ($_POST['do'] == 'updatethread')
{
        $vbulletin->input->clean_array_gpc('p', array(
                'visible'                => TYPE_BOOL,
                'open'                        => TYPE_BOOL,
                'sticky'                => TYPE_BOOL,
                'iconid'                => TYPE_UINT,
                'notes'                        => TYPE_NOHTML,
                'threadstatus'                => TYPE_UINT,
                'reason'                => TYPE_NOHTML,
                'title'                        => TYPE_STR,
                'redirect'                => TYPE_STR,
                'privatethread'                => TYPE_UINT,
                'privateusers'                => TYPE_STR
        ));
// END PRIVATE THREADS PORT

because of the two additional fields in v3.6. Just be careful and if you understand PHP you will be fine.

camoman 09-15-2006 03:06 PM

IS there a way to have it NOT display the post to users who do not have permission to view it? right now when a user posts it shows the post on vbcmps but comes up with the No Permission reply. It would save some controversy on the site if people who didn't have permission to view it didn't see it at all..

also is there a way so that users can edit the list of people allowed to view the thread after the fact?

Eikinskjaldi 09-17-2006 04:58 PM

Thanks for pointing out those little things above SimCit.

As for making it not show stuff on vbCMPS, I have not honestly looked into that because I dont show any private threads on it. However when the 3.6 version is released you can use a new permissions function for it most likely, but to make it look right you'd have to increase the amount of posts it takes in, to balance it out.

As far as making it editable by users, this seems to be a popular idea, I may e nd up making a page and such for it and just add it to inline tools but as I recall if you give the forums with private threads specific user permission they should be able to edit the thread or get to the place for editing options where they can also edit private users.

Been Told 11-21-2006 10:32 AM

Quote:

Originally Posted by Eikinskjaldi (Post 1066492)
I am going to release a version for 3.6 but it wont really be a port, i am finally going to release a version with all the bug fixes and such that this one never had. So yes it will be coming soon. It resembles less of the old version and more of my own code but at its heart it is still the same program, so port or new, its coming.

That's great to hear :)
I just migrated from Invision and I had a hack that password-protected threads. This cool hack would be the nearest to that sort of thing I can find.

LadyBeth 11-26-2006 10:53 AM

Really really need this for 3.6.3
Pretty please with sugar on top?

Been Told 11-29-2006 06:06 PM

Same here... I migrated from Invision where I had a similar mod and my members want their private threads back lol.
:)

Revpolar 12-02-2006 03:35 AM

I cant get it to work on 3.6. It does kinda work but when i select usergroup option everyone can see it. When I choose user option the selected user cant see it and get the your not allowed message. Im sure its a simple edit or two that would have it fully working.

Been Told 12-13-2006 08:34 AM

I just got this to work on vBulletin 3.6!!!! Thanks very much for this great mod man! Awesome! :)

One Question though... How do I edit who can see the thread after it has been created?

Eikinskjaldi 12-16-2006 01:58 PM

Currently only mods and admins can, you have to edit the actual thread. Same as the location where you edit the thread title. I am planning on moving this to its own option later on.

As for the official version for 3.6, iv run into to many time traps to get it out, when iv got the chance i'll start packaging the official Private Threads for 3.6

Revpolar 12-21-2006 04:38 PM

Please do. I really would appretiate it.


All times are GMT. The time now is 09:03 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.01131 seconds
  • Memory Usage 1,749KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete