vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Pm Gauge Enhanced (https://vborg.vbsupport.ru/showthread.php?t=34761)

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

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?

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

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

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 :D 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.

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 :).


All times are GMT. The time now is 08:08 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.01111 seconds
  • Memory Usage 1,756KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete