Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Force Users to Read a Thread Details »»
Force Users to Read a Thread
Version: 2.0, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.6.x Rating:
Released: 07-08-2007 Last Update: 03-04-2008 Installs: 1020
DB Changes Uses Plugins
Additional Files  
No support by the author.

vB 3.7 version of this hack here: https://vborg.vbsupport.ru/showthread.php?t=172155


Force Users to Read a Thread 2.0


About this hack:
This hack allows you to set a thread as 'must read' by your members. Right now, if you make a post and want all your members to read it, you have no way of enforcing it. This hack will give an error message similar to the one you get when you need to change you password, saying that the admins want you to read a certain thread before they continue using the forum.

Once a user reads a thread, they wont be bugged to read it again.

You can set all usergroups or just certain onces that must read a thread.

You can set to site wide or just some forums.

Option to Force Guests

This hack added one query to every page on your forum a member goes to.
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 2 (1 via ACP, 2 via FTP)
  • Time to install: 1 minute
Updates:

Version 2.0 (03/05/08):
  • First Release of this Hack for vb3.7
  • MAJOR update. Hack totally re-writen. You must uninstall old version before upgrading.
  • Fixed just about all bugs. (like if you delete a thread...)
  • No more template edit. Everything done in ACP.
  • Permissions for by who ever has ACP access with threads and posts
  • Force Guests to read a thread now.
  • Works for BOTH vb3.6 AND vb3.7
Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

Pictures:
  • The error message.
  • The universal options.
  • Where you go to set the settings.
  • The list of forums that have force read settings.
  • The edit/add screen.

Supporters / CoAuthors

Show Your Support

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

Comments
  #402  
Old 03-05-2008, 12:08 PM
mc0676 mc0676 is offline
 
Join Date: Nov 2007
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, than it's not a mine problem.
Reply With Quote
  #403  
Old 03-05-2008, 12:15 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Abe...

Just uninstalled and installed the new version. I'm getting a database error page when clicking on the Force Read Thread link in the ACP.

Any idea what's causing this?

I have vB 3.6.8 PL2 installed.
Reply With Quote
  #404  
Old 03-05-2008, 12:26 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just made sure...went over everything twice...same issue.

Still getting the Database error page.

Here's the error:

Code:
Database error in vBulletin 3.6.8:
 
Invalid SQL:
 
   SELECT  administrator.*,
    userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
    IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
    language.phrasegroup_thread AS phrasegroup_thread,
    language.phrasegroup_threadmanage AS phrasegroup_threadmanage,
    language.phrasegroup_prefix AS phrasegroup_prefix,
    language.phrasegroup_cpglobal AS phrasegroup_cpglobal,
    language.phrasegroup_global AS phrasegroup_global,
    language.options AS lang_options,
    language.languagecode AS lang_code,
    language.charset AS lang_charset,
    language.locale AS lang_locale,
    language.imagesoverride AS lang_imagesoverride,
    language.dateoverride AS lang_dateoverride,
    language.timeoverride AS lang_timeoverride,
    language.registereddateoverride AS lang_registereddateoverride,
    language.calformat1override AS lang_calformat1override,
    language.calformat2override AS lang_calformat2override,
    language.logdateoverride AS lang_logdateoverride,
    language.decimalsep AS lang_decimalsep,
    language.thousandsep AS lang_thousandsep
 
   FROM user AS user
   LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
   LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN administrator AS administrator ON (administrator.userid = user.userid) LEFT JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))
 
   WHERE user.userid = 1;
 
MySQL Error  : Unknown column 'language.phrasegroup_prefix' in 'field list'
Error Number : 1054
Date         : Wednesday, March 5th 2008 @ 08:06:59 AM
Script       : http://www.xxxxxx.com/forums/admincp/force_read_thread.php
Referrer     : http://www.xxxxxx.com/forums/admincp/index.php?do=nav
IP Address   : 
Username     :
Classname    : vb_database
Reply With Quote
  #405  
Old 03-05-2008, 12:32 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Saviour View Post
Just made sure...went over everything twice...same issue.

