vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Show un-replied pms (https://vborg.vbsupport.ru/showthread.php?t=199965)

logicuk 12-28-2008 07:50 AM

Show un-replied pms
 
I run a very large forum and somedays i get 50 pm's

i read some but always forget to reply to some

I need an addon that will list all pm's that haven't been replied to

Thanks Logic

R1lover 12-28-2008 08:17 AM

Once you reply to a pm, you can see the icon on the left of the message will show that you have replied, if you don't see this then you have not replied.

logicuk 12-28-2008 09:54 AM

Quote:

Originally Posted by R1lover (Post 1695386)
Once you reply to a pm, you can see the icon on the left of the message will show that you have replied, if you don't see this then you have not replied.


Do you think i dont know this??? im not a vbulletin newbie......i run a very large forum

I get over 50 pm's a day mate hence i asked for this addon to be made

Alfa1 12-28-2008 03:26 PM

This would be a very nice feature. Thank you for coming up with this. I have a mass of unanswered Pm's. But no time to seek them out.

logicuk 12-28-2008 03:45 PM

Yeah i get mad pm's every day, this feature would be a life saver

because i am sure i miss replying to some people because i have so many pm's

R1lover 12-28-2008 10:30 PM

Quote:

Originally Posted by logicuk (Post 1695442)
Do you think i dont know this??? im not a vbulletin newbie......i run a very large forum

I get over 50 pm's a day mate hence i asked for this addon to be made

There are all types of people on here, without knowing you specifically there is no way for me to know your experience level, please don't take offense to it as you stating you run a large forum really means nothing to be honest.

logicuk 12-29-2008 08:24 AM

R1lover go away and take your bad attitude else where.

WhaLberg 12-29-2008 09:37 AM

well, no need to fight. i do not agree this is something so needed, however i'd like to help.

as vb doesn't provide a hook for the additional query entry, you'll need to make a file edit.

find the following codes in private.php. use a php editor so you can see the line numbers as there are 18 $pms variable defined in the private.php
starting: line 1629
ending: line 1639
PHP Code:

// query private messages
        
$pms $db->query_read_slave("
            SELECT pm.*, pmtext.*
                " 
iif($vbulletin->options['privallowicons'], ", icon.title AS icontitle, icon.iconpath") . "
            FROM " 
TABLE_PREFIX "pm AS pm
            LEFT JOIN " 
TABLE_PREFIX "pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
            " 
iif($vbulletin->options['privallowicons'], "LEFT JOIN " TABLE_PREFIX "icon AS icon ON(icon.iconid = pmtext.iconid)") . "
            WHERE pm.userid=" 
$vbulletin->userinfo['userid'] . " AND pm.folderid=" $vbulletin->GPC['folderid'] . 
            ORDER BY pmtext.dateline DESC
            LIMIT 
$startat, " $vbulletin->GPC['perpage'] . "
        "
); 

replace it with:
PHP Code:

// query private messages
        
$pms $db->query_read_slave("
            SELECT pm.*, pmtext.*
                " 
iif($vbulletin->options['privallowicons'], ", icon.title AS icontitle, icon.iconpath") . "
            FROM " 
TABLE_PREFIX "pm AS pm
            LEFT JOIN " 
TABLE_PREFIX "pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
            " 
iif($vbulletin->options['privallowicons'], "LEFT JOIN " TABLE_PREFIX "icon AS icon ON(icon.iconid = pmtext.iconid)") . "
            WHERE pm.userid=" 
$vbulletin->userinfo['userid'] . " AND pm.folderid=" $vbulletin->GPC['folderid'] . " " . ($_GET['unreadonly'] ? "AND messageread = 0" "") . 
            ORDER BY pmtext.dateline DESC
            LIMIT 
$startat, " $vbulletin->GPC['perpage'] . "
        "
); 

Now visit your private messages as: http://forumurl/private.php?unreadonly=1. You can put that link to anywhere you wish.

logicuk 12-30-2008 09:10 PM

So an .xml mod is not possible?

Ziki 12-31-2008 06:26 AM

It is,I might do that soon.


All times are GMT. The time now is 03:12 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.01124 seconds
  • Memory Usage 1,754KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete