vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   New Posting Features - QHSF Private Thread (https://vborg.vbsupport.ru/showthread.php?t=187992)

Moya 08-12-2008 10:00 PM

QHSF Private Thread
 
Private Threads

This hack has been ported to vBulletin 3.7.2 from the vBulletin 3.5.4 version with permission granted by:

Quote:

Originally Posted by Eikinskjaldi
Quote:

Originally Posted by Moya
Hi Eikinskjaldi,

Are you going to release this for 3.7.x? I have it works under 3.7.x. If you don't plan to release it, can I release it?

Hi there,

Feel free to release it :)

This hack starts from this thread Completely Private Thread and this thread vBPrivate Thread

This private thread mod allow administrators allow a certain forum to have this feature on or off.

With this modification members can create threads that are useful for private conversations. Here are the basic options
  • Allow Selected Users To View and Prevent Others from viewing.
  • Allow Selected Usergroup To View and Prevent Others from viewing.
  • Prevent Selected Users From viewing.
Hack Overview:
  • Products: 1
    • 2 Queries
    • 15 Phrases
    • More than 15 Plugins :D
  • File Edits: 1
  • File Uploaded: 2
  • Template Added: 4
  • Estimated Install time: Under 5 minutes
vbadvanced cmps support: (3.0.x)
  • Block Content From Private Thread From Displaying In News Module
  • Block Content From Private Thread From Previewing In Recent Thread Module
Note : To make the message of a private thread less offensive, I use the invalid thread link

Install Instruction:

Upload :
  • functions_privatethread.php to your includes folder
  • hooks_privatethread.xml to your includes/xml folder
Edit :
  • Open archive/index.php
Find
PHP Code:

else
{
    
$globalignore '';


add under

PHP Code:


($hook vBulletinHook::fetch_hook('privatethread_archiveindex')) ? eval($hook) : false

Install the product using your Plugin & Products System
Edit your forum information to turn private thread option on/off

Bug Fixed :

VBPhrase Tranlation:



Please post your comments, suggestions, ideas for this product. I will read all posts.

Make sure you click INSTALL!
You will be contacted when a new version is released.

Moya 08-13-2008 05:49 AM

Reserved for future information / planned features

RedeemedWarrior 08-13-2008 05:54 AM

this sounds good :D

where are the files ;)

Moya 08-13-2008 05:59 AM

:D I am a slow snail :D. I haven't work with releasing mod for awhile :D

Vegetrunks 08-13-2008 07:03 AM

Good, I will try it.

KURTZ 08-13-2008 10:08 AM

2 questions:

1) admins and mods are affected by this hack?
2) the name of the usergroups must be write only by name or also by the ID?

thx

*tagged

Barakat 08-13-2008 12:00 PM

so long moya ..... thanks

Moya 08-13-2008 02:25 PM

Kurtz,

1) Currently, this mod is set to allow Admins the privilege, not mods
2) It uses the usergroup title

xorex 08-13-2008 04:11 PM

Help ! :eek:

Quote:


Warning: include_once(./includes/functions_privatethread.php) [function.include-once]: failed to open stream: No such file or directory in [path]\forumdisplay.php(955) : eval()'d code on line 187

Warning: include_once() [function.include]: Failed opening './includes/functions_privatethread.php' for inclusion (include_path='.;C:\1\php\pear\') in [path]\forumdisplay.php(955) : eval()'d code on line 187

Fatal error: Call to undefined function private_thread_not_allowed() in C:*****\forumdisplay.php(955) : eval()'d code on line 188


Moya 08-13-2008 04:15 PM

Hi xorex,

Did you upload the file called function_privatethread.php to your includes directory?

xorex 08-13-2008 04:26 PM

HI Moya

Ooops !! :D upload functions_privatethread.php in forum root and it work fine :)

Thanx work fine @! :up::up:

+ russian translate attached update first post please ! ;)

Moya 08-13-2008 04:39 PM

I can't upload anymore. The system is saying that I have reached maximum 10 files

xorex 08-13-2008 04:43 PM

...... i have error in thread of forum where this hack disabled

Quote:


Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\******\showthread.php(2157) : eval()'d code on line 377

ideas ?

Moya 08-13-2008 04:46 PM

Hmmm I don't have that error on my site. I will check it again tonight.

xorex 08-13-2008 04:56 PM

I tried to load this hack on a pure test forum a mistake also exists

RedeemedWarrior 08-13-2008 05:17 PM

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in [pathtoforum]/showthread.php(2153) : eval()'d code on line 74

Moya 08-13-2008 06:16 PM

Quote:

Originally Posted by RedeemedWarrior (Post 1597942)
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in [pathtoforum]/showthread.php(2153) : eval()'d code on line 74

Do you have the product enabled? I created and viewed a thread here without any problem

http://www.christfirstrpg.co.uk/foru...7711#post47711

Moya 08-13-2008 07:09 PM

I found the problem. I forgot to close the if statement in the template.

Please download and reinstall

bw1 08-13-2008 10:21 PM

I am blind.
Where?s the on/off switch?

___________
FOUND :)

soletrader 08-13-2008 11:37 PM

When a user without access visits the post link a message appears: Invalid Thread specified. If you followed a valid link, please notify the administrator

Is there anyway to change this message specific for this hack? This message seems as if the thread does not exist. Thanks

soletrader 08-14-2008 12:47 AM

Also, would it be possible to disable the selection of usergroups? It will also make sense if members can uninvite themselves from threads as well.

Lionel 08-14-2008 12:52 AM

