Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Mark Multiple PMs Read... Details »»
Mark Multiple PMs Read...
Version: 1.00, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-27-2002 Last Update: Never Installs: 6
 
No support by the author.

Hack Information
Requested by: N9ne here
Query and some coding by: Xenon

Install
Queries to run: 1/2 (2nd is optional - see below)
Files to modify: 2 (root/private.php & admin/usergroup.php)
Templates to modify: 1 (privfolder)
Templates to add: 2
Install time: 5 minutes
Screenshots: 4 (One alternate template edit)

You can view the 4th Screenshot (provided by N9ne) here

What it does

At the moment, it is an un-message specific "Mark Multiple PMs Read" hack...This means that if you have 10 New PMs, it will Mark ALL of them as Read, if you have the usergroup permission to...

Notice to Installers

By Default, the "Can Mark Multiple PMs Read?" option in admin/usergroup.php is OFF...You will have to edit the usergroups that you want to be able to Mark PMs read...

Alternatively - If you want everyone to be able to, run this query below, as well as installing and running the query in the install file...

Warning: This will set the "Can Mark Multiple PMs Read?" option to "YES"...
[sql]UPDATE usergroup SET canmarkread=1[/sql]

Thats it really...

Thanks to Xenon for providing the "Mark PMs Read" query

Satan

Show Your Support

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

Comments
  #2  
Old 10-28-2002, 04:26 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot 1...

Description: The "Mark PMs Read" option on the Private Messages Screen...

Satan
Reply With Quote
  #3  
Old 10-28-2002, 04:26 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot 2...

Description: The user has sucessfully marked all his PMs as read...

Satan
Reply With Quote
  #4  
Old 10-28-2002, 04:27 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot 3...

Description: The user has not got permission to Mark the PMs as Read...

Satan
Reply With Quote
  #5  
Old 10-28-2002, 04:41 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, installing now, I'll tell you if it works or not
Reply With Quote
  #6  
Old 10-28-2002, 04:53 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok it works, but I made a modification to the template privfolder.

Here's what I did, instead of your step :

In template privfolder find:

Code:
	Selected messages: <select name="folderid">
Add the following above it:

Code:
<a href="private.php?s=&action=markread"><smallfont color="#EEEEFF">Mark PMs Read</smallfont></a> |
It looks messed up doing it the way hellsatan put it

Anyway, it works flawlessly on a heavily hacked 2.2.8 board so no one at all should reply complaining

Hellsatan: go on aim
Reply With Quote
  #7  
Old 10-28-2002, 05:03 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well done, Chris. A useful hack this one!
Reply With Quote
  #8  
Old 10-28-2002, 05:19 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lol cool

I'll update the file

N9ne - Could you provide a Screenshot so I can add it to the Screenshots? Thanks

Thanks Erwin

Satan
Reply With Quote
  #9  
Old 10-28-2002, 05:48 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screen shot of my template mod is attached.
Reply With Quote
  #10  
Old 10-28-2002, 05:50 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks

Updated first post...

Satan
Reply With Quote
Reply

Thread Tools

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 09:26 AM.


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.04724 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
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_code
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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
  • 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