Перейти к содержанию

Clan Wars


Рекомендуемые сообщения

Не знаю может кто та ставил дополнение для Pages - Clan Wars

Pages Clan Wars.zip

6.png

5.png

7.png

8.png

Вроде всё поставил но не отображается результат

1.png

Pages Clan Wars.zip

Ссылка на комментарий
Поделиться на другие сайты

Поставил, но css шаблонов нет в архиве или чего-то не хватает ему. Криво очень отображает всё.  На могу так подсказать что нужно настроить. 

Ссылка на комментарий
Поделиться на другие сайты

28 минут назад, rustav сказал:

Поставил, но css шаблонов нет в архиве или чего-то не хватает ему. Криво очень отображает всё.  На могу так подсказать что нужно настроить. 

В настройках базы ставил?

1.png

У меня css тоже нету но всё норм кроме результата https://zone-cs.ru/clan-wars/

Ссылка на комментарий
Поделиться на другие сайты

да, этого не хватало. Теперь всё чётко встало и результаты показывает как надо

Ссылка на комментарий
Поделиться на другие сайты

3 минуты назад, rustav сказал:

да, этого не хватало. Теперь всё чётко встало и результаты показывает как надо

Странно, может из за версии движка так как у меня 4.1.16.1

Ссылка на комментарий
Поделиться на другие сайты

на 4.2. поставил всё ок

wasder12, если на русский язык поле какое-то переводишь, то будет ситуация как у тебя

Ссылка на комментарий
Поделиться на другие сайты

в шаблонах если русский прописываешь, всё ок будет. Сейчас поправлю и выложу

Ссылка на комментарий
Поделиться на другие сайты

wasder12, открывай шаблоны в менеджере страниц → Clan Wars → шаблон record и туда копируй

Спойлер

{{$team = $record->customFieldDisplayByKey('cw_teamscores', 'display');}}{{$team = preg_replace('/\D/', '', $team);}}{{$opponent = $record->customFieldDisplayByKey('cw_opponentscores', 'display');}}{{$opponent = preg_replace('/\D/', '', $opponent);}}{{$status = $record->customFieldDisplayByKey('cw_status', 'display');}}
<div class="cw_recordDisplay" style="background-image: url({$record->customFieldDisplayByKey('cw_matchbg', 'display')|raw})">
    {{if $updateForm}}
        <div class='cw_updateForm ipsResponsive_hidePhone'>
            <div class="cw_updateToggle">
                <i class="fa fa-cogs" aria-hidden="true"></i>
                <ul class='cw_Forms ipsForm ipsForm_vertical ipsAreaBackground_light ipsPad'>
                    {$updateForm|raw}
                </ul>
              </div>
        </div>
    {{endif}}
    <div class="cw_Contaner">
          {{if ($status == 'Предстоящий')}}
              <div class="cw_date">
                  <div id="cw_dateCount"></div>
                  <div class="cw_fullDate">{$record->customFieldDisplayByKey('cw_date', 'display')|raw}</div>
              </div>
          {{endif}}
          <div class="cw_status {{if ($status == 'Предстоящий')}}cw_upcoming{{elseif ($status == 'Закончился')}}cs_finished{{endif}}">{$status}</div>
          <div class="cw_game">
              {$record->customFieldDisplayByKey('cw_game', 'display')|raw}
          </div>
          <div class="cw_type" title="A {$record->customFieldDisplayByKey('cw_type', 'display')|raw} war">
              {$record->customFieldDisplayByKey('cw_type', 'display')|raw}
          </div>
          <div class="cw_teamWrap">
            <div class="cw_Team">
                  <div class="cw_teamName">{$record->customFieldDisplayByKey('cw_teamname', 'display')|raw}</div> 
                {$record->customFieldDisplayByKey('cw_teamlogo', 'display')|raw}
                {{if (!empty($team . $opponent)) && ($status == 'Закончился')}}
                    {{if ($team > $opponent)}}
                        <div class="cw_teamScores win">Победитель</div>
                      {{elseif ($team < $opponent)}}
                           <div class="cw_teamScores lose">Лузер</div>                
                    {{else}}    
                        <div class="cw_teamScores">Ничья</div>
                    {{endif}}     
                {{endif}}
            </div>
          
            <div class="cw_VS">
                {{if (!empty($team . $opponent)) && ($status == 'Закончился')}}
                    <span class="cw_teamScores{{if ($team > $opponent)}} win{{elseif ($team < $opponent)}} lose{{endif}}">{{if ( !empty( $team ) ) }}{$team}{{else}}0{{endif}}</span>
                  {{else}}
                        <span class="cw_teamScores"><i class="icon-fire"></i></span>
                {{endif}}
                  <span class="vs_line"><span class="vs_Text ipsResponsive_hideDesktop">VS</span></span>     
                {{if (!empty( $team . $opponent)) && ($status == 'Закончился')}}
                    <span class="cw_opponentScores{{if ($opponent > $team)}} win{{elseif ($opponent < $team)}} lose{{endif}}">{{if (!empty( $opponent)) }}{$opponent}{{else}}0{{endif}}</span>  
                  {{else}}
                    <span class="cw_opponentScores"><i class="icon-fire"></i></span>
                {{endif}}
              </div>
            <div class="cw_teamOpponent">
                {{if (!empty( $team . $opponent)) && ($status == 'Закончился')}}
                    {{if ($opponent > $team)}}
                        <div class="cw_opponentScores win">Победитель</div>
                      {{elseif ($opponent < $team)}}
                        <div class="cw_opponentScores lose">Лузер</div>
                    {{else}}    
                        <div class="cw_opponentScores">Ничья</div>
                    {{endif}}     
                {{endif}}      
                 {$record->customFieldDisplayByKey('cw_opponentlogo', 'display')|raw}
                  <div class="cw_teamName">{$record->customFieldDisplayByKey('cw_opponentname', 'display')|raw}</div> 
            </div>
        </div>
    </div>