Does this take the archives into consideration?

Moya 08-14-2008 02:32 AM

soletrader,
I change the message to regular notification and add the archive option.

Lionel,

It is now :D

soletrader 08-14-2008 02:47 AM

Thanks Lionel. I would be interested in seeing an option for the thread starter to add/remove users even after the thread is created since the edit limit by default is only 30 min. Thanks

Lionel 08-14-2008 03:46 AM

2 problems.

1-installing it gave me a class_bitfield_builder.php error
2-it is not inserting anything in TABLE_PREFIX . "thread (so the checkbox always remain at first option) and for admin in showthread, it displays a line for an empty table

Moya 08-14-2008 04:23 AM

Hi Lionel,

This hack doesn't use any bitfield. I don't know why you get that error. For your second error, I think it is because the product didn't finish installing.

RedeemedWarrior 08-14-2008 04:47 AM

I had disabled it when you had made the thread :)

The glitch stopped with the new Xml file :)

not tested it yet though

Lionel 08-14-2008 11:27 AM

Quote:

Originally Posted by Moya (Post 1598198)
Hi Lionel,

This hack doesn't use any bitfield. I don't know why you get that error. For your second error, I think it is because the product didn't finish installing.

hummm I installed it 4 times.
I know it does not use bitfields. That is getting me puzzled also.

Moya 08-14-2008 03:08 PM

Do you have the list of hacks that are currently installed on your board?

Lionel 08-14-2008 03:16 PM

I managed to get it to work. I fixed the line in showthread by closing all the <table within each if condition. instead of table on top and at the end ... so of course if you get nothing then you get a thin line for table, at least in FF

Only that bitfields error .... but hey it works. Thanks.

soletrader 08-15-2008 03:54 AM

Is there anyway to exclude private threads from showing up in unread posts?

Moya 08-15-2008 04:09 AM

I haven't thought of that. I will work on it

Megatr0n 08-22-2008 08:26 PM

Moya, another error when selecting "Find All Posts" on a users profile:

Database error in vBulletin 3.7.2:

Invalid SQL:

SELECT post.postid, post.title AS posttitle, post.dateline AS postdateline,
post.iconid AS posticonid, post.pagetext, post.visible, post.attach,
IF(post.userid = 0, post.username, user.username) AS username,
thread.threadid, thread.title AS threadtitle, thread.iconid AS threadiconid, thread.replycount,
IF(thread.views=0, thread.replycount+1, thread.views) as views, thread.firstpostid, thread.prefixid, thread.taglist,
thread.pollid, thread.sticky, thread.open, thread.lastpost, thread.forumid, thread.visible AS thread_visible,
user.userid
,pdeletionlog.userid AS pdel_userid, pdeletionlog.username AS pdel_username, pdeletionlog.reason AS pdel_reason
,tdeletionlog.userid AS tdel_userid, tdeletionlog.username AS tdel_username, tdeletionlog.reason AS tdel_reason
, threadread.readtime AS threadread
,thread.vbbux_cost,thread.vbplaza_titleflags,threa d.vbplaza_titletextcolor,threa d.vbplaza_titleglowcolor,thread.vbplaza_titleshado wcolor,thread.vbplaza_titlefon ttype,thread.vbplaza_titlebordercolor,thread

Rene Kriest 09-05-2008 07:08 PM

Your addon sounds pretty neat. Before I'll give it a try I have a question:

Can the thread starter later change his options so that you can add and remove members who can read or are not permitted to read the thread?

viper357 10-22-2008 11:49 AM

Will this work on 3.6.11?

4x4 Mecca 11-09-2008 09:16 PM

If I use this with the live post feed hack http://www.4x4mecca.com/forum/vaispy.php it shows the content of the post there. I know this other hack has nothing to do with you, but do you have any suggestions on how to get it not to show up there?

Rene Kriest 11-15-2008 03:29 PM

Quote:

Originally Posted by bw1 (Post 1598080)
I am blind.
Where?s the on/off switch?

___________
FOUND :)

Well, I am still blind. Anyone may help with the switch?

Well I finally got it, too:
Go to your Admin Panel/Forum Rights/

rob01 11-24-2008 02:32 AM

Code:

Database error in vBulletin 3.7.4:

Invalid SQL:

                SELECT post.postid, post.pagetext, IFNULL( user.username , post.username ) AS
username, dateline
                FROM vbb_post AS post
                LEFT JOIN vbb_user AS user ON (user.userid = post.userid)
                WHERE threadid = 36
                        AND visible = 1
                        and privatethread <> 1
                ORDER BY dateline ASC
                LIMIT 0,250;

MySQL Error  : Unknown column 'privatethread' in 'where clause'
Error Number  : 1054
Request Date  : Sunday, November 23rd 2008 @ 05:46:40 PM
Error Date    : Sunday, November 23rd 2008 @ 05:46:40 PM
Script        : http://tustan.net/bbs/archive/index.php/t-36.html
Referrer      :
IP Address    : @@@@@@@@@
Username      :
Classname    : vB_Database
MySQL Version :


someone gets this error?

Rene Kriest 11-24-2008 07:28 AM

@rob01

Yep, I did. Just remove the PHP code that comes together with this add-on from archive/index.php. That's all.

Have a look at your error message which states
Quote:

Script: http: //tustan.net/bbs/archive/index.php/t-36.html

btotw 01-09-2009 05:38 PM

How can I disable certain usergroups from being able to start a private thread?

Thank you


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

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.01290 seconds
  • Memory Usage 1,824KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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