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)
-   -   Countdown Timer for your users (https://vborg.vbsupport.ru/showthread.php?t=107596)

Hellcat 02-09-2006 10:00 PM

Countdown Timer for your users
 
(inspired by this thread: https://vborg.vbsupport.ru/showthread.php?t=107226)

This little AddOn gives your users the option to show a custom countdown timer at the bottom of their signature.

Features:
  • Fully configurable via UserCP (see screenshot)
  • BB-Code can be used for eventname and overmessage :)
  • fully phrased/templated, nothing hardcoded and so fully customizable
  • leading days or hours with a value of "0" are not shown
    (so it shows "42minutes" rather then "0days 0hours 42minutes")

Installation:
Painless:
  • Upload "plugins_usercountd.php" to ".../forum/includes"
  • Import the product .XML

DONE :)
That's it.
No template edits, no nothing :D


Usage:
Go into your UserCP -> Edit Options
On the very bottom you will find the options for the Countdown Timer.
Set it to whatever you like, if "Enable" is set to "Yes" the timer will automatically be shown on the bottom of your sig, set to "No" will hide/disable the time display :)



Have fun :)


Update 1.10
[high]IF YOU UPDGRADE FROM A PREVIOUS VERSION, BE SURE TO UNISTALL THE CURRENTLY INSTALLED ONE BEFORE INSTALLING THE UPGRADE![/high]
(unfortunately all events will be lost)
  • [FIX] Phrased the last three things that were not (Yes/No of the enable radio and main description)
  • [NEW] Added Usergroup Permissions for the countdown! :)
    In the usergroupmanager it now has an area "User Countdown Permissions" where the admin can allow/enable or disallow/disable the countdown timer for each usergroup.

[high]If the usergroup permissions do not work, or even don't show up at all, you might need to rebuild the bitfield using this URL:[/high]
http://yourdomain.tld/pathtoforum/ad...buildbitfields

docvader 02-09-2006 10:39 PM

Wow. First post. I always get tingles when this happens.

Will install immediately. Nice idea.

EDIT: Installed. Awesome. Flawless.

I can use this for things, such as, well, counting down to my next date. Glad you put the "years" option in there.

-=Sniper=- 02-09-2006 10:46 PM

wow, excellent work dude!

Lineman28645 02-09-2006 10:58 PM

Excellent hack! :)

XtremeOffroad 02-09-2006 11:04 PM

Very cool, Now to figure out why sigs and timer arent showing.
Nothing to do with hack BTW.
Clicks Install.

Lineman28645 02-09-2006 11:07 PM

Question. Is there anyway we can make it so only admins or specified groups can use this feature?

Hellcat 02-09-2006 11:17 PM

Quote:

Originally Posted by Lineman28645
Question. Is there anyway we can make it so only admins or specified groups can use this feature?

Hmm, this can be added, yes.

I am currently hunting another flaw I just encountered.
On my live board it doesn't save the settings.... No idea why (yet), on my testinstall it does....

docvader 02-09-2006 11:26 PM

Working fine on mine, with Netscape and IE; it saved the settings, and is counting down appropriately.

Hellcat 02-09-2006 11:29 PM

Yeah, I have 1:1 "copy" of my live board on my laptop.... working fine there too, just not on the live thing....

XtremeOffroad 02-09-2006 11:38 PM

Working Great, Forgot about a hack installed to only allow 1 sig per post.
Oops my bad.
Now to decide what to countdown to, Valentines day or my surgery?
hmmmm both are on the same day. :disappointed: :disappointed:
I think I'll do VD :nervous: lol


All times are GMT. The time now is 06:19 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.01198 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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