</div>
<div class="cw_sharerWrap">
    <div class="cw_Sharer">
          {{if !$record->container()->disable_sharelinks}}
            {template="sharelinks" app="core" group="global" params="$record"}
        {{endif}}
      </div>
</div>
<hr class='ipsHr'>
<div class="cw_Content ipsPad ipsAreaBackground_reset">
<div class='ipsPageHeader ipsClearfix'>
    
    <div class='ipsPos_right ipsResponsive_noFloat ipsResponsive_hidePhone'>
        {template="follow" app="core" group="global" params="'cms', 'records'.$record::$customDatabaseId, $record->primary_id_field, $record->followers()->count( TRUE )"}
    </div>
    
    <h1 class='ipsType_pageTitle ipsContained_container'>
        {{if $record->locked()}}<span><i class='fa fa-lock'></i></span> {{endif}}

        {{if $record->isFutureDate() || $record->mapped('pinned') || $record->mapped('featured') || $record->hidden() === -1 || $record->hidden() === 1}}
            {{if $record->isFutureDate()}}
                <span><span class="ipsBadge ipsBadge_icon ipsBadge_warning" data-ipsTooltip title='{$record->futureDateBlurb()}'><i class='fa fa-clock-o'></i></span></span>
            {{elseif $record->hidden() === -1}}
                <span><span class="ipsBadge ipsBadge_icon ipsBadge_warning" data-ipsTooltip title='{$record->hiddenBlurb()}'><i class='fa fa-eye-slash'></i></span></span>
            {{elseif $record->hidden() === 1}}
                <span><span class="ipsBadge ipsBadge_icon ipsBadge_warning" data-ipsTooltip title='{lang="pending_approval"}'><i class='fa fa-warning'></i></span></span>
            {{endif}}
            {{if $record->mapped('pinned')}}
                <span><span class="ipsBadge ipsBadge_icon ipsBadge_positive" data-ipsTooltip title='{lang="pinned"}'><i class='fa fa-thumb-tack'></i></span></span>
            {{endif}}
            {{if $record->mapped('featured')}}
                <span><span class="ipsBadge ipsBadge_icon ipsBadge_positive" data-ipsTooltip title='{lang="featured"}'><i class='fa fa-star'></i></span></span>
            {{endif}}
        {{endif}}
        
        {{if $record->prefix() OR ( $record->canEdit() AND $record::canTag( NULL, $record->container() ) AND $record::canPrefix( NULL, $record->container() ) )}}
            <span {{if !$record->prefix()}}class='ipsHide'{{endif}} {{if ( $record->canEdit() AND $record::canTag( NULL, $record->container() ) AND $record::canPrefix( NULL, $record->container() ) )}}data-editablePrefix{{endif}}>
                {template="prefix" group="global" app="core" params="$record->prefix( TRUE ), $record->prefix()"}
            </span>
        {{endif}}
        {{if $record->canEdit()}}
            <div class='ipsType_break ipsContained' data-controller="core.front.core.moderation">
                <span data-role="editableTitle" title='{lang="click_hold_edit"}'>{$record->_title}</span>
            </div>
        {{else}}
            <div class='ipsType_break ipsContained'>{$record->_title}</div>
        {{endif}}
    </h1>
