vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - User Countdowns & Countups (https://vborg.vbsupport.ru/showthread.php?t=205841)

jarosciak 06-07-2009 10:09 PM

I've upgraded my instructions above.
Please note, while this works for me, this is not how it should be done.
Programmer of this script should add an option to implement text and backgroung colors.

socalsoccer 06-08-2009 12:41 AM

Thanks Jaro.

You wanted your admin Cpanel color changed, and I just need the font color changed in the post. There should be an easy way to do this. I appreciate your help but it does not correlate with what I am trying to do.

jarosciak 06-08-2009 01:05 AM

1 Attachment(s)
Quote:

Originally Posted by socalsoccer (Post 1825359)
Thanks Jaro.

You wanted your admin Cpanel color changed, and I just need the font color changed in the post. There should be an easy way to do this. I appreciate your help but it does not correlate with what I am trying to do.


I am not sure I understand, but if you just want to change the color of the message text, use a BB code:

Go to Control Panel, Edit Countdown and use this as a message to display:

PHP Code:

[b][color=red]Countdown to Joe's Vacation:[/color][/b] 

then it'll look like this:
Attachment 100278

socalsoccer 06-08-2009 02:42 AM

Quote:

Originally Posted by jarosciak (Post 1825367)
I am not sure I understand, but if you just want to change the color of the message text, use a BB code:

Go to Control Panel, Edit Countdown and use this as a message to display:

PHP Code:

[b][color=red]Countdown to Joe's Vacation:[/color][/b] 

then it'll look like this:
Attachment 100278

JARO thank you very much!!!! That is all I wanted. i did not know you could ad those tags in the snall edit box.

jarosciak 06-08-2009 03:36 AM

Yeah, I didn't know either, but I was playing around with it and realized it worked with BB code. Great.

wmlvb 06-08-2009 04:33 PM

I would like to add hyperlink to the text of event. Do I use bb code or html to do this? Thanks

Battle_Ring 06-26-2009 09:43 PM

Could you make one the admin can set to show in the header

samdu 08-26-2009 05:51 PM

Any way to add a fieldset to this in the postbit?

matthewhotdude 08-26-2009 07:27 PM

Quote:

Originally Posted by Jafo232 (Post 1749833)
If you edit the plugin called: "Handle timer in postbit", just delete"<br />" then click save. :)

I'm thick where do I find this?

chick 08-29-2009 05:39 PM

Nice idea but this must conflict with something else so I cannot mark it as installed.

Running the latest vb, vbseo and multiple hacks. Everything appears OK except it does not show in sig or postbit. What is the hook for it?

Isn't there anything I can do, I would really like it to work.

OK I got it to work on another site of mine and of all places a heavily modified theme. Marked as installed.

LisaJH 11-19-2009 07:57 PM

This isnt working all that comes up is "counting down to my 22nd birthday" but there is no timer ??? Ive installed everything correctly... could someone please help with this

betts02 11-20-2009 09:52 AM

am i correct in thinking if i place a user into a group with this mod it puts the countdown timer in automatically ?

i use a small code at the moment which i have to place in each users sig when i place them in a certain cat, so it takes me ages but if this mod means i can add the mod for a certain cat and when i place a member in this cat it automatically places thr desired countdown timer in their sig

can someone please let me know ?

tagged for the moment
cheers

wbottomley 02-14-2010 09:14 PM

I hate to revive an old thread but my users are requesting this again. The only problem I have, I've upgraded to VB 4.0.1.

Are they any plans to upgrade this fine mod?

Dutch_Boy 02-15-2010 07:14 PM

I have installed the mod on my forum but i got a problem. It only shows text and no time.
How can i fix this?

Running 3.8.4

exposed 02-24-2010 11:06 PM

Is there a way to put this in a module on the home page?

X_FiLeS 04-20-2010 01:11 PM

Very nice Mod for my webcenter thanks > Installed.

MagicThemeParks 04-22-2010 03:05 AM

Works perfectly out of the box with 3.8.5 :up:

Added styling (bold/font color) by editing the sk-timer_countdownbit template. Simply added styling around $puser[sktitle]

odln018 06-23-2010 12:37 AM

MAgicThemeParts - What kind of styling did you do?

Also - I'd love to be able to have it go in Months/days/hours/mins/secs.

MagicThemeParks 06-23-2010 10:51 AM

odln018, I basically changed the font color and bolded it in the 'title' of the countdown. But, I figured that I'd share where to do it since others may want to know where to find it.

You can see here in post two of this thread for an example: http://www.fantasyleagueforums.com/showthread.php?t=24

odln018 07-04-2010 01:36 AM

Ok - For some reason, the timer all of sudden stopped working for specific users. It's weird, and there were no changes to anything else on the board.

I've tried to uninstall/install, with no success.

