Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

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

Category: End-User Options - Version: 3.6.0 Beta 1 Rating:
Released: 06-08-2006 Last Update: 06-08-2006 Installs: 175
Uses Plugins Template Edits
Additional Files  
No support by the author.

This is a port of my vB3.5.x "User Countdown Timer".
I had to change some parts of the install code to make it work with vB3.6, and here we go:

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #112  
Old 05-28-2007, 01:13 AM
mtalks's Avatar
mtalks mtalks is offline
 
Join Date: May 2007
Location: US
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok after facing some of the same problems most users experienced we took everyones suggestions an added something to get it to look and work a little better.

I made a couple of changes to the plugins_usercountd.php

INSTALLED AND TESTED ON VB 3.67PL1 Corrected php file is attached at the bottom

The fields are the width of the phrase and you cant see the day, month or year unless you change the text to something other than day, year or month.


Find:
Code:
$profilefield["title"] = $vbphrase["day"];
Replace with:
Code:
$profilefield["title"] = $vbphrase["Select a Day"];
Find:
Code:
$profilefield["title"] = $vbphrase["month"];
Replace with:
Code:
$profilefield["title"] = $vbphrase["Select a Month"];
Find:
Code:
$profilefield["title"] = $vbphrase["year"];
Replace with:
Code:
$profilefield["title"] = $vbphrase["Select a Year"];
Find:
Code:
for ( $i = 2006; $i <= 2010; $i++ )
Replace with:
Code:
for ( $i = 2007; $i <= 2010; $i++ )
Save the file and upload the files as in the original instructions and then import the modified plugins_usercountd.php file. If you already have this installed then select to overwrite.

Goto admincp/language phrases/phrase manager/ add phrase

type = global
product = user countdown
varname = usercountdown
text = usercountdown
add phrase


In order for this mod to show you MUST go to the Manage User Groups and edit each group you wish to have access to this feature. It is located at the very bottom of the User Group Permissions. And each user must go to their UserCP and enable the countdown timer and have a signature enabled (it can be simple text but I suggest you add a couple <BR><BR> to give a few spaces between you signature and the countdown timer)

Enclosed are 3 screenshots of what it should look like in the UserCP, Group Permissions and the forum signature. I also included the fixed php file. <-- did not know if it was ok to do that and if not admin will remove I am sure.
Reply With Quote
  #113  
Old 05-28-2007, 01:22 AM
Aimee1969 Aimee1969 is offline
 
Join Date: Apr 2007
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks mtalks1
Reply With Quote
  #114  
Old 05-29-2007, 10:44 AM
cheekymonkey2 cheekymonkey2 is offline
 
Join Date: Jan 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, thanks. Is there a way to give a user a signature by default?

That way, when they set the countdown up it appears immediately.
Reply With Quote
  #115  
Old 06-02-2007, 03:00 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mtalks1 - I followed your directions, i think, but still have the problem with setting the dates. Can't see anything in the dropdowns besides the slider bar. see pic.

Would also like an automatic space added before the "My Countdown" signature starts. I don't have html enabled in sigs, so users can't put <br> spaces in their sig.
Reply With Quote
  #116  
Old 06-05-2007, 11:02 AM
SLY LS1's Avatar
SLY LS1 SLY LS1 is offline
 
Join Date: May 2007
Location: Melbourne Australia
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

edit
Reply With Quote
  #117  
Old 06-05-2007, 11:20 AM
SLY LS1's Avatar
SLY LS1 SLY LS1 is offline
 
Join Date: May 2007
Location: Melbourne Australia
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fireproof View Post
mtalks1 - I followed your directions, i think, but still have the problem with setting the dates. Can't see anything in the dropdowns besides the slider bar. see pic.

Would also like an automatic space added before the "My Countdown" signature starts. I don't have html enabled in sigs, so users can't put <br> spaces in their sig.
Yes im getting the same thing..

the post did quite make sense to me, it asked to edit the plugins_usercountd.php file and upload it then down load another plugins_usercountd.php file and upload that ?

shouldnt your attached file be the product-hc_usercountdown_vb36b1.xml ?
Reply With Quote
  #118  
Old 06-05-2007, 11:59 AM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe he applied the edits to the php file for us (even though he laid them out in his post) and attached that so we wouldn't have to do that. however, there appears to be a disconnect between it and the XML now or something. Something like the phrases aren't right anymore or something. I dunno - I'm a complete php noob.

But i would like to get this to work. It would be so useful for my forums, counting down to the end of a dieting cycle or something.
Reply With Quote
  #119  
Old 06-05-2007, 12:00 PM
SLY LS1's Avatar
SLY LS1 SLY LS1 is offline
 
Join Date: May 2007
Location: Melbourne Australia
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I couldnt work out mtalks1 edit so I changed the edits back and went to the AdminCP - Languages & Phrases - Language Manager - Edit / Translate English (US) Phrases

and found the ones to change

day - change to - Select a day

month - change to - Select a month

year - change to - Select a year

that basicly did the same thing and fixed it perfect

cheers
Reply With Quote
  #120  
Old 06-05-2007, 12:13 PM
SLY LS1's Avatar
SLY LS1 SLY LS1 is offline
 
Join Date: May 2007
Location: Melbourne Australia
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To put the gap between the signature and the countdown go to

Admin CP - Styles & Templates - Search in Templates

Search for - usercountdown_display

Change from;

Code:
<fieldset class="fieldset">
<legend>$vbphrase[countdown_title]</legend>

<strong>$vbphrase[countdown_counting_down_to]:</strong> $event <br />
<em>$counter</em>

</fieldset>
To;

Code:
<br><br> 
<fieldset class="fieldset">
<legend>$vbphrase[countdown_title]</legend>

<strong>$vbphrase[countdown_counting_down_to]:</strong> $event <br />
<em>$counter</em>

</fieldset>
then click save
Reply With Quote
  #121  
Old 06-05-2007, 02:21 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome - you can ignore my PM. I sent it before seeing your post here. Let me try this tonight and see if that fixes it for me. I bet it does.
Reply With Quote
Reply


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 10:54 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.12001 seconds
  • Memory Usage 2,317KB
  • 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
  • (10)bbcode_code
  • (1)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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