</div>
<hr class='ipsHr'>
<div class='ipsPhotoPanel ipsPhotoPanel_tiny ipsClearfix ipsSpacer_bottom'>
    {template="userPhoto" app="core" group="global" params="$record->author(), 'tiny', $record->warningRef()"}
    <div>
        <p class='ipsType_reset ipsType_large ipsType_blendLinks'>
            {lang="content_record_started_by" htmlsprintf="$record->author()->link()"}
            {{if $record->editLine()}}
                <span class='ipsType_light ipsType_medium ipsType_reset'>
                    ({lang="edited_lc"})
                </span>
            {{endif}}
        </p>
        <ul class='ipsList_inline'>
            <li>{datetime="$record->record_publish_date"}</li>
        </ul>
    </div>
</div>    

{{if count( $record->tags() ) OR ( $record->canEdit() AND $record::canTag( NULL, $record->container() ) )}}
    {template="tags" group="global" app="core" params="$record->tags(), FALSE, FALSE, ( $record->canEdit() AND $record::canTag( NULL, $record->container() ) ) ? $record->url() : NULL"}
{{endif}}    

<article class='ipsContained ipsSpacer_top'>
    <div class='ipsClearfix'>
        {{if $record->record_image}}
            <div class="cCmsRecord_image">
                <img class="ipsImage" src="{file="$record->_record_image_thumb" extension="cms_Records"}">
            </div>
        {{endif}}
        <section class="ipsType_richText ipsType_normal" data-controller='core.front.core.lightboxedImages'>{$record->_content|raw}</section>
        
        {{if $record->editLine()}}
            {$record->editLine()|raw}
        {{endif}}
        
        {{if $records = $record->getReciprocalItems()}}
            {{$infoLineShown = FALSE;}}
            <br>
            {{foreach $records as $fieldId => $items}}
                <ul class="ipsList_inline ipsList_csv ipsList_noSpacing">
                {{foreach $items as $item}}
                    <li>{{if ! $infoLineShown}}{{$infoLineShown=TRUE;}}{lang="records_linking_to_me" sprintf="$item::database()->recordWord(0,TRUE), $record::database()->recordWord(1)"}: {{endif}}<a href="{$item->url()}">{$item->_title}</a></li>
                {{endforeach}}
                </ul>
            {{endforeach}}
        {{endif}}
    </div>
    {{if $record instanceof \IPS\Content\Reputation and settings.reputation_enabled}}
    <div class='ipsPos_right'>
        {template="reputation" app="core" group="global" params="$record"}
        <br>
    </div>
    {{endif}}
    <hr class='ipsHr ipsClear ipsClearfix'>
    {{if $record->isFutureDate() or $record->canPin() or $record->canUnpin() or $record->canFeature() or $record->canUnfeature() or $record->canHide() or $record->canUnhide() or $record->canMove() or $record->canLock() or $record->canUnlock() or $record->canDelete()}}
        <a href='#elentryActions_menu' id='elentryActions' class='ipsButton ipsButton_light ipsButton_verySmall' data-ipsMenu>{lang="content_record_actions" sprintf="$record::database()->recordWord( 1, TRUE )"} <i class='fa fa-caret-down'></i></a>
        <ul id='elentryActions_menu' class='ipsMenu ipsMenu_auto ipsHide'>
            {{if $record->isFutureDate() and $record::canFuturePublish( NULL, $record->container() )}}
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'publish' ) )}' data-confirm title='{lang="publish_now"}'>{lang="publish"}</a></li>
            {{endif}}
            {{if $record->canFeature()}}
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'feature' ) )}' title='{lang="feature_title_record" sprintf="$record::database()->recordWord(1)"}'>{lang="feature"}</a></li>
            {{endif}}
            {{if $record->canUnfeature()}}                
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'unfeature' ) )}' title='{lang="unfeature_title_record" sprintf="$record::database()->recordWord(1)"}'>{lang="unfeature"}</a></li>
            {{endif}}
            {{if $record->canPin()}}                
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'pin' ) )}' title='{lang="pin_title_record" sprintf="$record::database()->recordWord(1)"}'>{lang="pin"}</a></li>
            {{endif}}
            {{if $record->canUnpin()}}                
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'unpin' ) )}' title='{lang="unpin_title_record" sprintf="$record::database()->recordWord(1)"}'>{lang="unpin"}</a></li>
            {{endif}}
            {{if $record->canHide()}}                
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'hide' ) )}' title='{lang="hide_title_record" sprintf="$record::database()->recordWord(1)"}' data-ipsDialog data-ipsDialog-title="{lang="hide"}">{lang="hide"}</a></li>
            {{endif}}
            {{if $record->canUnhide()}}                
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'unhide' ) )}' title='{{if $record->hidden() === 1}}{lang="approve_title_record" sprintf="$record::database()->recordWord(1)"}{{else}}{lang="unhide_title_record" sprintf="$record::database()->recordWord(1)"}{{endif}}'>{{if $record->hidden() === 1}}{lang="approve"}{{else}}{lang="unhide"}{{endif}}</a></li>
            {{endif}}
            {{if $record->canLock()}}                
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'lock' ) )}' title='{lang="lock_title_record" sprintf="$record::database()->recordWord(1)"}'>{lang="lock"}</a></li>
            {{endif}}
            {{if $record->canUnlock()}}                
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'unlock' ) )}' title='{lang="unlock_title_record" sprintf="$record::database()->recordWord(1)"}'>{lang="unlock"}</a></li>
            {{endif}}
            {{if $record->canMove()}}                
                <li class='ipsMenu_item'><a href='{$record->url('move')->csrf()}' data-ipsDialog data-ipsDialog-title="{lang="move"}"  title='{lang="move_title_record" sprintf="$record::database()->recordWord(1)"}'>{lang="move"}</a></li>
            {{endif}}
            {{if $record->canDelete()}}                
                <li class='ipsMenu_item'><a href='{$record->url('moderate')->csrf()->setQueryString( array( 'action' => 'delete' ) )}' data-confirm  title='{lang="delete_title_record" sprintf="$record::database()->recordWord(1)"}'>{lang="delete"}</a></li>
            {{endif}}
            {{if \IPS\Member::loggedIn()->modPermission('can_view_moderation_log')}}
                <li class='ipsMenu_sep'><hr></li>
                <li class="ipsMenu_item"><a href='{$record->url()->csrf()->setQueryString( array( 'do' => 'modLog' ) )}' data-ipsDialog data-ipsDialog-title='{lang="moderation_history"}'>{lang="moderation_history"}</a></li>
            {{endif}}

        </ul>
    {{endif}}
    {{if $record->canEdit()}}
        &nbsp;&nbsp;<a href='{$record->url('edit')->csrf()}' title='{lang="edit"}'>{lang="edit"}</a>
    {{endif}}
    {{if !\IPS\Member::loggedIn()->group['gbw_no_report'] }}
        &nbsp;&nbsp;<a href='{$record->url('report')}' data-ipsDialog data-ipsDialog-size='medium' data-ipsDialog-title="{lang="content_record_report" sprintf="$record::database()->recordWord( 1, TRUE )"}" data-ipsDialog-remoteSubmit data-ipsDialog-flashMessage="{lang="report_submit_success"}" title="{lang="content_record_report" sprintf="$record::database()->recordWord( 1, TRUE )"}">{lang="content_record_report" sprintf="$record::database()->recordWord( 1, TRUE )"}</a>
    {{endif}}
    {{if $record->canManageRevisions()}}
        &nbsp;&nbsp;<a href='{$record->url('revisions')}' title="{lang="content_view_revisions"}">{lang="content_view_revisions"}</a>
    {{endif}}
