PDA

View Full Version : Show un-replied pms


logicuk
12-28-2008, 07:50 AM
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
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
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

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

// 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.

logicuk
12-31-2008, 08:24 AM
It is,I might do that soon.


Kool if you do i will be happy to make a paypal donation :)

WhaLberg
12-31-2008, 11:38 AM
It is,I might do that soon.

will you make a file edit or just another query / file to match unread pms?

Ziki
01-01-2009, 09:58 AM
I will either rewrite the query using plugins or make another one.

logicuk
01-04-2009, 09:07 AM
I will either rewrite the query using plugins or make another one.

Sweet any idea when you can do this ziki :)

Ziki
01-06-2009, 07:36 PM
Here is a product,I pretty much just copied the vB code.Perhaps you can ask the staff to give me permission to release it as a mod ;)

Open template pm_messagelist and find:

(<a href="private.php?do=emptyfolder&amp;folderid=$folderid"><em>$vbphrase[empty_folder]</em></a>)

After that add this (with the space in front):

(<a href="private.php?do=unreadpm"><em>Unread Messages</em></a>)


Then import this product.Done.

logicuk
01-08-2009, 07:55 AM
Sweet, yes please do release this as a vb 3.7 mod!!

Ziki
01-08-2009, 05:05 PM
Hm I am not sure if I can.There is too much vB code I guess.

Here is the plugin that shows messages that weren't replied to.