vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Countdown Timer in signature (https://vborg.vbsupport.ru/showthread.php?t=182480)

Sweeks 10-03-2008 09:04 PM

Uninstalled
________
Shemale ++++ing

BucWiLd 10-09-2008 04:31 AM

i installed everything is there but in my sig all i see is the event and the end message but no countdown.. what am i doing wrong

BucWiLd 10-09-2008 04:45 AM

i noticed when i entered the year 2009 it worked but nothing for 2008 works. any ideas. LUCKILY 2008 IS ALMOST OVER..LOL

laurens800 10-14-2008 02:39 PM

strange kidda bugged for me show no text in admincp and in edit options none to

Rob Hephner 10-16-2008 05:44 PM

Any way to make this a count up timer?

SA_TGAZ 11-06-2008 01:54 AM

This one just mysteriously stopped working for us as well; seemed to be working right up until recently. Hopefully this can get fixed soon :D

ArnyVee 11-06-2008 02:35 AM

This one is still working on my 3.7.1, but I haven't tested on my 3.7.3 forum. SA_TGAZ, which version of vB are you running?

kpierce 11-11-2008 02:23 AM

This works fine for me and my "test" account and some others but one member can't get it to work. Why would that be? She's a supermod and it works fine for another supermod so it's not a problem with the whole usergroup. I've messed around with it and am stumped.

cindy helmond 11-11-2008 01:04 PM

cool od but one problem i set the permissions and only i (moderator ) can see the sig other users cant see there own sig :confused:

clr_75 11-12-2008 04:44 PM

Quote:

Originally Posted by ArnyVee (Post 1660262)
This one is still working on my 3.7.1, but I haven't tested on my 3.7.3 forum. SA_TGAZ, which version of vB are you running?

We are running 3.7.3... getting ready to upgrade though to 3.7.4

1320Nation 11-21-2008 02:28 PM

Working perfect on my 3.7.3 board.

filt 11-22-2008 08:55 PM

Didnt work at all on my 3.7.4.

Culdnt find it in Usergroup Manager, when going to editprofil everything was blank...

juanpablo 11-24-2008 09:51 PM

How to add bb code in any message?

directprint 11-29-2008 08:40 PM

Is anyone aware of something that can be used to count up, I am looking for a timer that can be started by a person in a post.

ArnyVee 11-30-2008 01:26 AM

This might help you for the 'countup' scripting....

Dynamic Drive Countup Script

mikeo9043 12-22-2008 05:48 AM

Tagged, might use this sometime

DanTHEGREAT 12-22-2008 11:05 PM

doesn't work with rc2..........

zombietom 12-23-2008 11:16 PM

I installed but it did not add in the usergroup --so after fooling with it for about 1 hour i gave up and uninstalled. :(

Cigarcritic 12-25-2008 09:18 PM

Great ad-on. :up:

Adding the text below to the readme would have saved a lot of trouble shooting.
"You must rebuild Languages and have Text in your sig to see the counter."

zombietom 12-26-2008 09:47 AM

I did rebuild the languages but i never got a Usergroup in the ADmin

x YNWA x 12-30-2008 03:03 PM

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...

x YNWA x 12-30-2008 03:16 PM

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.

stuartn 01-10-2009 11:09 PM

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.

Megatr0n 01-12-2009 07:36 PM

Anyone got it working for 3.8?

bw1 01-25-2009 12:24 AM

Quote:

Originally Posted by Megatr0n (Post 1710093)
Anyone got it working for 3.8?

Works :)

inciarco 01-25-2009 03:50 AM

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.

:)

asking 01-25-2009 03:54 AM

whats use of this mod ?

inciarco 01-25-2009 04:49 AM

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" );

Click the "Save" Button to Save New Plugin.


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 -->

Step 4: ENJOY! That's It


My Best Regards.

:)

Daisyboo 01-25-2009 02:32 PM

Worked perfectly adding it to profiles, thanks!

Howell 01-25-2009 05:13 PM

Thanks inciarco, I may update this to include that feature.

Hawk7173 01-28-2009 05:14 PM

Getting this error message in the header of our forum......HELP!!!

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [path]/includes/plugins_usercountd.php on line 190

HaS?R 01-29-2009 01:59 AM

Thanks.I'll Have A Look

JackRock 02-04-2009 02:39 AM

Just installed on 3.8. After a quick read of the posts/replies in this thread, fixed all the problems, and it seems to be working beautifully!

TitanJeff 02-12-2009 04:07 AM

Any way to remove the "My Countdown" text along with the block around the countdown?

PinkDaisy 03-28-2009 07:41 PM

Quote:

Originally Posted by kpierce (Post 1663287)
This works fine for me and my "test" account and some others but one member can't get it to work. Why would that be? She's a supermod and it works fine for another supermod so it's not a problem with the whole usergroup. I've messed around with it and am stumped.

Same here. Im having the exact same problem.
Any ideas or suggestions?

edytwinky 05-01-2009 06:46 PM

Does this mod work with the hack that makes it so your signature only appears once on a page?

ArnyVee 05-01-2009 11:42 PM

Quote:

Originally Posted by TitanJeff (Post 1741465)
Any way to remove the "My Countdown" text along with the block around the countdown?

You can edit the actual phrase ....

AdminCP >> Languages & Phrases >> Search in Phrases

...then, type the word 'countdown' in the search field and then search for the $vbphrase[countdown_title] or "My Countdown" phrase and change it to whatever you'd like to. But, to remove it altogether, you'd probably have to search through the products and/or php file for that and remove it. Good luck :up:

ryancooper 06-03-2009 11:57 PM

Quote:

Originally Posted by TitanJeff (Post 1741465)
Any way to remove the "My Countdown" text along with the block around the countdown?

Sure change your usercountdown_display 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>:<strong>$vbphrase[countdown_counting_down_to]:</strong> $event <br />
<em>$counter</em>

:up:

dartho 07-16-2009 09:14 AM

Working under 3.8 after rebiulding all languages :up:

Kushty 08-25-2009 02:37 PM

Nice one, works a treat in 3.8.3

thanks! :up:


All times are GMT. The time now is 12:54 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.01375 seconds
  • Memory Usage 1,819KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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