</article>
</div>
<hr class='ipsHr'>

<div class='ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top'>
    <div class="ipsGrid_span6 ipsType_left ipsPager_prev">
        {{if $record::database()->use_categories}}
            <a href="{$record->container()->url()}" title="{lang="cms_back_to_category_with_title" sprintf="$record->container()->_title"}" rel="up">
                <span class="ipsPager_type">{lang="cms_back_to_category" sprintf="$record::database()->recordWord( 2 )"}</span>
                <span class="ipsPager_title ipsType_light ipsTruncate ipsTruncate_line">{lang="$record->container()->_title"}</span>
            </a>
        {{else}}
            {{$page = \IPS\cms\Pages\Page::$currentPage;}}
            <a href="{$page->url()}" title="{lang="cms_back_to_category_with_title" sprintf="$page->_title"}" rel="up">
                <span class="ipsPager_type">{lang="cms_back_to_category" sprintf="$record::database()->recordWord( 2 )"}</span>
                <span class="ipsPager_title ipsType_light ipsTruncate ipsTruncate_line">{$page->_title}</span>
            </a>
        {{endif}}
    </div>
    {{if $nextUnread !== NULL}}
        <div class='ipsGrid_span6 ipsType_right ipsPager_next'>
            <a href="{$nextUnread->url()->setQueryString( array( 'do' => 'getNewComment' ) )}" title='{lang="cms_view_next_unread_title" sprintf="$record::database()->recordWord( 1 )"}'>
                <span class="ipsPager_type">{lang="cms_next_unread_title" sprintf="$record::database()->recordWord( 1 )"}</span>
                <span class="ipsPager_title ipsType_light ipsTruncate ipsTruncate_line">{$nextUnread->mapped('title')}</span>
            </a>
        </div>
    {{endif}}
