Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Название: (RC34) It's the Final Countdown 1.2.0

Добавил: Respected

Добавлен: 17 Окт 2012

Категория: Компоненты, Приложения для IP.Board

Название по-русски : Финальный отсчёт до Нового Года

Версия IP.Board: 3.4.x, 3.3.x, 3.2.x

Компонент (RC34) It's the Final Countdown 1.2.0 позволяет вам создавать отсчёты с отображением в разных местах форума. Отсчёт может быть до любого указанного вами повода: день рождения форума, какой-либо праздник, показ сериала, выход фильма и многое другое.

  • 3 месяца спустя...

У меня 3.2.3.
Модуль не отображается...
В настройках указал показывать во всех 3-х местах.
И лишь только в районе сайдбара пишет ошибку...

Failed to load template 'finalCountdown_sidebar' from group 'skin_finalCountdown'

Кэш, рекэш и всю эту ботву делал.

Edited by Melomankz

  • Author

Добавить шаблон finalCountdown_sidebar в группу skin_finalCountdown с содержимым:

<div class='ipsSideBlock clearfix'>
	<h3>{$this->lang->words['finalCountdown_sidebarHeading']}</h3>
	<div class='_sbcollapsable'>
		<ul class='ipsList_withminiphoto block_list'>
			<li class="countdownsLoading" align="center" class="clearfix">{$this->lang->words['finalCountdown_countdownsLoading']}</li>
			<foreach loop="$countdowns as $id => $countdown">
				<li style="text-align:center; display:none;" class="clearfix countdownInnerWrapper">
					<span class='styleHolder'>
						<span class='after_txt'>{$countdown['before_txt']} </span>
						<span class="countdown{$id}"></span>
						<span class='after_txt'> {$countdown['after_txt']}</span>
					</span>
				</li>
			</foreach>
		</ul>
	</div>
</div>
<script type="text/javascript">
	(function($) 
	{
		$( '.countdownsLoading' ).hide();
		<foreach loop="$countdowns as $id => $countdown">
			$( '.countdown{$id}' ).each( function()
			{
				if ( ! $( this ).hasClass( 'hasCountdown' ) )
				{
					$( this ).countdown(
					{
						until: new Date( '{$countdown['jstime']}' ),
						timezone: {$countdown['jstimezone']},
						format: ( '{$countdown['format']}' || 'yodHMS' ),
						layout: ( '{$countdown['layout']}' || '{y<}{yn} {yl}, {y>}{o<}{on} {ol}, {o>}{d<}{dn} {dl}, {d>}{h<}{hn} {hl}, {h>}{m<}{mn} {ml}, {m>}{s<}and {sn} {sl}{s>}' ),
						alwaysExpire: true,
						expiryText: "{$countdown['event_msg']}",
						onExpiry: function()
						{
							$( this ).next( '.after_txt' ).hide();
							$( this ).prev( '.before_txt' ).hide();
						}
					});
					
					$( this ).prev( '.before_txt' ).html( "{$countdown['before_txt']} " );
					$( this ).next( '.after_txt' ).html( " {$countdown['after_txt']}" );
					$( this ).closest( '.styleHolder' ).attr( 'style', "{$countdown['text_style']}" );
					$( this ).closest( '.countdownInnerWrapper' ).show();
				}
				<if test="$countdown['text_style']">
					else
					{
						/* Just applying style to existing embedded countdowns */
						Debug.write( "Applying style to embedded countdown" );
						$( this ).closest( '.styleHolder' ).attr( 'style', "{$countdown['text_style']}" )
					}
				</if>
			});
		</foreach>
	})(FCJQuery);
</script>

 

Переменная:

$countdowns=array()

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.