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

BoardIndextemplated

найти: 

<td class='col_c_stats ipsType_small'>
													<ul>
														<li><strong>{$this->lang->words['topics']}</strong> {$forum_data['topics']}</li>
														<li><strong>{$this->lang->words['replies']}</strong> {$forum_data['posts']}</li>
													</ul>
												</td>

заменить на:

<td class='col_c_stats ipsType_small'>
													<ul>
														<li><strong>{$forum_data['topics']}</strong> {$this->lang->words['topics']}</li>
														<li><strong>{$forum_data['posts']}</strong> {$this->lang->words['replies']}</li>
													</ul>
												</td>

 

  • Author

Не могу найти, вот сам плагин который выводит эту статистику, помогите исправить это. спасибо

 

<?xml version="1.0" encoding="UTF-8"?>
<plugin name="Number of topics" version_long="10000" version_human="1.0.0" author="eCig-forum.ru team" website="https://eCig-forum.ru" update_check=""><hooks><hook type="S" class="\IPS\Theme\class_forums_front_index" filename="numberoftopics"><![CDATA[//<?php

/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
    exit;
}

class hook343 extends _HOOK_CLASS_
{

/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
 return array_merge_recursive( array (
  'forumRow' => 
  array (
    0 => 
    array (
      'selector' => 'li.ipsDataItem.ipsDataItem_responsivePhoto.ipsClearfix > div.ipsDataItem_stats.ipsDataItem_statsLarge',
      'type' => 'replace',
      'content' => '            <div class="ipsDataItem_stats eCig_topics_type">
                {{if $lastPost}}
                <dl>
                {{$countSubTopics = 0;}}
                {{foreach $forum->children() as $subforum}}
                {{$countSubTopics += $subforum->topics;}}
                {{endforeach}}
                {{$countTopics = $forum->topics + $countSubTopics;}}
                <dt class="ipsDataItem_stats_type"><span class="ipsType_light">{lang="eCig_topics"}</span> <span class="eCig_topics">{number="$countTopics"}</span></dt>
                {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}}
                <dt class="ipsDataItem_stats_type"><span class="ipsType_light">{lang="eCig_posts"}</span> <span class="eCig_topics">{number="$count"}</span></dt>                        
                </dl>
                {{endif}}
                {{if \IPS\forums\Topic::modPermission( \'unhide\', NULL, $forum ) AND $unapprovedContent = $forum->unapprovedContentRecursive() and ( $unapprovedContent[\'topics\'] OR $unapprovedContent[\'posts\'] )}}
                    <strong class=\'ipsType_warning ipsType_medium\'>
                        <i class=\'fa fa-warning\'></i>
                        {{if $unapprovedContent[\'topics\']}}
                            <a href=\'{$forum->url()->setQueryString( array( \'advanced_search_submitted\' => 1, \'topic_type\' => \'queued_topics\' ) )->csrf()}\' data-ipsTooltip title=\'{lang="queued_topics_badge" pluralize="$unapprovedContent[\'topics\']"}\' class=\'ipsType_blendLinks\'>{$unapprovedContent[\'topics\']}</a>
                        {{else}}
                            <span class=\'ipsType_light\'>0</span>
                        {{endif}}
                        /
                        {{if $unapprovedContent[\'posts\']}}
                            <a href=\'{$forum->url()->setQueryString( array( \'advanced_search_submitted\' => 1, \'topic_type\' => \'queued_posts\' ) )->csrf()}\' data-ipsTooltip title=\'{lang="queued_posts_badge" pluralize="$unapprovedContent[\'posts\']"}\' class=\'ipsType_blendLinks\'>{$unapprovedContent[\'posts\']}</a>
                        {{else}}
                            <span class=\'ipsType_light\'>0</span>
                        {{endif}}
                    </strong>
                {{endif}}
            </div>
',
    ),
  ),
), parent::hookData() );
}
/* End Hook Data */


}
]]></hook></hooks><htmlFiles/><cssFiles><css filename="numberoftopics.css">LmVDaWdfdG9waWNzIHsKICAgIGZvbnQtc2l6ZTogMTVweDsKfQ==</css></cssFiles><jsFiles/><resourcesFiles/><lang><word key="eCig_topics" js="0">Topics:</word><word key="eCig_posts" js="0">Posts:</word></lang><versions/></plugin>
 

 

<dt class="ipsDataItem_stats_type"><span class="ipsType_light">{lang="eCig_topics"}</span> <span class="eCig_topics">{number="$countTopics"}</span></dt>
                {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}}
                <dt class="ipsDataItem_stats_type"><span class="ipsType_light">{lang="eCig_posts"}</span> <span class="eCig_topics">{number="$count"}</span></dt>    

заменить на:

<dt class="ipsDataItem_stats_type"><span class="ipsType_light"></span>{number="$countTopics"} <span class="eCig_topics">{lang="eCig_topics"}</span></dt>
                {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}}
                <dt class="ipsDataItem_stats_type"><span class="ipsType_light"></span>{number="$count"} <span class="eCig_topics">{lang="eCig_posts"}</span></dt>    

 

двоеточие убирайте в языках

либо:

<lang><word key="eCig_topics" js="0">Topics:</word><word key="eCig_posts" js="0">Posts:</word></lang>

заменить:

<lang><word key="eCig_topics" js="0">Topics</word><word key="eCig_posts" js="0">Posts</word></lang>

 

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.