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
  #42  
Old 01-21-2002, 10:00 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #43  
Old 01-21-2002, 03:43 PM
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Location: UK
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 
Reply With Quote
  #44  
Old 01-21-2002, 04:07 PM
Arathorn Arathorn is offline
 
Join Date: Nov 2001
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #45  
Old 01-21-2002, 04:32 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That´s it!!

Looks much nicer now! hehe

Thx for your support!

Greetings

StarBuG
Reply With Quote
  #46  
Old 01-21-2002, 04:33 PM
Arathorn Arathorn is offline
 
Join Date: Nov 2001
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #47  
Old 01-21-2002, 04:38 PM
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Location: UK
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #48  
Old 01-21-2002, 06:00 PM
Arathorn Arathorn is offline
 
Join Date: Nov 2001
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #49  
Old 01-21-2002, 06:11 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #50  
Old 01-21-2002, 06:14 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is to add a line, once 100% is reached, then user is warned that he can send but cannot receive until he cleans mailbox.
Reply With Quote
  #51  
Old 01-22-2002, 02:29 AM
Arathorn Arathorn is offline
 
Join Date: Nov 2001
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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:59 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.04516 seconds
  • Memory Usage 2,311KB
  • 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
  • (1)bbcode_php
  • (3)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
  • (4)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