Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: 1.00, by Princeton Princeton is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-02-2002 Last Update: 02-02-2002 Installs: 71
 
No support by the author.

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.

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.

Show Your Support

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

Comments
  #12  
Old 03-30-2002, 10:08 PM
Kevlar's Avatar
Kevlar Kevlar is offline
 
Join Date: Nov 2001
Location: Ft. Lauderdale, FL.
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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?
Reply With Quote
  #13  
Old 03-30-2002, 10:40 PM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes it does.

in the original posted version without any change.

kreftt
Reply With Quote
  #14  
Old 04-21-2002, 07:18 PM
Mystics's Avatar
Mystics Mystics is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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):
PHP Code:
  $msgcount $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid]"); 
with
PHP Code:
  $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:
PHP Code:
  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:
PHP Code:
  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
Reply With Quote
  #15  
Old 07-16-2002, 04:37 PM
Heineken77 Heineken77 is offline
 
Join Date: Jul 2002
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 is that possible?

Cheers!
Heineken
Reply With Quote
  #16  
Old 07-16-2002, 09:20 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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 is that possible?

Cheers!
Heineken
you should look at this hack

be sure to look at the end of the thread where I posted some template changes.
Reply With Quote
  #17  
Old 08-05-2002, 01:16 PM
Reflex Reflex is offline
 
Join Date: Jul 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #18  
Old 11-01-2002, 07:38 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. will install it right away .
Reply With Quote
Reply

Thread Tools

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 11:57 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.05157 seconds
  • Memory Usage 2,278KB
  • Queries Executed 22 (?)
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
  • (4)bbcode_php
  • (2)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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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