Webboard

Pełna wersja: Nie działa Moderacja Zbiorowa
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Stron: 1 2
wersja skryptu MyBB:1.6.6
adres forum:gamesoftware.tk
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

Witam chciałem użyć moderacji zbiorowej na moim forum. Wchodzę w dział np. Ogłoszenia. Widzę działy, zaznaczam do moderacji i klikam na dole aby zmienić z

Zamknij wątki

na

Usuń wątki

i gdy naciskam aby zmienić, przenosi mnie do tworzenia nowego tematu. O co chodzi ?
Poleciłbym na początek zaktualizowanie skryptu MyBB do najnowszej wersji, czyli do 1.6.12
ACP → Style i szablony → Szablony → Twój szablon → Widok działu - pokaż tutaj szablony, w których było coś zmieniane (kolor czcionki nazwy jest zielony).
Nic nie zmieniłem tak było.
Nie mówię, że akurat Ty coś zmieniałeś...

Pokaż te szablony.
forumdisplay_inlinemoderation

Kod PHP:
<script type="text/javascript" src="jscripts/inline_moderation.js?ver=1600"></script>
        <
form action="moderation.php" method="post">
<
input type="hidden" name="my_post_key" value="{$mybb->post_code}/>
<
input type="hidden" name="fid" value="{$fid}/>
<
input type="hidden" name="modtype" value="inlinethread" />
<
span class="smalltext"><strong>{$lang->inline_thread_moderation}</strong></span>
<
select name="action">
    <
option value="delayedmoderation">{$lang->delayed_moderation}</option>
    <
optgroup label="{$lang->standard_mod_tools}">
        <
option value="multiclosethreads" selected="selected">{$lang->close_threads}</option>
        <
option value="multiopenthreads">{$lang->open_threads}</option>
        <
option value="multistickthreads">{$lang->stick_threads}</option>
        <
option value="multiunstickthreads">{$lang->unstick_threads}</option>
        <
option value="multideletethreads">{$lang->delete_threads}</option>
        <
option value="multimovethreads">{$lang->move_threads}</option>
        <
option value="multiapprovethreads">{$lang->approve_threads}</option>
        <
option value="multiunapprovethreads">{$lang->unapprove_threads}</option>
    </
optgroup>
    {
$customthreadtools}
</
select>
<
input type="submit" class="button" name="go" value="{$lang->inline_go} ({$inlinecount})" id="inline_go" />&nbsp;
<
input type="button" onclick="javascript:inlineModeration.clearChecked();" value="{$lang->clear}class="button" />
</
form>
<
script type="text/javascript">
<!--
    var 
go_text "{$lang->inline_go}";
    var 
all_text "{$threadcount}";
    var 
inlineType "forum";
    var 
inlineId = {$fid};
// -->
</script>
<
br /> 

forumdisplay_newthread

Kod PHP:
<div style="margin-right: 10px;">
<
ul class='reply'>
<
li><a href="newthread.php?fid={$fid}">
<
img src="{$theme['imglangdir']}/newthread.png" 
</a>
</
li>
</
ul>
</
div

forumdisplay_subforums

Kod PHP:
<table border="0" cellspacing="0" cellpadding="4" class="tborder">
<
tr>
<
td class="thead" colspan="5" align="center"><strong>{$lang->sub_forums_in}</strong></td>
</
tr>
{
$forums}
</
table>
<
br /> 

forumdisplay_thread

Kod PHP:
<tr>
    <
td align="center" class="{$bgcolor}{$thread_type_class}width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}title="{$folder_label}/></td>
    <
td align="center" class="{$bgcolor}{$thread_type_class}width="2%">{$icon}</td>
    <
td class="{$bgcolor}{$thread_type_class}">
        {
$attachment_count}
        <
div>
            <
span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}class="{$inline_edit_class} {$new_class}id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
            <
div class="author smalltext">started by {$thread['profilelink']}</div>
        </
div>
    </
td>
    <
td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
    <
td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
    {
$rating}
    <
td class="{$bgcolor}{$thread_type_class}style="white-space: nowrap; text-align: right;">
        <
span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
        <
a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
    </
td>
{
$modbit}
</
tr


forumdisplay_thread_multipage

