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)
-   -   Show Thread Enhancements - Show Ban Time in Postbit (https://vborg.vbsupport.ru/showthread.php?t=158800)

FullyTested 09-25-2007 10:00 PM

Show Ban Time in Postbit
 
This hack is in response to a request by Breathex in thread https://vborg.vbsupport.ru/showthread.php?t=155474

What this hack will do is display the time remaining on a banned user right underneath the user title in the postbit.
This helps your forum members keep track of what's going on with their fellow members.
This feature may be set to:
  • Public (both guests and registered members will see the time remaining info)
  • Registered members only
  • Admins, supermods, and mods only
To set these options, go to the vBulletin options section and select 'Show Ban Time Options' from the drop down menu.


To Install:

1). Import the product via the Admin CP
2). Modify your 'postbit' and/or 'postbit_legacy' templates as per instructions in the readme text file
3). Done!


Revisions:

version 1.1
Added the ability to limit this feature to admins and moderators.
If not limited, then you may also select whether you wish to allow unregistered users (guests) to view this feature.

version 1.2
Now ensures code is only included when called from within 'showthread.php' or 'showpost.php'.
Do not forget to select 'Allow Overwrite' when re-importing this product.

version 1.3
Fixed error when poster is an unregistered user


Cheers,
FullyTested

optrex 09-26-2007 10:00 AM

thanks

lasto 09-26-2007 03:19 PM

i grabbed from other post but clicked install - cheers m8

FreshFroot 09-26-2007 06:28 PM

interesting stuff.. not sure if it's been included, but maybe a way for ONLY staff to view the time..

bigcurt 09-26-2007 06:30 PM

That would be nice as well :). Either way

[high]* bigcurt clicks install[/high]

Breathex 09-26-2007 07:38 PM

Great work by FullyTested, marked as installed :up:

FullyTested 09-26-2007 08:34 PM

Quote:

not sure if it's been included, but maybe a way for ONLY staff to view the time
Done!

Hornstar 09-26-2007 10:47 PM

Thanks, im sure this will stop many questions of when a member will be unabanned. thanks.

bigcurt 09-27-2007 02:09 AM

If a user is banned permanently. Will it just say Ban Time: Permanent or something of that nature?

FullyTested 09-27-2007 03:30 AM

Quote:

Originally Posted by bigcurt (Post 1347900)
If a user is banned permanently. Will it just say Ban Time: Permanent or something of that nature?

Currently it says "Ban is Permanent!", but since its a phrase you can easily change it to whatever you want.


All times are GMT. The time now is 03:04 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.01065 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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