Kleor
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Timer] Easy-timer 2.6.3 stopped live countingOk. I will solve this problem later. Easy Timer works correctly on most sites. Download an older version:
https://www.ads-software.com/extend/plugins/easy-timer/download/
Try different versions and send me the number of the most recent version that fixes the bug.
Forum: Plugins
In reply to: [Easy Timer] Easy-timer 2.6.3 stopped live countingIf your problem is not solved, send me the URL of your page.
Forum: Plugins
In reply to: [Easy Timer] Easy-timer 2.6.3 stopped live countingJavascript may be deactivated in your browser. In this case, activate it. Check the Add JavaScript code field in the options page of Easy Timer.
If your problem is not solved, send me the URL of your page.
Forum: Plugins
In reply to: [Easy Timer] [Plugin: Easy Timer] firebug measures over 50 errors a secondI have fixed this bug:
Forum: Plugins
In reply to: [Easy Timer] Using Easy Timer with WP in several languagesDownload these three plugins:
Translate the easy-timer-da.php file in Danish.
To display a counter in English, write
[counter-en]
instead of[counter]
, and[/counter-en]
instead of[/counter]
.To display a counter in Hungarian, write
[counter-hu]
instead of[counter]
, and[/counter-hu]
instead of[/counter]
.To display a counter in Danish, write
[counter-da]
instead of[counter]
, and[/counter-da]
instead of[/counter]
.It spends me 50 minutes to do that.
Forum: Plugins
In reply to: [Easy Timer] Using Easy Timer with WP in several languagesSo, where should I write my questions?
Is it so?
Not exactly. You don’t have to copy the Easy Timer plugin, but only the en-easy-timer.php file. Create the hu-easy-timer.php and da-easy-timer.php files.
And WHAT are the modifications to do in the file?
It will spend a lot of my time to explain that. I prefer to create the files myself.
What do I have to do, when a new version of the plugin comes out? How to update?
Modify the files.
Would it be possible to include the language options somehow into the plugin itself?
No.
Forum: Plugins
In reply to: [Easy Timer] Using Easy Timer with WP in several languagesSorry for the delay. I don’t read the forum.
You can create twin plugins of Easy Timer, like this plugin:
In your content, write
[en-counter]
instead of[counter]
, and[/en-counter]
instead of[/counter]
.You need one plugin for each language.
Forum: Plugins
In reply to: [Easy Timer] [Plugin: Easy Timer] Can't count beyond 2037Yes, thanks! I just created a new version which supports
dates before 1970 and after 2038:Forum: Plugins
In reply to: [Easy Timer] [Plugin: Easy Timer] Can't count beyond 2037This is a restriction of the mktime function:
“The number of the year, may be a two or four digit value,
with values between 0-69 mapping to 2000-2069 and 70-100
to 1970-2000. On systems where time_t is a 32bit signed
integer, as most common today, the valid range for year is
somewhere between 1901 and 2038.”Sorry. Tell me if you have a solution.
Forum: Plugins
In reply to: [Easy Timer] [Plugin: Easy Timer] parse errorI have fixed this bug:
Download the latest version of Easy Timer
Usually, I always test the new versions before putting them online, but this time I did not.
Forum: Plugins
In reply to: [Easy Timer] [Plugin: Easy Timer] Fatal ErrorI just created a new version which fixes this bug:
Download the latest version of Easy Timer
I have replaced this line:
date_default_timezone_set('UTC');
by:
if (function_exists('date_default_timezone_set')) { date_default_timezone_set('UTC'); }
In fact, it’s not a bug but a problem of server configuration. Easy Timer requires at least PHP 5.1. Read the FAQ of your host to know how to work with at least PHP 5.1.
Forum: Plugins
In reply to: [Plugin: Easy Timer] How to format a timer’s title?You can insert this line:
$T = date('d/m/Y H:i:s', $T);
in the easy-timer.php file just before:
$content = str_ireplace('[timer]', '<span class="dhmscount'.$way.'" title="'.$T.'">'.$stringDhms.'</span>', $content);
But the reactualization will not work and to solve this problem, you will have to edit the easy-timer.js file or remove this line:
add_action('wp_footer', 'easy_timer_js');
in the easy-timer.php file.
In fact, the timer’s title is only an information for the easy-timer.js file. The easy-timer.js file calculates the difference between event timestamp (the timer’s title) and actual timestamp to know the remaining/elapsed time:
function dhmstimer_decrease(el) { var T = Math.round(((new Date()).getTime())/1000); var S = dhmscountdown[el].title - T; if (S == 0) { window.location.reload(); } dhmscountdown[el].innerHTML = timer(S, 'dhms'); }
For your visitors, it’s not an important visual detail and the majority of them will never realize that your timers have a title attribute.