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

Reply
 
Thread Tools
Force Users to Read PMs by BOP5 (VB4/VB3) Details »»
Force Users to Read PMs by BOP5 (VB4/VB3)
Version: 1.1, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.x.x Rating:
Released: 07-22-2012 Last Update: Never Installs: 46
Supported Uses Plugins
 

Brought to you by BirdOPrey5
www.Qapla.com


This is a fairly simple mod to allow Admins to force users (by usergroup) to make sure they have read all their PMs before they are allowed to use/browse the forums.

Version 1.1

1.0 - Initial Release (on Qapla.com)
1.1 - Added username to the error message

Note: In the VB4 Publishing Suite there is no way to prevent users from browsing or using the CMS system due to the lack of the required hook in these areas.

Quote:
Demo: You must register at www.Qapla.com/mods/

Then go to Permission Groups in Settings.

Join the "Force Reading PMs Demo" Group.

Now either send yourself a PM, or if you already have an unread PM try to access a forum or a thread or blog or profile- you will be blocked by the mod. You can also try to "Mark as Read" some PMs via the checkboxes without opening them- you will see that has been blocked too.

You can leave the group again by going to the same page when you're done testing.
You can customize the message by editing the Error Message Phrase: bop5_force_read_pm_message

Thinking about this further, this could be a great way of fighting spam. I'm sure none of the current spam bots out there bother reading any PMs, and if you set your forum to send a welcome PM, every new user will get at least 1 PM. If the spam bot doesn't check them they will never be allowed to post anything. Talk about unintended consequences.

Please "Mark as Installed" if you use this.
Donations Always Appreciated. :up:

Download Now

File Type: zip Force Reading of PMs by BOP5 v1.1.zip (4.6 KB, 232 views)

Screenshots

File Type: jpg v11-message-force-read-pms.jpg (24.0 KB, 0 views)
File Type: jpg ss_must_read_vb4.jpg (101.0 KB, 0 views)
File Type: jpg ss_mark_as_read_vb4.jpg (91.9 KB, 0 views)
File Type: jpg ss_force_read_settings.jpg (79.8 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 07-24-2012, 08:51 PM
Trek Trek is offline
 
Join Date: Sep 2003
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
That would need a lot of custom coding Trek. We'll see...
Fair enough, I have no idea the work involved. =)
Reply With Quote
  #13  
Old 07-24-2012, 09:52 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well for an overview, the fact there is any unread PMs is part of the $vbulletin array and therefore accessible on every singe page of vBulletin without any custom queries or coding needed.

On the other hand to see if there are any unread PMs from specific users would require coding a "global" plugin (on that runs on every page) that requires at least one query of the database return the userids of all unread PMs in the user's PM Storage, and then decide to show a message or not depending on if any of the userids returned match a list of userids stored in settings.

It isn't very difficult work but a lot more involved relatively then the simple 1 line more or less in the current mod: if ($vbulletin->userinfo['pmunread'] > 0) that does the majority of the work.

So it's something I might get to if I find myself bored with a couple hours to spare- but it's been a while since I've been bored like that.

If anyone else wants to try, feel free to release your own version with this option.
Reply With Quote
  #14  
Old 01-04-2013, 05:19 PM
DirtRider DirtRider is offline
 
Join Date: Feb 2011
Location: South Africa
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod, would it be possible for it to also include members with post count = X amount of post. The way I have my usergroups setup I would only want it to tag members with 5 or less post
Reply With Quote
  #15  
Old 01-12-2013, 02:39 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes that would be possible... will take a little time though... still recovering.
Reply With Quote
  #16  
Old 04-14-2013, 02:19 PM
Menno11's Avatar
Menno11 Menno11 is offline
 
Join Date: Feb 2011
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great on vb 4.2.0 p3

Thx Bird
Reply With Quote
Благодарность от:
BirdOPrey5
  #17  
Old 04-30-2013, 12:48 AM
b65ran b65ran is offline
 
Join Date: Apr 2005
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have question here. Lets say I enable this feature for Group X. Would they be forced to read PMs sent by anyone, or its when an admin sends a PM ?
Reply With Quote
  #18  
Old 05-12-2013, 08:56 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They would have to read ALL PMs, from anyone.
Reply With Quote
  #19  
Old 08-20-2014, 01:14 PM
ZeroDoom ZeroDoom is offline
 
Join Date: Dec 2013
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't believe I didn't see this. Worked for v4.2.2, thank you very much!
Reply With Quote
Благодарность от:
BirdOPrey5
  #20  
Old 03-09-2015, 10:25 AM
tagline tagline is offline
 
Join Date: Dec 2011
Location: Italy - Rimini
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great plugin, but I've disabled (non uninstalled) because I was searching something little bit different. In other words, force user to read only Admin PM's
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 07:05 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.07651 seconds
  • Memory Usage 2,328KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete