vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Private Messages Enhancements - Percentage of PM Quota Used (https://vborg.vbsupport.ru/showthread.php?t=136533)

Gray Matter 01-14-2007 10:00 PM

Percentage of PM Quota Used
 
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.

Qwest 01-15-2007 01:23 AM

Screenshots??

Gray Matter 01-15-2007 02:03 AM

Added one. :)

(of course the value can be placed anywhere in the template, that's just a quick example I drew up.)

Hornstar 01-15-2007 11:58 AM

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.

Gray Matter 01-15-2007 01:21 PM

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

Saulie 01-15-2007 01:53 PM

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.

yoyoyoyo 11-01-2007 01:10 AM

any suggestions on the placement for:
$bbuserinfo[pmpercent]%
???

Gray Matter 11-02-2007 11:22 PM

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>

SirFlash 05-15-2008 04:57 PM

In case anyone else tries using this on vb 3.7.0 Gold, it didn't work for me.

Gray Matter 05-16-2008 12:07 AM

It will be ported/updated shortly. ;)


All times are GMT. The time now is 03:42 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.00986 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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