</div>

<br>
{{if $commentsAndReviews}}
    <a id="replies"></a>
    <h2 class='ipsType_sectionTitle ipsType_reset'>{lang="user_feedback"}</h2>
    {$commentsAndReviews|raw}
{{endif}}

<br>
{{if $updateForm}}
    <div class='ipsAreaBackground_light ipsPad ipsResponsive_hideDesktop'>
        <h2 class='ipsType_sectionHead'>{lang="cms_front_update_fields" sprintf="$record::database()->recordWord( 1 )"}</h2>
        <ul class='ipsForm ipsForm_vertical'>
            {$updateForm|raw}
        </ul>
    </div>
{{endif}}
<!--jquery countdown plugin-->
<script type="text/javascript">
$('#cw_dateCount').countdown('{$record->customFieldDisplayByKey('cw_date', 'display')|raw}')
    .on('update.countdown', function(event) {
        $(this).html(event.strftime('' +
            '<span class="cw_d-time">%D<span class="cw_d-text"> day%!d</span></span> ' +
            '<span class="cw_d-time">%H<span class="cw_d-text"> ч</span></span> ' +
            '<span class="cw_d-time">%M<span class="cw_d-text"> мин</span></span> ' +
            '<span class="cw_d-time">%S<span class="cw_d-text"> сек</span></span> '));
    })
    .on('finish.countdown', function(event) {
        $(this).html('Live!')
            .parent().addClass('disabled');
    });
</script>

далее шаблон recordRow и туда копируй

Спойлер

