Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Percentage of PM Quota Used Details »»
Percentage of PM Quota Used
Version: 1.00, by Gray Matter Gray Matter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.6.4 Rating:
Released: 01-14-2007 Last Update: 01-14-2007 Installs: 24
Uses Plugins Template Edits
 
No support by the author.

This is probably the simplest and most useless modification ever created, but here it is. All it does is calculate the percentage of a user's private messaging quota he/she has used.

To use, just upload the plugin XML file and add

Code:
$bbuserinfo[pmpercent]%
anywhere in the "pm_messagelist" template.

Show Your Support

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

Comments
  #2  
Old 01-15-2007, 01:23 AM
Qwest Qwest is offline
 
Join Date: Jun 2004
Location: United States
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshots??
Reply With Quote
  #3  
Old 01-15-2007, 02:03 AM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added one.

(of course the value can be placed anywhere in the template, that's just a quick example I drew up.)
Reply With Quote
  #4  
Old 01-15-2007, 11:58 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thought of an update for you ^^

in the admincp, have an option for us to set this. show remaining % or show used %

This is just a thought I had

however beware that vbulletin already has this by default for when you get to 90% used capacity so not sure if you will have 2 %'s showing which would look weird.

Thanks.
Reply With Quote
  #5  
Old 01-15-2007, 01:21 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the suggestion, it's a good idea and I'll try to include that very soon.

Hmm.. I forgot about the default vBulletin, but I'm sure that I can find a way to combat that problem.
Reply With Quote
  #6  
Old 01-15-2007, 01:53 PM
Saulie Saulie is offline
 
Join Date: Aug 2006
Location: London
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I like simple addons like this, will come in very handy.

Also had another thaught for other people that are using this, they could also put it into their navbar, that would be really useful, when you have just logged in to see how much space you have left.
Reply With Quote
  #7  
Old 11-01-2007, 01:10 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any suggestions on the placement for:
$bbuserinfo[pmpercent]%
???
Reply With Quote
  #8  
Old 11-02-2007, 11:22 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want an effect like the one in the screenshot, then open pm_messagelist and find this:

Code:
<td><phrase 1="$foldername" 2="$totalmessages" 3="$bbuserinfo[pmtotal]" 4="$permissions[pmquota]">$vbphrase[x_contains_y_z_messages_of_xx]</phrase> (<a href="private.php?do=emptyfolder&amp;folderid=$folderid"><em>$vbphrase[empty_folder]</em></a>)</td>
Then, replace that with:

Code:
<td><phrase 1="$foldername" 2="$totalmessages" 3="$bbuserinfo[pmtotal]" 4="$permissions[pmquota]">$vbphrase[x_contains_y_z_messages_of_xx]</phrase> [<strong>$bbuserinfo[pmpercent]%</strong>] (<a href="private.php?do=emptyfolder&amp;folderid=$folderid"><em>$vbphrase[empty_folder]</em></a>)</td>
Reply With Quote
  #9  
Old 05-15-2008, 04:57 PM
SirFlash's Avatar
SirFlash SirFlash is offline
 
Join Date: Feb 2007
Location: Canada
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In case anyone else tries using this on vb 3.7.0 Gold, it didn't work for me.
Reply With Quote
  #10  
Old 05-16-2008, 12:07 AM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It will be ported/updated shortly.
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 07:14 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.04741 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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