Kod PHP:
| <span class="smalltext">{$lang->pages}<span class="forumdisplay_thread_multipage"> {$threadpages}{$morelink}</span><span class="forumdisplay_thread_multipagelast"></span></span

forumdisplay_threadlist

Kod PHP:
<div class="float_left">
    {
$multipage}
</
div>
<
div class="float_right">
    {
$newthread}
</
div>
<
table border="0" cellspacing="0" cellpadding="4" class="tborder" style="clear: both;">
    <
tr>
        <
td class="thead" colspan="{$colspan}">
            <
div style="float: right;">
                <
span class="smalltext"><strong><a href="misc.php?action=markread&amp;fid={$fid}{$post_code_string}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;type=forum&amp;fid={$fid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong></span>
            </
div>
            <
div>
                <
strong>{$foruminfo['name']}</strong>
            </
div>
        </
td>
    </
tr>
    <
tr>
        <
td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
        <
td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']}</strong></span></td>
        <
td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']}</strong></span></td>
        {
$ratingcol}
        <
td class="tcat" align="right" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
        {
$inlinemodcol}
    </
tr>
    {
$selectall}
    {
$announcementlist}
    {
$threads}
    <
tr>
        <
td class="tfoot" align="right" colspan="{$colspan}">
            <
form action="forumdisplay.php" method="get">
                <
input type="hidden" name="selectall" value="{$allselected}/>
                <
input type="hidden" name="fid" value="{$fid}/>
                <
select name="sortby">
                    <
option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
                    <
option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
                    <
option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
                    <
option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
                    {
$ratingsort}
                    <
option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
                    <
option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
                </
select>
                <
select name="order">
                    <
option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
                    <
option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
                </
select>
                <
select name="datecut">
                    <
option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
                    <
option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
                    <
option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
                    <
option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
                    <
option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
                    <
option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
                    <
option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
                    <
option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
                    <
option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
                </
select>
                {
$gobutton}
            </
form>
        </
td>
    </
tr>
</
table>
<
div class="float_left" style="margin-top: 16px;">
    {
$multipage}
</
div>
<
div class="float_right" style="margin-top: 16px;">
    {
$newthread}
</
div>
<
br style="clear: both;" />
<
br />
<
div class="float_left">
    <
div class="float_left">
        <
dl class="thread_legend smalltext">
            <
dd><img src="{$theme['imgdir']}/newfolder.gif" alt="{$lang->new_thread}title="{$lang->new_thread}/> {$lang->new_thread}</dd>
            <
dd><img src="{$theme['imgdir']}/newhotfolder.gif" alt="{$lang->new_hot_thread}title="{$lang->new_hot_thread}/> {$lang->new_hot_thread}</dd>
            <
dd><img src="{$theme['imgdir']}/hotfolder.gif" alt="{$lang->hot_thread}title="{$lang->hot_thread}/> {$lang->hot_thread}</dd>
        </
dl>
    </
div>

    <
div class="float_left">
        <
dl class="thread_legend smalltext">
            <
dd><img src="{$theme['imgdir']}/folder.gif" alt="{$lang->no_new_thread}title="{$lang->no_new_thread}/> {$lang->no_new_thread}</dd>
            <
dd><img src="{$theme['imgdir']}/dot_folder.gif" alt="{$lang->posts_by_you}title="{$lang->posts_by_you}/> {$lang->posts_by_you}</dd>
            <
dd><img src="{$theme['imgdir']}/lockfolder.gif" alt="{$lang->locked_thread}title="{$lang->locked_thread}/> {$lang->locked_thread}</dd>
        </
dl>
    </
div>
    <
br style="clear: both" />
</
div>