{{$rowIds = array();}}
{{foreach $rows as $row}}
    {{$idField = $row::$databaseColumnId;}}
    {{$rowIds[] = $row->$idField;}}
{{endforeach}}
{{$iposted = ( $table AND method_exists( $table, 'container' ) AND $table->container() !== NULL ) ? $table->container()->contentPostedIn( null, $rowIds ) : array();}}
{{foreach $rows as $row}}
    {{$idField = $row::$databaseColumnId;}}
{{$team = $row->customFieldDisplayByKey('cw_teamscores', 'display');}}{{$team = preg_replace('/\D/', '', $team);}}{{$opponent = $row->customFieldDisplayByKey('cw_opponentscores', 'display');}}{{$opponent = preg_replace('/\D/', '', $opponent);}}{{$status = $row->customFieldDisplayByKey('cw_status', 'display');}}
    <li class="ipsGrid_span3  ipsDataItem {{if $row->unread()}}ipsDataItem_unread{{endif}} {{if method_exists( $row, 'tableClass' ) && $row->tableClass()}}ipsDataItem_{$row->tableClass()}{{endif}} {{if $row->hidden()}}ipsModerated{{endif}}" data-rowID='{$row->$idField}'>
        <div class="cw_Block {{if ($status == 'Предстоящий')}}cw_upcoming{{elseif ($status == 'Закончился')}}cs_finished{{endif}}">
            {{if $table and $table->canModerate()}}
                <div class='cw_modCheck'>
                    <span class='ipsCustomInput'>
                        <input type='checkbox' data-role='moderation' name="moderate[{$row->$idField}]" data-actions="{expression="implode( ' ', $table->multimodActions( $row ) )"}" data-state='{{if $row->tableStates()}}{$row->tableStates()}{{endif}}'>
                        <span></span>
                    </span>
                </div>
            {{endif}}
        <div class="cw_teamWrap">
            <div class="cw_teamsLogo">
                <div class="cw_Team">
                    {$row->customFieldDisplayByKey('cw_teamlogo', 'display')|raw}
                </div>
                <div class="cw_teamOpponent">
                    {$row->customFieldDisplayByKey('cw_opponentlogo', 'display')|raw}
                </div>
            </div>
            <div class="cw_teamsName">
                <div class="cw_Team">
                      <div class="cw_teamName">{$row->customFieldDisplayByKey('cw_teamname', 'display')|raw}</div>
                </div>
                  <div class="cw_VS">
                      {{if (!empty($team . $opponent)) && ($status == 'Закончился')}}
                    <span class="cw_teamScores{{if ($team > $opponent)}} win{{elseif ($team < $opponent)}} lose{{endif}}">{{if ( !empty( $team ) ) }}{$team}{{else}}0{{endif}}</span>
                  {{endif}}
                  <span class="vs_Text">VS</span>
                {{if (!empty( $team . $opponent)) && ($status == 'Закончился')}}
                    <span class="cw_opponentScores{{if ($opponent > $team)}} win{{elseif ($opponent < $team)}} lose{{endif}}">{{if (!empty( $opponent)) }}{$opponent}{{else}}0{{endif}}</span>  
                  {{endif}}
                  </div>
                <div class="cw_teamOpponent">
                    <div class="cw_teamName">{$row->customFieldDisplayByKey('cw_opponentname', 'display')|raw}</div>
                </div>
              </div>
              <div class="cw_infoWrap">
                <div class="cw_info">
                      <span>Статус:</span>
                      <span class="cw_status {{if ($status == 'Предстоящий')}}cw_upcoming{{elseif ($status == 'Закончился')}}cs_finished{{endif}}">{$row->customFieldDisplayByKey('cw_status', 'display')|raw}</span>
                  </div>
                <div class="cw_info">
                      <span>Игра:</span>
                      <span class="cw_game">{$row->customFieldDisplayByKey('cw_game', 'display')|raw}</span>
                  </div>
                <div class="cw_info">
                      <span>Тип:</span>
                      <span class="cw_type">{$row->customFieldDisplayByKey('cw_type', 'display')|raw}</span>
                  </div>
                <div class="cw_info">
                      <span>Дата:</span>
                      <span class="cw_date">{$row->customFieldDisplayByKey('cw_date', 'display')|raw}</span>
                  </div>
              </div>
            <h4 class='cw_recordTitle ipsDataItem_title ipsType_break'>
                {{if member.member_id}}
                    {{if $row->unread()}}
                        <a href='{$row->url( 'getNewComment' )}' title='{lang="first_unread_post"}' data-ipsTooltip>
                            <span class='ipsItemStatus'><i class="fa {{if in_array( $row->$idField, $iposted )}}fa-star{{else}}fa-circle{{endif}}"></i></span>
                        </a>
                    {{else}}
                        {{if in_array( $row->$idField, $iposted )}}
                            <span class='ipsItemStatus ipsItemStatus_read ipsItemStatus_posted'><i class="fa fa-star"></i></span>
                        {{else}}
                            &nbsp;
                        {{endif}}
                    {{endif}}
                {{endif}}
                <a href='{$row->url()}'>
                {{if $row->_title}}{$row->_title}{{else}}<em class="ipsType_light">{lang="content_deleted"}</em>{{endif}}
                </a>
                  <span class="cw_publishDate">{datetime="$row->_publishDate"}</span>
            </h4>
        </div>
    </div>
