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

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
  #132  
Old 08-14-2007, 10:20 AM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The following is a template and file change to show signature only, counter only, or both signature and counter depending on which are turned on in the UserCP by the member.

In the postbit template (not tested in postbit_legacy)

FIND
Code:
f condition="$post['signature']">
		<!-- sig -->
			<div>
				__________________<br />
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
REPLACE WITH
Code:
<!-- sig and countdown mod -->
		<if condition="$post['signature'] AND $counterhtml">
			<div>
				__________________<br />
				$post[signature]
				<br /><br />
				$counterhtml
			</div>
		<else />
			<if condition="$post['signature'] OR $counterhtml">
			<div>
				__________________<br />
				$post[signature]
				$counterhtml
			</div>
			</if>
		</if>
<!-- /sig and countdown mod -->
In the file included with this mod plugins_usercountd.php

FIND AND DELETE
Code:
  if ( strlen($post["signature"]) > 0 )
  {
FIND
Code:
	 
	  eval('$counterhtml = "' . fetch_template('usercountdown_display') . '";');
	  
	  $sig = $post['signature'] . $counterhtml;
      $post['signature'] = $sig;
	}
  }
}
REPLACE WITH
Code:
	  eval('$counterhtml = "' . fetch_template('usercountdown_display')  . '";');
  }
}
Hope this helps someone else.
Took me the good part of an hour to figure out how to do that
I just installed with no problems on 3.6.8
Reply With Quote
  #133  
Old 08-16-2007, 06:27 PM
ravyn's Avatar
ravyn ravyn is offline
 
Join Date: Sep 2006
Location: Imaginary Space
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I uploaded the corrected php file, reinstalled the xml file, saved the phrases, but I do not see anything in the usergroup permissions that will allow/disallow the countdown timer and it does not show up anywhere in the usercp. I am running on vb 3.6.4. any suggestions?
Reply With Quote
  #134  
Old 08-30-2007, 10:20 AM
paidtoshop paidtoshop is offline
 
Join Date: Aug 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anybody know how i can get the drop down options to expand more so i can see the selections, I have installed ok on 3.6.7. but the drop down options are not easy to see

Thanks in advance
Reply With Quote
  #135  
Old 12-02-2007, 12:20 PM
Ophelia Ophelia is offline
 
Join Date: Feb 2006
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed twice and both times, code was missing from the usergroup area (no text showing what you were to change, but said YES/NO) and no text in the descriptions in USERCP. Uninstalling.
Reply With Quote
  #136  
Old 12-02-2007, 07:20 PM
Catziggy Catziggy is offline
 
Join Date: Nov 2007
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried it didnt work nice idea but unsupported and released with too many bugs
Reply With Quote
  #137  
Old 01-10-2008, 04:04 AM
FCS-Webmaster FCS-Webmaster is offline
 
Join Date: Aug 2007
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had some trouble first too.
So I uninstalled and reinstalled it.
Refresged a lot and and used patience around 30 minutes.
I have to search the phrases - you find it under Phrases -> Global Settings - and rebuild it.

Works like a charm
Thnx for the great mod
Reply With Quote
  #138  
Old 01-12-2008, 05:56 AM
Mum Mum is offline
 
Join Date: Jun 2006
Location: New Zealand
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone fixed the problem i reported? People are in different time zones, and this seems to work off the system timezone, which of course isn't correct. Has this been sorted out?
Reply With Quote
  #139  
Old 01-15-2008, 04:54 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any Word on this?
Reply With Quote
  #140  
Old 01-15-2008, 07:19 AM
plastourgos plastourgos is offline
 
Join Date: Sep 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

didn't work on 3.6.8
Reply With Quote
  #141  
Old 01-15-2008, 10:54 AM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FCS-Webmaster View Post
I had some trouble first too.
So I uninstalled and reinstalled it.
Refresged a lot and and used patience around 30 minutes.
I have to search the phrases - you find it under Phrases -> Global Settings - and rebuild it.

Works like a charm
Thnx for the great mod
Doesn't work for me, no text shows so what do you put into the phrases for it to all work? Thanks.

I use 3.6.8
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 10:32 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.06796 seconds
  • Memory Usage 2,304KB
  • 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
  • (5)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