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 (https://vborg.vbsupport.ru/showthread.php?t=34248)

StarBuG 01-21-2002 10:00 AM

I noticed that! hehe

But that doesn´t solve the problem at all!
Cause the limit is for all Boxes you have and not only for inbox!!

Maybe someone can modify the hack???

Greetings

StarBuG

Bald Bouncer 01-21-2002 03:43 PM

this will count all your folders, but I had a 35 limit and had 38 messages so Im not sure if this is correct...maybe admins arent limited, i havent had a chance to check

PHP Code:

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


Arathorn 01-21-2002 04:07 PM

Admins aren't limited. Also, even a normal member can go over by sending messages. e.g., if total messages in all folders = limit, the user cannot receive, but can still send messages. when he sends it, a copy is kept in sent items, adding to the total.

Anyways, off to try the code. Thanks! :)

StarBuG 01-21-2002 04:32 PM

That´s it!!

Looks much nicer now! hehe

Thx for your support!

Greetings

StarBuG

Arathorn 01-21-2002 04:33 PM

Using a normal user account, all works well.

But when using my admin account, the indicator works on the index page but fails to work in the PM page. There, the percentage is always 30% more than the actual percentage. Even after clearing all folders, it still shows that I've used 30% of my inbox.

Bald Bouncer 01-21-2002 04:38 PM

Quote:

Originally posted by Arathorn
Using a normal user account, all works well.

But when using my admin account, the indicator works on the index page but fails to work in the PM page. There, the percentage is always 30% more than the actual percentage. Even after clearing all folders, it still shows that I've used 30% of my inbox.

yeah thats what Ive noticed, I havent had the chance to look into it, but I think copies are saved in a sent items folder and it reads from that :rolleyes:

Arathorn 01-21-2002 06:00 PM

Can't be, cause I cleaned out the sent items. Plus, the extra 30% only occurs with my admin account AND in the PM screen. Kinda odd... I'll go try it on another server tomorrow.

Lionel 01-21-2002 06:11 PM

Quote:

Originally posted by Arathorn
Admins aren't limited. Also, even a normal member can go over by sending messages. e.g., if total messages in all folders = limit, the user cannot receive, but can still send messages. when he sends it, a copy is kept in sent items, adding to the total.

Anyways, off to try the code. Thanks! :)

then that must be why it is inbox.

if he can send and that will add to the folders, that will defeate the purpose of this hack by adding all folders to it. the count will always be off

Lionel 01-21-2002 06:14 PM

is to add a line, once 100% is reached, then user is warned that he can send but cannot receive until he cleans mailbox.

Arathorn 01-22-2002 02:29 AM

Quote:

Originally posted by Lionel


then that must be why it is inbox.

if he can send and that will add to the folders, that will defeate the purpose of this hack by adding all folders to it. the count will always be off

Are you saying that it should only count the inbox? To me, this hack reminds a user that he has reached his PM limit, and that others can't send to him. Alot of users happily PM away, then get curious when one day no one replies them (cause they can't). Since all a user's PMs in all folders count towards the limit, this hack should also take all folders into account.


All times are GMT. The time now is 01:45 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.01095 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete