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

Здравствуйте!

Случилась такая проблема,написали специальный скрипт который выводит онлайн серверов на форуме,но случилась такая проблема, при вставки вот этого кода:


<div id='st'>

<script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\"></script>

<script>

$(\"#st\").load(\"mod_stat/module.php\");

</script>

</div>

в globalTemplate сюда:

<!-- ::: MAIN CONTENT AREA ::: -->

<div id='content' class='clearfix'>

<!-- ::: NAVIGATION BREADCRUMBS ::: -->

<div id="forum_header_wow">

<div id="forum_header_inner_wow">

<div id="forum_shield_wow"></div>

<h2><center>Blackwing Lair Server</center></h2>

<div id='forum_info_breadcrumbs'>

<php>$this->did_first = 0;</php>

<if test="switchnavigation:|:!$this->settings['remove_forums_nav'] OR ipsRegistry::$current_application == 'forums'">

<li itemscope itemtype="__data-vocabula...org/Breadcrumb" <if test="!$this->did_first">class='first'</if>>

<a href='{parse url="act=idx" seotitle="false" base="public"}' itemprop="url">

<span itemprop="title">{$this->settings['board_name']}</span>

</a>

</li>

<if test="didfirstnav:|:$this->did_first=1"></if>

</if>

<foreach loop="navigation:$items['navigation'] as $idx => $data">

<li itemscope itemtype="__data-vocabula...org/Breadcrumb" <if test="!$this->did_first">class='first'</if>>

<if test="navigationlink:|:$data[1]"><a href='{parse url="{$data[1]}" base="$data[4]" seotitle="$data[2]" template="$data[3]"}' title='{$this->lang->words['nav_return_to']} {$data[0]}' itemprop="url"></if><span itemprop="title">{$data[0]}</span><if test="closenavigationlink:|:$data[1]"></a></if>

</li>

<if test="forsuredidfirstnav:|:$this->did_first=1"></if>

</foreach>

</div>

{parse template="quickSearch" group="global" params=""}

</div>

<div class='test'>

</div>

<script type=\"text/javascript\" src=\"https://ajax.googlea....js\"></script>

<script type=\"text/javascript\">

$(document).ready(function(){

$.ajax({

type:\"POST\",

url: \"mod_stat/module.php\",

data:{},

success: function(data){

$(\".test\").html(data);

}

});

});

</script>

</div>

Статистика появляется на сайте,но при заходе в подфорумы форум жестоко плывёт.

Статистика:

502bd67a454ec_.jpg

Что происходит с форумом:

502bd6cd7af49_.jpg

Получается что форум второй раз копируется когда заходишь в подфорум. В чём может быть проблема?

  • Author

А не подскажите как можно по-другому реализовать или сделать поддержку JQuery ?

А не подскажите как можно по-другому реализовать или сделать поддержку JQuery ?

Как по другому — не знаю.

Поддержку JQuery реализовать нельзя, IP.Board использует Prototype.

JS везде подгружается одинаково.

Я говорю, что JQuery нельзя, а без него ваш скрипт работать не будет, соответственно — вам нужно переписывать ваш скрипт под Prototype.

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.