vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PM Space Warning (https://vborg.vbsupport.ru/showthread.php?t=110858)

sinaluna 03-19-2006 10:00 PM

PM Space Warning
 
Product Name:
PM Space Warning

Product Description:
This is a very simple product that lets you set a percentage threshhold that, when reached, changes the PM display on the navbar. When the box is full the Total PM display changes to "FULL" and displayed in the warning style.

Contents:
This package includes:
1 Plugin:
"PM Navbar color changer": Checks for a full PMs and for PM totals over the threshold and if reached, applies the template style.

1 Template:
pm_navbar_warning: Template that defines the style (CSS <span> in my example) that is applied to the PM total display in the nav box. The example template turns the text to "red" and "bold".

1 Option/Setting:
pmwarninglimit: (group "PM Warning"): This is the percentage threshhold setting that determines when the warning template will be applied. This is a percent number WITHOUT the "%" symbol. For instance, to start warning the users at 75% of their PM limit, set this setting to "75".

Installation Instructions:

Step 1: Import the product .xml file (attached here)

Step 2: Change the "pmwarninglimit" option to the threshhold where you want the users to start being warned. The default is "75" which is 75% of their total PMs allowed.

Step 3: Enjoy.

Version History:
version 0.9 - Initial release]

sinaluna 03-20-2006 06:28 AM

This is a super simple hack to hilight the users PM totals in the navbar when it reaches a configurable limit. My example sets the total PM text to "red" and "bold" with CSS but you could do just about anything. I included some samples of the display both at the warning threshold and when the pm maximum is reached.

I plan on fleshing this hack out some, but was asked to go ahead and release it now.

All comments and suggestions are welcome.

hiiped 03-20-2006 07:39 AM

very nice

hotwheels 03-20-2006 11:47 AM

I will test it too...........great idea.

bada_bing 03-20-2006 02:06 PM

Will this work for vb 3.5.3 ?

Oddjob 03-20-2006 02:29 PM

Nice work.

Id like to see this work with vbpager as well.

projectego 03-20-2006 02:56 PM

Quote:

Originally Posted by hiiped
very nice

[high]* projectego agrees :)[/high]

Snake 03-21-2006 10:35 AM

Nice work! ;)

Vitz 03-21-2006 10:42 AM

Very nice. So simple and so usefull. Great idea:)

ZombieAndy 03-21-2006 02:42 PM

nice..

i like it although ive modded it a lil bit so that it links to a custom error message telling the user to delete some PM's :p


All times are GMT. The time now is 11:16 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.01405 seconds
  • Memory Usage 1,728KB
  • 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_quote_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