vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Mark Multiple PMs Read... (https://vborg.vbsupport.ru/showthread.php?t=45119)

Chris M 10-27-2002 10:00 PM

Mark Multiple PMs Read...
 
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

Chris M 10-28-2002 04:26 PM

Screenshot 1...

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

Satan

Chris M 10-28-2002 04:26 PM

Screenshot 2...

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

Satan

Chris M 10-28-2002 04:27 PM

Screenshot 3...

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

Satan

N9ne 10-28-2002 04:41 PM

Thanks, installing now, I'll tell you if it works or not :p

N9ne 10-28-2002 04:53 PM

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

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

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 :p

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

Hellsatan: go on aim ;)

Erwin 10-28-2002 05:03 PM

Well done, Chris. A useful hack this one! :)

Chris M 10-28-2002 05:19 PM

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

N9ne 10-28-2002 05:48 PM

Screen shot of my template mod is attached.

Chris M 10-28-2002 05:50 PM

Thanks:)

Updated first post...

Satan

Matt87 10-29-2002 12:23 AM

Nice one satan :D

Chris M 10-29-2002 10:01 AM

Thanks:)

Satan


All times are GMT. The time now is 02: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.00960 seconds
  • Memory Usage 1,732KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete