The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Countdown Timer in signature Details »» | |||||||||||||||||||||||||
Original Modification by Hellcat
Previous versions: vB3.5.x "User Countdown Timer". vB3.6.x "User Countdown Timer". I have taken the original modification and simply edited templates to get it working with vB3.7.x Note: I did not write the original modification so support of this release may be limited. This little AddOn gives your users the option to show a custom countdown timer at the bottom of their signature. Features:
Painless:
This can be done by going to: AdminCP - Laguages & Phrases -> Language Manager -> Rebuild all languages DONE That's it. No template edits, no nothing Usergroup permission: Go to -> AdminCP -> Usergroups -> Usergroup Manager -> User Countdown Permissions Members 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 "ON" the timer will automatically be shown on the bottom of your sig, set to "OFF" will hide/disable the time display. Please MARK AS INSTALLED & NOMINATE FOR MOTM Enjoy. Supporters / CoAuthors Show Your Support
|
Comments |
#102
|
|||
|
|||
Hi
I have this intalled, it is enabeld in admincp, enabled in usergroup and also ive gone into usercp and put the time and date on and enabled it but nothing appears in my sig... |
#103
|
|||
|
|||
Its ok, I put something in my sig and it works. Shame you actually have to do that to get it to work. Ill probably uninstall it and buy one that lets you include pictures, good mod though.
|
#104
|
|||
|
|||
I would like to have it when the counter reaches the end it then set's the function to "Off".
Any idea's on how to do this ? Modded the code slightly to add more fields which all work fine, now I would like an auto reset if possible. |
#105
|
|||
|
|||
Anyone got it working for 3.8?
|
#106
|
|||
|
|||
|
#107
|
||||
|
||||
Great Mod, Thank You For Sharing It. :up:
One Idea: It would be really nice also to be able to see the CountDown Information on the Member Profile on the Statistics Tab. And Perhaps to Allow the User to Choose where to Display the Countdown (On Postbit, On Profile, On Both Postbit and Profile). My Best Regards. |
#108
|
|||
|
|||
whats use of this mod ?
|
#109
|
||||
|
||||
This Mod Can be Used as a Reminder for an Event of the User.
I'd Like to Share the Inclusion of the CountDown on the User Profile (If Someone knows a Better Way to do This would be Nice to Share it. ): Step 1: Edit File plugins_usercountd.php and after that Upload it on the "includes" Folder, Overwriting the Existing File, (the one you Uploaded when Installed this Mod). Include at the end of the File, before the Code ?> the Following Code: Code:
// ********************************************************************** \\ if ( $THIS_HOOK == "member_profileblock_fetch_unwrapped" ) { $cdfield = "field" . $vbulletin->options["countdownfield"]; $query = $vbulletin->db->query_read( "SELECT $cdfield FROM " . TABLE_PREFIX . "userfield WHERE userid='" . $userinfo["userid"] . "';" ); $result = mysql_fetch_array( $query ); $cddata = unserialize( str_replace( """, '"', $result[$cdfield] ) ); if ( $cddata["enabled"] == "Yes" ) { require_once( "./includes/class_bbcode.php" ); require_once( "./includes/functions_newpost.php" ); $vbulletin->cdbbcode_parse =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $eta = mktime ( intval( $cddata["hour"] ), intval( $cddata["minute"] ), 0, intval( $cddata["month"] ), intval( $cddata["day"] ), intval( $cddata["year"] ) ); $tremain = $eta - time(); if ( $tremain > 0 ) { $t = $tremain; $remain["days"] = intval ( $t / 86400 ); $t = $t - ( $remain["days"] * 86400 ); $remain["hours"] = intval ( $t / 3600 ); $t = $t - ( $remain["hours"] * 3600 ); $remain["minutes"] = intval ( $t / 60 ); $counter = $remain["minutes"] . $vbphrase["countdown_minutes"]; if ( ( $remain["hours"] != 0 ) OR ( $remain["days"] != 0 ) ) { $counter = $remain["hours"] . $vbphrase["countdown_hours"] . " " . $counter; } if ( $remain["days"] != 0 ) { $counter = $remain["days"] . $vbphrase["countdown_days"] . " " . $counter; } } else { $counter = $vbulletin->cdbbcode_parse->parse(convert_url_to_bbcode($cddata["overmsg"]), 'nonforum'); } $event = $vbulletin->cdbbcode_parse->parse(convert_url_to_bbcode($cddata["event"]), 'nonforum'); } } Step 2: Create Plugin. On Admin Control Panel (ACP) -> Plugins and Products -> Add New Plugin Product: vBulletin Hook Location: member_profileblock_fetch_unwrapped Title: User CountDown - Block Statistics Execution Order: 5 Plugin is Active: Yes Plugin PHP Code: Code:
$THIS_HOOK = "member_profileblock_fetch_unwrapped"; require( "./includes/plugins_usercountd.php" ); Step 3: Edit Template "memberinfo_block_statistics" Find at the End of the Template $template_hook[profile_stats_last] Before that Add: Code:
<!-- Start User Countdown memberinfo_block_statistics --> <if condition="$counter"> <fieldset class="fieldset"> <legend>$vbphrase[countdown_title]</legend> <strong>$vbphrase[countdown_counting_down_to]:</strong> $event <br /> <em>$counter</em> </fieldset> </if> <!-- End User Countdown memberinfo_block_statistics --> My Best Regards. |
#110
|
|||
|
|||
Worked perfectly adding it to profiles, thanks!
|
#111
|
|||
|
|||
Thanks inciarco, I may update this to include that feature.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|