PhpBB Countdown MOD

Miscaleneous modifications from Stoker
Locked
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

PhpBB Countdown MOD

Post by Nully »

:thumb:
Ok. I feel free now to insert my text in Countdown in latin caracters :D
User avatar
alex75
BBCoder I
BBCoder I
Posts: 4
Joined: 21 Apr 2013, 17:35
BBCodes: 10
Location: Italy
Contact:

PhpBB Countdown MOD

Post 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 77 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
Tulip26
BBCoder I
BBCoder I
Posts: 1
Joined: 02 May 2012, 15:45
BBCodes: 4
Contact:

PhpBB Countdown MOD

Post by Tulip26 »

I checked this code but i am confuse what exactly it.
User avatar
alex75
BBCoder I
BBCoder I
Posts: 4
Joined: 21 Apr 2013, 17:35
BBCodes: 10
Location: Italy
Contact:

PhpBB Countdown MOD

Post 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
tomahawk
BBCoder I
BBCoder I
Posts: 1
Joined: 22 Apr 2013, 11:55
BBCodes: 0

PhpBB Countdown MOD

Post 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 :-)
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

PhpBB Countdown MOD

Post by Stoker »

Board rules! No PM support
User avatar
Citromon
BBCoder II
BBCoder II
Posts: 6
Joined: 10 Mar 2012, 15:07
BBCodes: 10

PhpBB Countdown MOD

Post 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?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

PhpBB Countdown MOD

Post 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.
Board rules! No PM support
User avatar
Citromon
BBCoder II
BBCoder II
Posts: 6
Joined: 10 Mar 2012, 15:07
BBCodes: 10

PhpBB Countdown MOD

Post by Citromon »

Thanks for quick reply.
In update instruction in language/common.php section is error: you forget write variable 'COUNT_MINUTES' description.
User avatar
Citromon
BBCoder II
BBCoder II
Posts: 6
Joined: 10 Mar 2012, 15:07
BBCodes: 10

PhpBB Countdown MOD

Post by Citromon »

And yet one more question: have you plan to add ability to edit different countdown message in ACP for every installed language?
Locked