<
div class="float_right" style="text-align: right;">
    {
$inlinemod}
    {
$searchforum}
    {
$forumjump}
</
div>
<
br style="clear: both" />
{
$inline_edit_js


forumdisplay_usersbrowsing

Kod PHP:
<span class="userbrowsing">{$lang->users_browsing_forum} {$onlinemembers}{$onlinesep}{$invisonline}{$onlinesep2}{$guestsonline}</a></span><br /> 


forumdisplay_threads_sep

Kod PHP:
<tr>

</
tr
Ogólnie masz trochę dziwnie, wykonaj to co podał SLAVOO.

Ja u siebie mam tak w forumdisplay_threadlist:
Kod PHP:
<div class="float_left">
    {
$multipage}
</
div>
<
br>
<
div class="float_right">
    {
$newthread}
</
div>
<
br>
<
table border="0" cellspacing="0" cellpadding="0" style="clear: both;width: 100%;">
<
tr>
        <
td class="thead belka_sorta" colspan="{$colspan}">
<
ul class="menuDzial_sortby">
<
li><{$lastpostACTIVEhref="{$sorturl}&amp;sortby=lastpost&order=desc&datecut=9999">Ostatnio zaktualizowane</a></li>
<
li><{$startACTIVEhref="{$sorturl}&amp;sortby=started&order=desc&datecut=9999">Data dodania</a></li>
<
li><{$odpACTIVEhref="{$sorturl}&amp;sortby=replies&order=desc&datecut=9999">Liczby odpowiedzi</a></li>
<
li><{$viewsACTIVEhref="{$sorturl}&amp;sortby=views&order=desc&datecut=9999">Liczby wyświetleń</a></strong></li>
</
ul>
{
$inlinemodcol}
        </
td>
</
tr>
</
table>
<
table border="0" cellspacing="0" cellpadding="0" class="border_forum" style="clear: both;">
    {
$threads}
</
table>
<
div class="float_left">
    {
$multipage}
</
div>
<
div class="float_right" style="margin-top: 4px;">
    {
$newthread}
</
div>
<
br style="clear: both;" />
<
br />

<
div class="float_right" style="text-align: right;">
    {
$inlinemod}
    {
$searchforum}
    {
$forumjump}
</
div>
<
br style="clear: both" />
{
$inline_edit_js
Wykonałem to co podał SLAVOO i nic. A teraz zauważyłem, że jak tematy są i gdy nacisnę tak po środku nie na tam gdzie pisze "ogłoszenie test". To też przenosi mnie do tworzenia nowego tematu.
Masz błąd w szablonie forumdisplay_newthread

<img nie jest zamknięte.

Wstaw zamiast tamtego:
Kod PHP:
<div style="margin-right: 10px;">
<
ul class='reply'>
<
li><a href="newthread.php?fid={$fid}">
<
img src="{$theme['imglangdir']}/newthread.png" />
</
a>
</
li>
</
ul>
</
div
Działa ale wcześniej przed tym co zrobiłem od poradnika SLAVOO, gdy zaznaczam wątki lub posty to tam gdzie pisze OK(0) nie zmienia mi sie to 0 na np. 1,2,3,4 itp.
Jak się nie zmienia to gdzieś jest konflikt jQuery
To co mam zrobić ?
Pokaż headerinclude.
Udało mi się zrobić to co napisał SLAVOO ale gdy wchodzę w profil to jest tak:

Forum info
Contact info
More options

Cały kod z tych tabel jest w jednej. Wtedy Moderacja zbiorowa działa poprawnie lecz profil już nie :/

Czysty kod bez edycji na, którym działa profil a nie działa Moderacja

Kod PHP:
{$stylesheets}
<
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="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/images/neonglow/js/neonglow.js"></script>
<
link rel="shortcut icon" href="{$mybb->settings['simple_favicon_img_path']}/>
<
script type="text/javascript">
<
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>
</
script
{
$newpmmsg}
<!-- 
Editor 'add video' button fix -->
<
style>
img[src="{$mybb->settings['bburl']}/jscripts/editor_themes/modern/images/television.gif"] {width16px !important;
height16px !important;
positionrelative;
top4px;
padding0px 3px;}
</
style


Kod edytowany nie działa zaznaczanie postów do Moderacji zbiorowej

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="https://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" src="{$mybb->settings['bburl']}/images/neonglow/js/neonglow.js"></script>
<
link rel="shortcut icon" href="{$mybb->settings['simple_favicon_img_path']}/>
<
script type="text/javascript">
<
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>
</
script
{
$newpmmsg}
<!-- 
Editor 'add video' button fix -->
<
style>
img[src="{$mybb->settings['bburl']}/jscripts/editor_themes/modern/images/television.gif"] {width16px !important;
height16px !important;
positionrelative;
top4px;
padding0px 3p 
Stron: 1 2