Still getting the Database error page.
Anyone can post the query and error? Right click and show source.
Reply With Quote
  #406  
Old 03-05-2008, 12:34 PM
Biggles Biggles is offline
 
Join Date: Mar 2006
Location: Bristol, UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting the same error too, Abe1. I am also running vB 3.6.8 PL2.

Database error message reads as follows:

MySQL Error : Unknown column 'language.phrasegroup_prefix' in 'field list'
Error Number : 1054
Date : Wednesday, March 5th 2008 @ 09:21:29 AM
Script : http://www.xxxxxxxxxxxxxx.com/forums...ead_thread.php
Referrer : http://www.xxxxxxxxxxxxxx.com/forums...dex.php?do=nav
IP Address : 81.153.66.74
Username :
Classname : vB_Database


Please advise. I like the concept but can't use it yet.

Biggles
Reply With Quote
  #407  
Old 03-05-2008, 12:38 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Abe...look at my previous post.
Reply With Quote
  #408  
Old 03-05-2008, 12:48 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think i got it. Just a file change. Will update in a few min. Only effects vb3.6.x users.
Reply With Quote
  #409  
Old 03-05-2008, 12:57 PM
mc0676 mc0676 is offline
 
Join Date: Nov 2007
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Abe1 i've uninstalled this mod and i attend correction of the error but WHY i receive THIS error after i've unistalled ?!?!!?!?

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT *
FROM vb_thread AS thread
LEFT JOIN vb_force_read_users AS force_read_users ON (thread.threadid = force_read_users.force_read_threadid AND force_read_users.force_read_userid = '418')
WHERE thread.force_read = '1' AND (thread.force_read_expire_date = '0' OR thread.force_read_expire_date > '1204728706') AND (force_read_usergroups = '' OR force_read_usergroups LIKE '%-25-%' OR force_read_usergroups LIKE '%-26-%' OR force_read_usergroups LIKE '%-2-%') AND (force_read_forums = '') AND force_read_users.force_read_userid IS NULL
ORDER BY force_read_order ASC;

MySQL Error : Table 'vwgolfcommunity_com_vb.vb_force_read_users' doesn't exist
Error Number : 1146
Date : Wednesday, March 5th 2008 @ 03:51:46 PM
Script : http://www.vwgolfcommunity.com/vbull...gc_chatbox.php
Referrer : http://www.vwgolfcommunity.com/vbulletin/index.php
IP Address : 79.7.143.76
Username : diac82
Classname : vB_Database
Reply With Quote
  #410  
Old 03-05-2008, 01:01 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zip file updated. admincp/force_read_thread.php file updated to fix error for vb3.6.x users.
Reply With Quote
  #411  
Old 03-05-2008, 01:03 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mc0676 View Post
Abe1 i've uninstalled this mod and i attend correction of the error but WHY i receive THIS error after i've unistalled ?!?!!?!?

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT *
FROM vb_thread AS thread
LEFT JOIN vb_force_read_users AS force_read_users ON (thread.threadid = force_read_users.force_read_threadid AND force_read_users.force_read_userid = '418')
WHERE thread.force_read = '1' AND (thread.force_read_expire_date = '0' OR thread.force_read_expire_date > '1204728706') AND (force_read_usergroups = '' OR force_read_usergroups LIKE '%-25-%' OR force_read_usergroups LIKE '%-26-%' OR force_read_usergroups LIKE '%-2-%') AND (force_read_forums = '') AND force_read_users.force_read_userid IS NULL
ORDER BY force_read_order ASC;

MySQL Error : Table 'vwgolfcommunity_com_vb.vb_force_read_users' doesn't exist
Error Number : 1146
Date : Wednesday, March 5th 2008 @ 03:51:46 PM
Script : http://www.vwgolfcommunity.com/vbull...gc_chatbox.php
Referrer : http://www.vwgolfcommunity.com/vbulletin/index.php
IP Address : 79.7.143.76
Username : diac82
Classname : vB_Database
Do you have some hack that caches plug-ins?
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 03:42 PM.


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.05721 seconds
  • Memory Usage 2,322KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (2)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
  • (2)pagenav_pagelinkrel
  • (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