</li>
{{endforeach}}

само собой всё сохраняешь и смотришь. Вроде бы всё работает.

Ссылка на комментарий
Поделиться на другие сайты

Не помогло, всё же думаю из за версии не срабатывает. Тоже поставил на демо 4.2 там всё норм.

Изменились только цвета ну и дата появилась, спасибо за старание)

1.png

Ссылка на комментарий
Поделиться на другие сайты

у тебя на скрине матч предстоящий, у него не может быть счёта. Когда ты в шестерёнке выставишь матч как закончившийся и поставишь счёт матча, тогда появятся числа.

Ссылка на комментарий
Поделиться на другие сайты

Даже так не помогло

25 минут назад, rustav сказал:

у тебя на скрине матч предстоящий, у него не может быть счёта. Когда ты в шестерёнке выставишь матч как закончившийся и поставишь счёт матча, тогда появятся числа.

оО заработало спасибо огромное тебе

Ссылка на комментарий
Поделиться на другие сайты

странно, время добавил в поле даты. Но таймер так и не запускает. Как на инглиш версии, так и на русской.

Ссылка на комментарий
Поделиться на другие сайты

Но на демо всё работает

 

Ссылка на комментарий
Поделиться на другие сайты

wasder12, на демо время показывает только, у меня тоже. Но вот в плане обратного отсчёта всё гибло

Ссылка на комментарий
Поделиться на другие сайты

2 минуты назад, rustav сказал:

wasder12, на демо время показывает только, у меня тоже. Но вот в плане обратного отчёта всё гибло

скажи как время ещё поставить?

Отсчёт та зачем? Эта же кв там главное во сколько.

Ссылка на комментарий
Поделиться на другие сайты

в поле базы "дата" поставь галочку на время

Скрипт отвечающий за таймер

Спойлер

<script type="text/javascript">
$('#cw_BdateCount').countdown('{$record->customFieldDisplayByKey('cw_date', 'display')|raw}')
    .on('update.countdown', function(event) {
        $(this).html(event.strftime('' +
            '<span class="cw_d-time">%D<span class="cw_d-text"> дн</span></span> ' +
            '<span class="cw_d-time">%H<span class="cw_d-text"> ч</span></span> ' +
            '<span class="cw_d-time">%M<span class="cw_d-text"> мин</span></span> ' +
            '<span class="cw_d-time">%S<span class="cw_d-text"> сек</span></span> '));
    })
    .on('finish.countdown', function(event) {
        $(this).html('Live!')
            .parent().addClass('disabled');
    });
</script>

но он не работает почему-то

на скринах видно как идёт отсчёт, сколько осталось времени. Хочу что бы работало)

Ссылка на комментарий
Поделиться на другие сайты

wasder12,  у меня так 

Спойлер

00.png

видишь бегунок "время"?

Ссылка на комментарий
Поделиться на другие сайты

wasder12, у меня и на 4.2 и на 4.1.9 такой бегунок есть

Ссылка на комментарий
Поделиться на другие сайты

  • 1 год спустя...

Есть у кого-нибудь последняя версия?

Ссылка на комментарий
Поделиться на другие сайты

  • 2 года спустя...

Где можно скачать на ips 4 4 или 4 3

Ссылка на комментарий
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

  • Последние посетители   0 пользователей онлайн

    • Ни одного зарегистрированного пользователя не просматривает данную страницу
×
×
  • Создать...