Advance countdown timer help

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
Benutzeravatar
midkiff
Beiträge: 7
Registriert: Mo 31.Jan, 2005 15:33

Advance countdown timer help

Beitrag von midkiff »

I really like the advanced countdown script. I have successfully installed the script and it's working great, but I would like to know if it could display the text "days - hr : min : secs" along with the numbers. I was wondering if someone could possibly please explain to me how this could be done, I would really appreciate it. I would also like to know how to change the font size for where it says "Remaining days" or possibly even changing it to say remaining time.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

On ACP you can enable/disable the full time string.
This will decode by "GetElementById" and so be setted with the current value.

Renaming the text you can do in the lang_countdown.php.
Formatting the text can be done on overall_header.tpl. There you can use another/new CSS-classes or format the text directly there by other CSS-style definitions.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
midkiff
Beiträge: 7
Registriert: Mo 31.Jan, 2005 15:33

Beitrag von midkiff »

How can I display the text "days - hr : min : secs" beside the numbers?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Try this:

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
		'FULL_DISPLAY' => ''));

#
#-----[ REPLACE WITH ]------------------------------------------
#
		'HOURS' => $lang['CT_Hours'],
		'MINUTES' => $lang['CT_Minutes'],
		'SECONDS' => $lang['CT_Seconds'],
		'FULL_DISPLAY' => ''));

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
	{L_DAYS}&nbsp;<input name="days" class="post" size=4 style="border: 0px">
	<span style="display: {FULL_DISPLAY};">-&nbsp;&nbsp;
	<input name="hours" class="post" size=2 style="border: 0px">&nbsp;:
	<input name="mins" class="post" size=2 style="border: 0px">&nbsp;:
	<input name="secs" class="post" size=2 style="border: 0px">

#
#-----[ REPLACE WITH ]------------------------------------------
#
	<input name="days" class="post" size=4 style="border: 0px">&nbsp;{L_DAYS}
	<span style="display: {FULL_DISPLAY};">-&nbsp;&nbsp;
	<input name="hours" class="post" size=2 style="border: 0px">&nbsp;{HOURS}&nbsp;:
	<input name="mins" class="post" size=2 style="border: 0px">&nbsp;{MINUTES}&nbsp;:
	<input name="secs" class="post" size=2 style="border: 0px">&nbsp;{SECONDS}


#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['CT_Hours'] = 'hrs';
$lang['CT_Minutes'] = 'min';
$lang['CT_Seconds'] = 'sec';

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
midkiff
Beiträge: 7
Registriert: Mo 31.Jan, 2005 15:33

Beitrag von midkiff »

I am getting this error now

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /home/mojojojo/public_html/forum/language/lang_english/lang_main.php on line 1331

This is what's on line 1331

Code: Alles auswählen

$lang[CT_Hours'] = 'hrs';
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Sorry for this. I've fixed the snippet. Please reinstall the part for lang_main.php.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
midkiff
Beiträge: 7
Registriert: Mo 31.Jan, 2005 15:33

Beitrag von midkiff »

Ok that fixed that, but the days is to the left of where it says remaining time, can you also explain to me exactly how to change the size of the fonts because the numbers are smaller than the text. I have attached a gif to show you how it is displaying now.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Oh sorry, i forgotten the formatting.
Use this:

Code: Alles auswählen

<span class="genmed">{L_DAYS}</span>&nbsp;<input name="days" class="post" size=4 style="border: 0px">
<span style="display: {FULL_DISPLAY};">-&nbsp;&nbsp; <input name="hours" class="post" size=2 style="border: 0px">&nbsp;<span class="genmed">{HOURS}</span>&nbsp;
<input name="mins" class="post" size=2 style="border: 0px">&nbsp;<span class="genmed">{MINUTES}</span>&nbsp;
<input name="secs" class="post" size=2 style="border: 0px">&nbsp;<span class="genmed">{SECONDS}</span> 
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
midkiff
Beiträge: 7
Registriert: Mo 31.Jan, 2005 15:33

Beitrag von midkiff »

Ok that works great now, how can I put the word "days" after the number of days?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Like this:

Code: Alles auswählen

<input name="days" class="post" size=4 style="border: 0px">&nbsp;<span class="genmed">{L_DAYS}</span>
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
midkiff
Beiträge: 7
Registriert: Mo 31.Jan, 2005 15:33

Beitrag von midkiff »

That changes it back to where the # is to the left of remaining days.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Then this:

Code: Alles auswählen

<span class="genmed">{L_DAYS}</span>&nbsp;<input name="days" class="post" size=4 style="border: 0px">&nbsp;<span class="genmed">days</span>
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
midkiff
Beiträge: 7
Registriert: Mo 31.Jan, 2005 15:33

Beitrag von midkiff »

That's exactly what I wanted, thanks man you are the best! :ok
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

No problem. Long support for a little code ;)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Rain501
Beiträge: 2
Registriert: Di 01.Feb, 2005 14:35

Beitrag von Rain501 »

Well, I'm going to save creating a new thread, as my post is along the same sort of lines, and again I dont speak german..

I've installed the Advanced countdown mod on a phpBB2 plus 1.5 board... Now these are probably easily curable, but I'd like help woth two things -
1, How do I remove the Javascript pop-ups?
2, The mod looks like it is all there, the layout is good, its all present in the ACP & i've run the SQL query, but it's not displaying the actual countdown - no times or dats, just lots of -- -- --. Is there a seperate mod I need to install prior to this one? An incompatibility with the Plus version of phpBB? Or am i just missing something obvious? Any help would be appreciated :)
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

1. You can find on page_header.php the line

Code: Alles auswählen

		alert("'.$event_text.'");
Just delete it and the popup is gone.

2. The mod also run on a phpBB2 plus. Does you have install the newest release? Compare with the release you can find here under the downloads.
Be sure you have edit the >body>-Tag in the overall_header.tpl!
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Rain501
Beiträge: 2
Registriert: Di 01.Feb, 2005 14:35

Beitrag von Rain501 »

Sorted the Java alert, thanks very much :D

Noticed I had the year set for 2004 which was why the counter wasn't working, my fault oops... :)

Anyway, thanks very much for the help! :D :D :D
Antworten