trueoak 07-05-2010 01:32 AM

Anyone know how to show a preview of the countdown timer on the creation page? That way someone can see the actual time of their current timer? You can't use the same script as it's post specific, but I've been unable to figure out how to show it on the create page.

AndrewRich 07-24-2010 12:25 AM

1 Attachment(s)
I've installed this [S]but am having some difficulty (things which have been reported up-thread). I tried to remove the unnecessary line-breaks, but when I made those changes (only removing some <br /> tags) the live countdown stops and the numbers only change on a page reload. What is the code looking for as far as the live update?[/S]

vB 3.8.6 PL1.

I uninstalled the product completely (including dropping the "sktimer" table, see next post) and reinstalled from scratch. I checked in between each step to see if the countdown was still working.

Plugin Manager -> Edit "Handle timer in postbit"
Before:
PHP Code:

if ($puser['skformat'] == 'dh') { $puser['skformat'] = '%%D%% Days, %%H%% Hours'; } else { $puser['skformat'] = '%%D%% Days, %%H%% Hours <br /> %%M%% Minutes, %%S%% Seconds.'; } 

After:
PHP Code:

if ($puser['skformat'] == 'dh') { $puser['skformat'] = '%%D%% Days, %%H%% Hours'; } else { $puser['skformat'] = '%%D%% Days, %%H%% Hours %%M%% Minutes, %%S%% Seconds.'; } 

Change:
Remove " <br />"

Reload page with countdown: Countdown works.

Style Manager -> Edit "sk-timer_countdownbit"
Before:
PHP Code:

<if condition="$puser[skunixdate] > TIMENOW">$puser[sktitle]<else />$puser[skdescription]</if> <br /> 

After:
PHP Code:

<if condition="$puser[skunixdate] > TIMENOW">$puser[sktitle]<else />$puser[skdescription]</if> 

Change:
Remove "<br />"

Reload page with countdown: Countdown works.

Style Manager -> Edit "sk-timer_countdownbit"
Remove first line consisting of "<br />".

Reload page with countdown: Countdown works.

vBulletin Options -> SK - Countdown/Countup Settings -> Event Location
Switched back and forth between Signature and User Info, reloading page with countdown each time: Countdown works.

I can only guess that I must have typoed something the first time through and later, on being more careful while doing things step-by-step, didn't mess it up.

Result: Countdown works, no line breaks.

AndrewRich 07-26-2010 12:58 AM

The "uninstallcode" section of the product XML is blank. That means that when uninstalling, the product's SQL changes are left behind. This is rather poor practice. Can it be updated? Seems like all you'd need is to drop the "sktimer" table.


Code:

                        <installcode><![CDATA[$vbulletin->db->query("CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX . "sktimer (
  skuserid int(11) NOT NULL default '0',
  sktitle text,
  skdescription text,
  skdateline int(11) default NULL,
  skactive tinyint(4) default NULL,
  skformat enum('dhms','dh') default 'dhms',
  PRIMARY KEY  (skuserid)
)");]]></installcode>
                        <uninstallcode />

Edit: The updated product XML in my post above includes uninstall code which drops the "sktimer" table.

ascender 07-31-2010 12:25 PM

Just wondering if anyone is able to update this to be compatible with VB4? Its a brilliant mod and one that our users are missing now we've upgraded.

Thanks.

boomcar68 08-01-2010 12:37 PM

Installed on Version 3.7.3
1 issue that there is no text displayed after the countdown.
I have write something in the Message to display after specified time,but there is just no text in ucer info nor under sig.
How can i change this,or what's wrong?

kolibrii 08-10-2010 08:21 AM

Hello, i am alreddy using vB 3.6.8. Installation works, administration too. But no chance to set countup in Profile (no option seen). Can anyone help me to run this mod under 3.6.8?!

AndrewRich 08-23-2010 09:15 PM

1 Attachment(s)
I've identified a bug in this script; when a user includes an apostrophe or single quote in their "countdown finished" message, the countdown will not actively decrement. It looks like the single quote should be escaped. I'm looking at the script code now and will update when I have a fix.

Update:

In sktimer.js, I added the following as the first two lines in the CountBack function:

HTML Code:

FinishMessage = FinishMessage.replace ( "'", "& #39;" );
FinishMessage = FinishMessage.replace ( '"', '& #34;' );

(There are extra spaces in the above code between the "&" and the "#" because vB kept helpfully rendering the entities in the post. It should be "ampersand pound 39 semicolon" for single quote and "ampersand pound 34 semicolon" for colon, with no spaces.)

This just replaces single and double quotes with their HTML entity representations. I've attached the updated sktimer.js.

*** This solves the reported problem of only some user countdowns actively counting! ***


All times are GMT. The time now is 01:34 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.01287 seconds
  • Memory Usage 1,816KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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