Webboard

Pełna wersja: minimalizowanie działów [-]
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: najnowsza
adres forum: omega9.asig.pl
na czym polega problem (screen, opis, komunikaty):

Witam.
Wytłumaczy ktoś dlaczego nie działają mi minimalizacje działów ?

oto kod minimalizacji w index_boardstats:
Cytat:<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
Wina jQuery. Zajrzyj do tego tematu: https://webboard.pl/thread-36416.html
nadal nie działa. To na 90% nie jest wina jQuery
W headerinclude:
Kod:
<script&nbsp;type="text/javascript">jQuery.noConflict();</script>
Cytat:<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script&nbsp;type="text/javascript">jQuery.noConflict();</script>
{$stylesheets}
<script type="text/javascript">
<!--
var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var cookiePrefix = "{$mybb->settings['cookieprefix']}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
var loading_text = '{$lang->ajax_loading}';
var saving_changes = '{$lang->saving_changes}';
var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
var my_post_key = "{$mybb->post_code}";
var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}

już to miałem zrobione...
Zamień na to:

Kod PHP:
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<
link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<
meta http-equiv="Content-Type" content="text/html; charset={$charset}/>
<
meta http-equiv="Content-Script-Type" content="text/javascript" />
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<
script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<
script type="text/javascript">jQuery.noConflict();</script>
{
$stylesheets}
<
script type="text/javascript">
<!--
var 
cookieDomain "{$mybb->settings['cookiedomain']}";
var 
cookiePath "{$mybb->settings['cookiepath']}";
var 
cookiePrefix "{$mybb->settings['cookieprefix']}";
var 
deleteevent_confirm "{$lang->deleteevent_confirm}";
var 
removeattach_confirm "{$lang->removeattach_confirm}";
var 
loading_text '{$lang->ajax_loading}';
var 
saving_changes '{$lang->saving_changes}';
var 
use_xmlhttprequest "{$mybb->settings['use_xmlhttprequest']}";
var 
my_post_key "{$mybb->post_code}";
var 
imagepath "{$theme['imgdir']}";
// -->
</script>
{
$newpmmsg

A jak nie działa to to:

Kod PHP:
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<
link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<
meta http-equiv="Content-Type" content="text/html; charset={$charset}/>
<
meta http-equiv="Content-Script-Type" content="text/javascript" />
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<
script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<
script type="text/javascript">jQuery.noConflict();</script>
{
$stylesheets}
<
script type="text/javascript">
<!--
var 
cookieDomain "{$mybb->settings['cookiedomain']}";
var 
cookiePath "{$mybb->settings['cookiepath']}";
var 
cookiePrefix "{$mybb->settings['cookieprefix']}";
var 
deleteevent_confirm "{$lang->deleteevent_confirm}";
var 
removeattach_confirm "{$lang->removeattach_confirm}";
var 
loading_text '{$lang->ajax_loading}';
var 
saving_changes '{$lang->saving_changes}';
var 
use_xmlhttprequest "{$mybb->settings['use_xmlhttprequest']}";
var 
my_post_key "{$mybb->post_code}";
var 
imagepath "{$theme['imgdir']}";
// -->
</script>
{
$newpmmsg
UWAGA ROZWIĄZAŁEM PROBLEM !!

kombinowałem z linkami do biblioteki jquery i znalazłem taki odnośnik:
Kod:
http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.0.min.js
OTO POPRAWNY KOD DO headerinclude:
Kod:
<link rel="alternate" type="application/rss+xml"
title="{$lang->latest_threads} (RSS 2.0)"
href="{$mybb->settings['bburl']}/syndication.php" />

<link rel="alternate" type="application/atom+xml"
title="{$lang->latest_threads} (Atom 1.0)"
href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />

<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />

<meta http-equiv="Content-Script-Type" content="text/javascript" />

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>

<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.0.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>

{$stylesheets}

<script type="text/javascript">

<!--

    var cookieDomain = "{$mybb->settings['cookiedomain']}";

    var cookiePath = "{$mybb->settings['cookiepath']}";

    var cookiePrefix = "{$mybb->settings['cookieprefix']}";

    var deleteevent_confirm = "{$lang->deleteevent_confirm}";

    var removeattach_confirm = "{$lang->removeattach_confirm}";

    var loading_text = '{$lang->ajax_loading}';

    var saving_changes = '{$lang->saving_changes}';

    var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";

    var my_post_key = "{$mybb->post_code}";

    var imagepath = "{$theme['imgdir']}";

// -->

</script>

{$newpmmsg}
Wielkie dzięki za nakierowanie mnie we właściwą drogę poszukiwań :)