Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Bald Bouncer Bald Bouncer is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-17-2002 Last Update: Never Installs: 84
 
No support by the author.

Displays a gauge on how full your PM Inbox is....

Updates

Display on Forum Home or in PM section
Bar Colour changes with % Limits

Fixed

Black box in PM Template

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 07-12-2002, 04:01 AM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, you're correct! thanks.
Reply With Quote
  #83  
Old 07-12-2002, 04:58 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh, btw, if you are including the PM Guage with the bar graph you do need that query in private.php or it will not work, but it's not needed in index.php.
Reply With Quote
  #84  
Old 07-29-2002, 02:28 AM
BarryA BarryA is offline
 
Join Date: Jul 2002
Location: Pasadena, TX
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed the hack and I think it broke my "Send PM to Buddies". Send PM to Buddies now comes up with a blank screen.

Has anyone else had this problem?
Reply With Quote
  #85  
Old 07-29-2002, 03:06 AM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the hack did not break it, you did!

re-do the hack, it works fine.
Reply With Quote
  #86  
Old 09-06-2002, 12:24 AM
Baptizer Baptizer is offline
 
Join Date: Nov 2001
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack.....i just have to fix my images and it works perfectly.

QUick question: In my Vbulletin control panel, i 'think' the pm limit was set to 70, but some people had 500 pms in their box! why is that?
Reply With Quote
  #87  
Old 09-07-2002, 11:54 PM
TvNut TvNut is offline
 
Join Date: Aug 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like the hcak but looking for something that can go into here..just under it...
Reply With Quote
  #88  
Old 09-08-2002, 12:14 AM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by TvNut
I like the hcak but looking for something that can go into here..just under it...
Check out the hack I did for PM statistics

https://vborg.vbsupport.ru/showthrea...threadid=42360
Reply With Quote
  #89  
Old 09-19-2002, 06:54 PM
crazza's Avatar
crazza crazza is offline
 
Join Date: Sep 2002
Location: The Lowlands
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a tiny error in the php code for this hack. Because of this, the colour for 75% and up will never work..

This is the original code:

Quote:
if ($inboxpms < 1) {
$pmpercent = "1"; // stop divisions by zero
} else {
$pmpercent = round(($inboxpms[messages] / $pmquota) * 100,2);
}
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";
}
It should be changed to

Quote:
if ($inboxpms < 1) {
$pmpercent = "1"; // stop divisions by zero
} else {
$pmpercent = round(($inboxpms[messages] / $pmquota) * 100,0);
}
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";
}
I have tested this.. and it works..
Reply With Quote
  #90  
Old 09-19-2002, 07:03 PM
crazza's Avatar
crazza crazza is offline
 
Join Date: Sep 2002
Location: The Lowlands
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've done some additional editing on the php and template code, to add a view of outbox % too..

The full php enhancement now looks like this:

Quote:
//PM GAUGE HACK BY GOBLIN and Installed by CraZ on September 19, 2002

$inboxpms=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=0 $ignoreusers");
if ($inboxpms < 1) {
$pmpercent = "1"; // stop divisions by zero
} else {
$pmpercent = round(($inboxpms[messages] / $pmquota) * 100,0);
}
if ($pmpercent>75) {
$barimg="{imagesfolder}/red.gif";
} elseif ($pmpercent>50) {
$barimg="{imagesfolder}/yellow.gif";
} else {
$barimg="{imagesfolder}/green.gif";
}

// outbox part by CRAZ

$outboxpms=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid='-1' $ignoreusers");
if ($outboxpms < 1) {
$outpmpercent = "1"; // stop divisions by zero
} else {
$outpmpercent = round(($outboxpms[messages] / $pmquota) * 100,0);
}
if ($outpmpercent>75) {$outbarimg="{imagesfolder}/red.gif";}
elseif ($outpmpercent>50) {$outbarimg="{imagesfolder}/yellow.gif";}
else {$outbarimg="{imagesfolder}/green.gif";}

//PM GAUGE HACK BY GOBLIN
To the privfolder template I've added the following (in stead of the original alterations for this hack..

Quote:
<br>


<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td width="50%" bgcolor="{secondaltcolor}"><smallfont>Je Inbox is $pmpercent% vol</td>
<td width="50%" bgcolor="{secondaltcolor}"><smallfont>Je Outbox is $outpmpercent% vol</td>
</tr>

<tr>
<td width="50%" bgcolor="{secondaltcolor}"><img src="$barimg" width="$pmpercent%" height="9">
<table border="0" cellspacing="1" width="100%">
<tr>
<td width="33%"><smallfont>0%</td>
<td width="34%"><p align="center"><smallfont>50%</td>
<td width="33%"><p align="right"><smallfont>100%</smallfont></p></td>
</tr>
</table>
</td>

<td width="50%" bgcolor="{secondaltcolor}"><img src="$outbarimg" width="$outpmpercent%" height="9">
<table border="0" cellspacing="1" width="100%">
<tr>
<td width="33%"><smallfont>0%</td>
<td width="34%"><p align="center"><smallfont>50%</td>
<td width="33%"><p align="right"><smallfont>100%</smallfont></p></td>
</tr>
</table>
</td>


</tr>
</table>
</td></tr></table>

<br>

As you can see, the colspan of 7 is gone.. I've taken the liberty to place the gauges outside of the message table.. so insert the code above the table declarations (there are two).. and not directly above the $privatemessages

See attachment for a screenshot (never mind the dutch lingo)..
Reply With Quote
  #91  
Old 11-01-2002, 07:41 PM
Dynamic One's Avatar
Dynamic One Dynamic One is offline
 
Join Date: Nov 2001
Location: Somewhere on the net
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks m8. had already dl another1, but I will see wich one is the easiest to install.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:57 PM.


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.06532 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete