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

sinaluna 03-21-2006 11:33 PM

Quote:

Originally Posted by YodaTheCoda
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

Hehe, very cool! I kept this one pretty simple to work for everyone, but it should be pretty simple to change to do custom stuff. If there are any suggestions of options I can add to the message, let me know here.

Quote:

Id like to see this work with vbpager as well.
Id rather not get into modding a mod. But the vBpager guys are free to snag this mod and add it to their deal if they want.

Quote:

Will this work for vb 3.5.3 ?
It should, but I have not installed it on anything but 3.5.4. I think it will work with 3.5.x, since the hook I used is the same as far as I can tell. Please let me know how a 3.5.3 install works, Ill spread the word (or fix it if there is a problem)

TwinsForMe 03-22-2006 09:39 PM

Quote:

Originally Posted by YodaTheCoda
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

How would this be done?

arcadian_girl 05-08-2006 03:35 PM

yes, could someone tell us how to do that please? or fix this mod so that it does that? :)

Chicago_VLNU_4s 08-06-2006 09:33 PM

nice, clean install


All times are GMT. The time now is 07:08 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.01033 seconds
  • Memory Usage 1,742KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete