Page 20 of 31

PhpBB Countdown MOD

Posted: 17 Mar 2013, 22:55
by Nully
:thumb:
Ok. I feel free now to insert my text in Countdown in latin caracters :D

PhpBB Countdown MOD

Posted: 21 Apr 2013, 18:06
by alex75
hello stoker, beautiful mod.
I put here, the Italian translation.

open
language/it/common.php
find

Code: Select all

'YOU_NO_NEW_PM'		=> 'Nessun nuovo messaggio privato.',
add after

Code: Select all

	// BEGIN Countdown years and months
		'COUNT_YEARS'					=> 'Anni',
		'COUNT_MONTHS'					=> 'Mesi',
		// END Countdown years and months
also copy the 2 files attached on language / it / mods
language it.zip
(2.09 KiB) Downloaded 65 times
I think there is a mistake here.
Open: styles/prosilver/template/overall_header.html
Find

<!-- INCLUDE overall_header.html -->
I fixed that and it works

open styles/prosilver/template/overall_header.html
find

Code: Select all

<a name="start_here"></a>
add before

Code: Select all

<!-- IF COUNTDOWN_ENABLE -->
    <script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
    <script src="{ROOT_PATH}script/jquery.jcountdown.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    // <![CDATA[
    $(document).ready(function(){
       $("#time").countdown({
          date: "{COUNTDOWN_DATE}",
          onComplete: function( event ) {
         
             $(this).html("{COUNTDOWN_COMPLETE}");
          },
          leadingZero: true,
          <!-- IF COUNTDOWN_OFFSET_ENABLE -->
          offset: {COUNTDOWN_OFFSET},
          <!-- ENDIF -->
          <!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH -->
          yearsAndMonths: true,
          <!-- ENDIF -->
          htmlTemplate: "<span class='cd-time'>{COUNTDOWN_TEXT}</span><!-- IF COUNTDOWN_YEAR and COUNTDOWN_MONTH --> %y <span class=\"cd-time\">{L_COUNT_YEARS}</span><!-- ENDIF --><!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH --> %m <span class=\"cd-time\">{L_COUNT_MONTHS}</span><!-- ENDIF -->  %d <span class=\"cd-time\">{L_DAYS}</span> %h <span class=\"cd-time\">{L_HOURS}</span> %i <span class=\"cd-time\">{L_MINUTES}</span> %s <span class=\"cd-time\">{L_SECONDS}</span>",
          direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
       });
    });
    // ]]>
    </script>
    <!-- ENDIF -->
    <!-- IF not S_IS_BOT and COUNTDOWN_ENABLE -->
       <!-- IF (COUNTDOWN_TESTMODE and U_ACP) or not COUNTDOWN_TESTMODE -->
          <div class="navbar timecount">
             <div class="inner"><span class="corners-top"><span></span></span>
             <span id="time"></span>
             <span class="corners-bottom"><span></span></span></div>
          </div>
       <!-- ENDIF -->
       <!-- ENDIF -->
in this way you will see the countdown on every page of the forum

PhpBB Countdown MOD

Posted: 22 Apr 2013, 11:05
by Tulip26
I checked this code but i am confuse what exactly it.

PhpBB Countdown MOD

Posted: 22 Apr 2013, 12:00
by alex75
sorry, I did not get confused. these are the signs of the mod.

Open: styles/prosilver/template/overall_header.html
Find

Code: Select all

<!-- INCLUDE overall_header.html -->
Add after

Code: Select all

<!-- IF COUNTDOWN_ENABLE -->
<script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
<script src="{ROOT_PATH}script/jquery.jcountdown.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
	$("#time").countdown({
		date: "{COUNTDOWN_DATE}",
		onComplete: function( event ) {
		
			$(this).html("{COUNTDOWN_COMPLETE}");
		},
		leadingZero: true,
		<!-- IF COUNTDOWN_OFFSET_ENABLE -->
		offset: {COUNTDOWN_OFFSET},
		<!-- ENDIF -->
		<!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH -->
		yearsAndMonths: true,
		<!-- ENDIF -->
		htmlTemplate: "<span class='cd-time'>{COUNTDOWN_TEXT}</span><!-- IF COUNTDOWN_YEAR and COUNTDOWN_MONTH --> %y <span class=\"cd-time\">{L_COUNT_YEARS}</span><!-- ENDIF --><!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH --> %m <span class=\"cd-time\">{L_COUNT_MONTHS}</span><!-- ENDIF -->  %d <span class=\"cd-time\">{L_DAYS}</span> %h <span class=\"cd-time\">{L_HOURS}</span> %i <span class=\"cd-time\">{L_MINUTES}</span> %s <span class=\"cd-time\">{L_SECONDS}</span>",
		direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
	});
});
// ]]>
</script>
<!-- ENDIF -->
find

Code: Select all

<a name="start_here"></a>
add before

Code: Select all

<!-- IF not S_IS_BOT and COUNTDOWN_ENABLE -->
	<!-- IF (COUNTDOWN_TESTMODE and U_ACP) or not COUNTDOWN_TESTMODE -->
		<div class="navbar timecount">
			<div class="inner"><span class="corners-top"><span></span></span>
			<span id="time"></span>
			<span class="corners-bottom"><span></span></span></div>
		</div>
	<!-- ENDIF -->
	<!-- ENDIF -->
since I have not found in styles/prosilver/template/overall_header.html
this code

Code: Select all

<!-- INCLUDE overall_header.html -->
I combined the 2 changes
that
find:

Code: Select all

<a name="start_here"></a>
add before

Code: Select all

    <!-- IF COUNTDOWN_ENABLE -->
        <script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
        <script src="{ROOT_PATH}script/jquery.jcountdown.min.js" type="text/javascript"></script>
        <script type="text/javascript">
        // <![CDATA[
        $(document).ready(function(){
           $("#time").countdown({
              date: "{COUNTDOWN_DATE}",
              onComplete: function( event ) {
             
                 $(this).html("{COUNTDOWN_COMPLETE}");
              },
              leadingZero: true,
              <!-- IF COUNTDOWN_OFFSET_ENABLE -->
              offset: {COUNTDOWN_OFFSET},
              <!-- ENDIF -->
              <!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH -->
              yearsAndMonths: true,
              <!-- ENDIF -->
              htmlTemplate: "<span class='cd-time'>{COUNTDOWN_TEXT}</span><!-- IF COUNTDOWN_YEAR and COUNTDOWN_MONTH --> %y <span class=\"cd-time\">{L_COUNT_YEARS}</span><!-- ENDIF --><!-- IF COUNTDOWN_YEAR or COUNTDOWN_MONTH --> %m <span class=\"cd-time\">{L_COUNT_MONTHS}</span><!-- ENDIF -->  %d <span class=\"cd-time\">{L_DAYS}</span> %h <span class=\"cd-time\">{L_HOURS}</span> %i <span class=\"cd-time\">{L_MINUTES}</span> %s <span class=\"cd-time\">{L_SECONDS}</span>",
              direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
           });
        });
        // ]]>
        </script>
        <!-- ENDIF -->
        <!-- IF not S_IS_BOT and COUNTDOWN_ENABLE -->
           <!-- IF (COUNTDOWN_TESTMODE and U_ACP) or not COUNTDOWN_TESTMODE -->
              <div class="navbar timecount">
                 <div class="inner"><span class="corners-top"><span></span></span>
                 <span id="time"></span>
                 <span class="corners-bottom"><span></span></span></div>
              </div>
           <!-- ENDIF -->
           <!-- ENDIF -->
and it works

PhpBB Countdown MOD

Posted: 22 Apr 2013, 12:19
by tomahawk
hey stoker,

can u help me please...
im a totaly newby in phpbb3 using and want to install the countdown mod.
i have the stupid question - how can i install this mod?
i downloadet it und i see the files, but now... i dont know the way.

im not a programmer and its my first mod i want to install.

is there an installmanual for this mod?

thanx :-)

PhpBB Countdown MOD

Posted: 22 Apr 2013, 14:36
by Stoker

PhpBB Countdown MOD

Posted: 23 Apr 2013, 00:40
by Citromon
Hello.

I need your help.
After complete installation I have noticed error: countdown block shows
text 00 { COUNT_YEARS } 08 { COUNT_MONTHS } 06 Days 22 Hours 20 Minutes 51 Seconds
I checked, exists language file with COUNT_YEARS & COUNT_ MONTHS variables.

Can somebody help?

PhpBB Countdown MOD

Posted: 23 Apr 2013, 06:59
by Stoker
Version 2.0.1 released
Fixed 2 bugs in the install instructions


Citromon wrote:Hello.

I need your help.
After complete installation I have noticed error: countdown block shows
text 00 { COUNT_YEARS } 08 { COUNT_MONTHS } 06 Days 22 Hours 20 Minutes 51 Seconds
I checked, exists language file with COUNT_YEARS & COUNT_ MONTHS variables.

Can somebody help?
Download newest version here: dm_eds/showcat.php?id=4 and do the update instructions.

PhpBB Countdown MOD

Posted: 23 Apr 2013, 09:09
by Citromon
Thanks for quick reply.
In update instruction in language/common.php section is error: you forget write variable 'COUNT_MINUTES' description.

PhpBB Countdown MOD

Posted: 23 Apr 2013, 09:12
by Citromon
And yet one more question: have you plan to add ability to edit different countdown message in ACP for every installed language?