Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Countdown Timer for your users Details »»
Countdown Timer for your users
Version: 1.12, by Hellcat Hellcat is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 02-09-2006 Last Update: 06-06-2006 Installs: 142
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

(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


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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
kraghen

Comments
  #82  
Old 02-26-2006, 12:40 PM
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Location: In my own virtual world
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hellcat
Usually a uninstall via the Product Manager works fine.
Onyl sometimes, esp. when re-installed with "Allow Overwrite" things could get a bit messy - therefor the cleanup script.

Also ATM countdowns only show when a sig is present and displayed - I'm going to tweak that as well.
So to unistall, remove via product manager, remove Includes/plugins_usercountd.php and includes/xml/bitfield_hc_countdown.xml files and then reinstall everything.

I didn't have a signature showing before the install and only added one after I installed then read the full thread
Reply With Quote
  #83  
Old 02-26-2006, 02:13 PM
cbr929rrerion cbr929rrerion is offline
 
Join Date: Oct 2005
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cbr929rrerion
well i have it installed, its showing on edit options, i put in the info and it does not save anything.

so nothing in the sig line...

any ideas?

Help.. help
Reply With Quote
  #84  
Old 02-26-2006, 05:15 PM
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Location: In my own virtual world
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

phew, got it working, deleted the product, removed files then added text to my signature, made a test post, saw sig visible, upped files again, reimported product and hey presto all working fine.
Reply With Quote
  #85  
Old 02-27-2006, 09:13 PM
Christie189 Christie189 is offline
 
Join Date: Feb 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please help me. I followed the instructions 100%. Now, the product is not showing up in the Installed Products list. And I have 3 of the slots in my profile. Yet, I cannot seem how to UNINSTALL this completly from my board? I got some SQL error a while ago. HELP!
Reply With Quote
  #86  
Old 02-28-2006, 02:23 AM
Gabriela.B Gabriela.B is offline
 
Join Date: Feb 2006
Location: Oklahoma
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, I got everything installed; except something is not correct when I went to User Control Panel/Options

This is what it shows

Im not sure what it is
Reply With Quote
  #87  
Old 02-28-2006, 01:43 PM
Gabriela.B Gabriela.B is offline
 
Join Date: Feb 2006
Location: Oklahoma
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That thing really screwed my SQL Database, you might need to fix it! :ermm:

How do I delete it completely? Or does that mean I have to reinstall Forum?
Reply With Quote
  #88  
Old 02-28-2006, 02:17 PM
Gabriela.B Gabriela.B is offline
 
Join Date: Feb 2006
Location: Oklahoma
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I found how to fix it and SQL Database works better now, To the people who have SQL Database, this might help you

Go to Admin
User Profile Fields - User Profile Field Manager

Delete the Countdown, it will tell you that it has error but keep deleting all until you got them deleted, then your SQL Database will work as normal.

It worked for me. Hope this helps.
Reply With Quote
  #89  
Old 02-28-2006, 05:36 PM
Calisse's Avatar
Calisse Calisse is offline
 
Join Date: Sep 2005
Location: UK
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Chief
awesome hack
Wonderful. Mention in readme that you need to edit usergroups because at first i was like.. hmm that didnt work
Reply With Quote
  #90  
Old 02-28-2006, 10:37 PM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@cbr929rrerion:
Try this (worked on my board):
Open the plugin "Usercountdown - Save Settings" and replace the complete contents with this:
Code:
  $vbulletin->input->clean_array_gpc('p', array( "countdownuserfield" => TYPE_STR,
                                                 "cdsettings"         => TYPE_ARRAY ));

  $cdsettings     = $vbulletin->GPC["cdsettings"];
  $cdprofilefield = $vbulletin->GPC["countdownuserfield"];

  $cddata["enabled"] = $cdsettings[$cdprofilefield . "_enable"];
  $cddata["day"]     = $cdsettings[$cdprofilefield . "_day"];
  $cddata["month"]   = $cdsettings[$cdprofilefield . "_month"];
  $cddata["year"]    = $cdsettings[$cdprofilefield . "_year"];
  $cddata["hour"]    = $cdsettings[$cdprofilefield . "_hour"];
  $cddata["minute"]  = $cdsettings[$cdprofilefield . "_minute"];
  $cddata["event"]   = $cdsettings[$cdprofilefield . "_event"];
  $cddata["overmsg"] = $cdsettings[$cdprofilefield . "_overmsg"];

  $vbuserfields[$cdprofilefield] = serialize( $cddata );
  $vbuserfields[$cdprofilefield . "_set"] = "1";
  $vbuserfields[$cdprofilefield . "_opt"] = "";

  $userdata->set_userfields( $vbuserfields );


The cleanup script is almost done....
Reply With Quote
  #91  
Old 03-01-2006, 12:02 AM
cbr929rrerion cbr929rrerion is offline
 
Join Date: Oct 2005
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hellcat
@cbr929rrerion:
Try this (worked on my board):
Open the plugin "Usercountdown - Save Settings" and replace the complete contents with this:
Code:
  $vbulletin->input->clean_array_gpc('p', array( "countdownuserfield" => TYPE_STR,
                                                 "cdsettings"         => TYPE_ARRAY ));

  $cdsettings     = $vbulletin->GPC["cdsettings"];
  $cdprofilefield = $vbulletin->GPC["countdownuserfield"];

  $cddata["enabled"] = $cdsettings[$cdprofilefield . "_enable"];
  $cddata["day"]     = $cdsettings[$cdprofilefield . "_day"];
  $cddata["month"]   = $cdsettings[$cdprofilefield . "_month"];
  $cddata["year"]    = $cdsettings[$cdprofilefield . "_year"];
  $cddata["hour"]    = $cdsettings[$cdprofilefield . "_hour"];
  $cddata["minute"]  = $cdsettings[$cdprofilefield . "_minute"];
  $cddata["event"]   = $cdsettings[$cdprofilefield . "_event"];
  $cddata["overmsg"] = $cdsettings[$cdprofilefield . "_overmsg"];

  $vbuserfields[$cdprofilefield] = serialize( $cddata );
  $vbuserfields[$cdprofilefield . "_set"] = "1";
  $vbuserfields[$cdprofilefield . "_opt"] = "";

  $userdata->set_userfields( $vbuserfields );


The cleanup script is almost done....

Thanks Hellcat that fixed it.. working perfect now..

Just one question, I want to change the way its displayed in the sig, like add breaks and maybe change font, where do I go to edit that part..

Thanks...
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:03 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12767 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete