vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Req: Mark all PMs Read! (https://vborg.vbsupport.ru/showthread.php?t=45113)

N9ne 10-28-2002 02:28 PM

Req: Mark all PMs Read!
 
I hate it when it says 55 Unread PMs or something, it's just annoying ok? :p

Anyway, I'm requesting a hack where in the userCP, in private.php maybe, there's a link to "Mark all PMs Read", this would be useful to me and maybe some others, is it possible?

Xenon 10-28-2002 02:57 PM

yes possible and not hard to to:

open privat.php

after require(global.php add:)

PHP Code:

if($action=="markread") {

$DB_site->query("UPDATE privatemessage SET messageread=1, readtime='".time()."' WHERE userid=$bbuserinfo[userid]");


then all you have to do is to add a link to private.php?action=markread and all well be marked read.

not nice because of no messages put to screen but it worx

Chris M 10-28-2002 03:41 PM

I am making a proper hack for this - hopefully:)

Satan

Chris M 10-28-2002 04:05 PM

Ok it works:)

Edit: Here is the hack --> click meh - blargh!!

Satan

N9ne 10-28-2002 04:56 PM

LoL, ok Xenon, your modification in your post worked for me and I was about to post on it should have a redirect back, but thanks hellsatan for releasing a thorough version, we make a good team :D

I request Hack
Xenon Post Code
hellsatan Release Hack with addon

:D

Chris M 10-28-2002 05:44 PM

Lol:)

Satan


All times are GMT. The time now is 08:59 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.02157 seconds
  • Memory Usage 1,717KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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