View Full Version : Pm Gauge Enhanced
Princeton
02-02-2002, 10:00 PM
PM GAUGE ENHANCED
by princeton
Tested in VB. 2.2.2
With permission from Bald Bouncer
I'm making this available here.
Original PM GAUGE hack by
Goblin posted by Bald Bouncer
PM Gauge in PM pages
Index page can be made in a similar fashion if you wish.
However, I don't recommend you place it on the index page.
This is valuable space and could be used for something else. :D
This version will take into account all folders, minus tracking which doesn't have nothing to do with pmquota.
Uses template system (add a new template).
If no messages than no (table) gauge will appear.
If no pmquota than no (table) gauge will appear.
Floris
02-03-2002, 05:55 PM
What does 'gauge' mean ? ..
JTMON
02-03-2002, 06:01 PM
hi xiphoid, he means it shows a visual representation of how full the users inbox is I believe, that's what the other hack was anyways.
Princeton
02-03-2002, 06:03 PM
Thanks JTMON.
It's actually a visual representation of ALL pm folders, minus tracking.
Princeton
02-03-2002, 06:48 PM
Here's an image showing the inbox (empty) ...
Princeton
02-03-2002, 06:49 PM
Here's an image showing the saved folder ...
Princeton
02-03-2002, 06:53 PM
This is how it would look if you decide to have no pmquota or if user has no messages in any folder ...
PhotoGenie
02-04-2002, 11:46 AM
This hack is working great on 2.2.2! Thanks I really needed that but didnt want to install until it read from all folders. Great hack!!
ZiRu$
03-19-2002, 01:29 AM
thanks i will install it on 2.2.4
nafae
03-20-2002, 12:05 AM
for some odd reason this doesn't work for me on 2.2.4 -any suggestions?
Kevlar
03-30-2002, 10:08 PM
Originally posted by nafae
for some odd reason this doesn't work for me on 2.2.4 -any suggestions?
does it work on 2.2.4?
kreftt
03-30-2002, 10:40 PM
yes it does.
in the original posted version without any change.
kreftt
Mystics
04-21-2002, 07:18 PM
Hi,
if you have an user on your ignore list, and get a PM from him, you can't see the PM of him but the Gauge Hack counts it to the number of total PMs.
On the start page (index.php) you don't see this PM, because the the ignored users are excluded.
To fix this you should replace (in private.php): $msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid]");with $ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}
$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");You also will never get a 'red' image until you change this: if ($pmpercent>50) {
$barimg="https://vborg.vbsupport.ru/images/yellow.gif";
} elseif ($pmpercent>75) {
$barimg="https://vborg.vbsupport.ru/images/red.gif";
} else {
$barimg="https://vborg.vbsupport.ru/images/green.gif";
}to this: if ($pmpercent>75) {
$barimg="https://vborg.vbsupport.ru/images/red.gif";
} elseif ($pmpercent>50) {
$barimg="https://vborg.vbsupport.ru/images/yellow.gif";
} else {
$barimg="https://vborg.vbsupport.ru/images/green.gif";
}Greetings,
Mystics
Heineken77
07-16-2002, 04:37 PM
Nice hack! Thanks for it :)
Would be nice if we could get it to say Sent Folder 10% full rather than saying Inbox 10% full when the Inbox is actually cleared and the messages are in the sent folder though :D is that possible? :)
Cheers!
Heineken
Prince
07-16-2002, 09:20 PM
Originally posted by Heineken77
Nice hack! Thanks for it :)
Would be nice if we could get it to say Sent Folder 10% full rather than saying Inbox 10% full when the Inbox is actually cleared and the messages are in the sent folder though :D is that possible? :)
Cheers!
Heineken
you should look at this hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=34248)
be sure to look at the end of the thread where I posted some template changes.
Reflex
08-05-2002, 01:16 PM
Good hack, installed fine, thanks very much.
Couldn't get it to work on the index page though... not sure why, just wasn't showing it...
Dynamic One
11-01-2002, 07:38 PM
Thanks m8. will install it right away :).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.