Webboard

Pełna wersja: Nie dziala reputation system !
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Stron: 1 2
wersja skryptu MyBB: 1.8.3
adres forum: http://rapstage.24tm.pl/forum/
na czym polega problem (screen, opis, komunikaty):

nie działa ani button "oceń użytkownika" ani w profilu odnośnik "oceń", podmienialem tez plik reputation.php od wersji mybb 1.6 i jest to samo. w kodzie nie mogę dopatrzyc sie błędu :/

konto testowe:
Login: Test1
Hasło: Test11

Reputation addlink
Kod:
<div class="float_right" style="padding-bottom: 4px;"><a href="javascript:MyBB.reputation({$user['uid']});" class="button rate_user_button"><span>{$lang->rate_user}</span></a></div>
Reputation add
Kod:
<div class="modal">
    <div style="overflow-y: auto; max-height: 400px;" class="modal_{$user['uid']}_{$mybb->input['pid']}">
      <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    <tr>
        <td class="trow1" style="padding: 20px">
            <strong>{$vote_title}</strong><br />{$post_rep_info}<br />
          <form action="reputation.php" method="post" class="reputation_{$user['uid']}_{$mybb->input['pid']}" onsubmit="javascript: return MyBB.submitReputation({$user['uid']}, {$mybb->input['pid']});">
                <input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
                <input type="hidden" name="action" value="do_add" />
                <input type="hidden" name="uid" value="{$user['uid']}" />
                <input type="hidden" name="pid" value="{$mybb->input['pid']}" />
                <input type="hidden" name="rid" value="{$rid}" />
                <input type="hidden" name="nomodal" value="1" />
                <select name="reputation" id="reputation">
                    {$positive_power}
                    {$neutral_power}
                    {$negative_power}
                </select>
                <br /><br />
                <span class="smalltext">{$lang->user_comments}</span>
                <br />
                <input type="text" class="textbox" name="comments" size="35" maxlength="250" value="{$comments}" style="width: 95%" />
                <br /><br />
                <div style="text-align: center;">
                    <input type="submit" class="button" value="{$vote_button}" />
                    {$delete_button}
                </div>
            </form>
        </td>
    </tr>
</table>
  </div>
</div>
Reputation
Kod:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->reputation_report}</title>
{$headerinclude}
<script type="text/javascript">
<!--
    var delete_reputation_confirm = "{$lang->delete_reputation_confirm}";
// -->
</script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1800"></script>
</head>
<body>
{$header}
{$add_reputation}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder clear">
<tr>
    <td class="thead"><strong>{$lang->reputation_report}</strong></td>
</tr>
<tr>
    <td class="tcat"><strong>{$lang->summary}</strong></td>
</tr>
<tr>
    <td class="trow1">
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td>
                <span class="largetext"><strong>{$username}</strong></span><br />
                <span class="smalltext">
                    ({$usertitle})<br />
                    <br />
                    <strong>{$lang->total_reputation}:</strong> <span class="repbox {$total_class}">{$user['reputation']}</span><br /><br />
                    <strong>{$lang->reputation_members} {$rep_members}</strong><br />
                    <strong>{$lang->reputation_posts} {$rep_posts}</strong>
                </span>
            </td>
            <td align="right" style="width: 300px;">
                    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder trow2">
                        <tr>
                            <td>&nbsp;</td>
                            <td><span class="smalltext reputation_positive">{$lang->positive_count}</span></td>
                            <td><span class="smalltext reputation_neutral">{$lang->neutral_count}</span></td>
                            <td><span class="smalltext reputation_negative">{$lang->negative_count}</span></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;"><span class="smalltext">{$lang->last_week}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$positive_week}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$neutral_week}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$negative_week}</span></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;"><span class="smalltext">{$lang->last_month}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$positive_month}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$neutral_month}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$negative_month}</span></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;"><span class="smalltext">{$lang->last_6months}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$positive_6months}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$neutral_6months}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$negative_6months}</span></td>
                        </tr>
                        <tr>
                            <td style="text-align: right;"><span class="smalltext">{$lang->all_time}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$positive_count}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$neutral_count}</span></td>
                            <td style="text-align: center;"><span class="smalltext">{$negative_count}</span></td>
                        </tr>
                    </table>
            </td>
        </tr>
    </table>
    </td>
</tr>
<tr>
    <td class="tcat"><strong>{$lang->comments}</strong></td>
</tr>
{$reputation_votes}
<tr>
    <td class="trow1" align="right">
    <form action="reputation.php" method="get">
        <input type="hidden" name="uid" value="{$user['uid']}" />
        <select name="show">
            <option value="all" {$show_selected['all']}>{$lang->show_all}</option>
            <option value="positive" {$show_selected['positive']}>{$lang->show_positive}</option>
            <option value="neutral" {$show_selected['neutral']}>{$lang->show_neutral}</option>
            <option value="negative" {$show_selected['negative']}>{$lang->show_negative}</option>
        </select>
        <select name="sort">
            <option value="dateline" {$sort_selected['last_updated']}>{$lang->sort_updated}</option>
            <option value="username" {$sort_selected['username']}>{$lang->sort_username}</option>
        </select>
        {$gobutton}
    </form>
    </td>
</tr>
</table>
{$multipage}
{$footer}
</body>
</html>
headerinclude
Kod:
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<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->asset_url}/jscripts/jquery.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1800"></script>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
{$stylesheets}
<script type="text/javascript">
<!--
    lang.unknown_error = "{$lang->unknown_error}";

    lang.select2_match = "{$lang->select2_match}";
    lang.select2_matches = "{$lang->select2_matches}";
    lang.select2_nomatches = "{$lang->select2_nomatches}";
    lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
    lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
    lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
    lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
    lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
    lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
    lang.select2_loadmore = "{$lang->select2_loadmore}";
    lang.select2_searching = "{$lang->select2_searching}";

    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 rootpath = "{$mybb->settings['bburl']}";
    var imagepath = "{$theme['imgdir']}";
      var yes_confirm = "{$lang->yes}";
    var no_confirm = "{$lang->no}";
    var MyBBEditor = null;
    var spinner_image = "{$theme['imgdir']}/spinner.gif";
    var spinner = "<img src='" + spinner_image +"' alt='' />";
// -->
</script>


<script type="text/javascript">

    $(function(){

    $("#wysuwane").css("left","-210px");

$("#wysuwane").hover(
  function () {
    $("#wysuwane").animate({left: "0px"}, 1000 );
        $(this).addClass("zamknij");
  },
  function () {
    $("#wysuwane").animate({left: "-210px"}, 1000 );
        $(this).removeClass("zamknij");
  }
);
});
    </script>
<script>
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0)
{
    var _interval = window.setInterval(function ()
    {
        var autofills = $('input:-webkit-autofill');
        if (autofills.length > 0)
        {
            window.clearInterval(_interval); // stop polling
            autofills.each(function()
            {
                var clone = $(this).clone(true, true);
                $(this).after(clone).remove();
            });
        }
    }, 20);
}
</script>



<script type="text/javascript">
<!--
    lang.unknown_error = "{$lang->unknown_error}";

    lang.select2_match = "{$lang->select2_match}";
    lang.select2_matches = "{$lang->select2_matches}";
    lang.select2_nomatches = "{$lang->select2_nomatches}";
    lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
    lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
    lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
    lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
    lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
    lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
    lang.select2_loadmore = "{$lang->select2_loadmore}";
    lang.select2_searching = "{$lang->select2_searching}";

    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 rootpath = "{$mybb->settings['bburl']}";
    var imagepath = "{$theme['imgdir']}";
      var yes_confirm = "{$lang->yes}";
    var no_confirm = "{$lang->no}";
    var MyBBEditor = null;
    var spinner_image = "{$theme['imgdir']}/spinner.gif";
    var spinner = "<img src='" + spinner_image +"' alt='' />";
// -->
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
popraw headerinclude
masz zdublowane linie
usun
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
plik z 1.6 do 1.8 po co?


// tel
u znajomego pomoglo.

nie widze zeby bylo cos zdublowane.

to jest odnosnik od shoutboxa coś

usunalem i to samo.
na http://rapstage.24tm.pl/forum/
nadal widzę
Kod:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
w header include
dodalem to znow bo po usunieciu nic to nie dalo... a to jest od SB i nie jest zdublowane.
skoro wszystko wiesz to po co zwracasz sie z prosbą o pomoc?
w mybb 1.8 nie wolno ladowac zdalnych bibliotek jq bo ona jest w silniku usun to i pokaz headerinclude
czy ja mowie ze wszystko wiem? wgralem styl do 1.8.3, zainstalowalem shoutboxa zgodnie z instrukcją w której bylo napisane aby wkleić to do headerinclude i tak zrobilem, nic wiecej. A ty skoro nie potrafisz zrozumiec ze usuniecie tego NIC NIE DAJE w sprawie reputacji to po co piszesz bezsensowne posty nic nie pomagając? nie zrozumiales czytajac raz to przeczytaj drugi raz.
U mnie też system reputacji nie działa czy z pozycji dodaj repe czy z pozycji oceń. Headerinclude ie był zmieniany ani tez nie bły dodawane zdalne biblioteki , więc problem tkwi biblio wbudowanego scryptu. Dodatkowo powiem że na operze jeśli klikam na dodaj punkt robi sie bialy scren ....porażka
drażni mnie takie coś
mowiąc Ci zrób coś to Ty i tak robisz coś innego, jak Ci pomó?


Kod:
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<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->asset_url}/jscripts/jquery.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1800"></script>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
{$stylesheets}
<script type="text/javascript">
<!--
lang.unknown_error = "{$lang->unknown_error}";

lang.select2_match = "{$lang->select2_match}";
lang.select2_matches = "{$lang->select2_matches}";
lang.select2_nomatches = "{$lang->select2_nomatches}";
lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
lang.select2_loadmore = "{$lang->select2_loadmore}";
lang.select2_searching = "{$lang->select2_searching}";

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 rootpath = "{$mybb->settings['bburl']}";
var imagepath = "{$theme['imgdir']}";
var yes_confirm = "{$lang->yes}";
var no_confirm = "{$lang->no}";
var MyBBEditor = null;
var spinner_image = "{$theme['imgdir']}/spinner.gif";
var spinner = "<img src='" + spinner_image +"' alt='' />";
// -->
</script>


<script type="text/javascript">

$(function(){

$("#wysuwane").css("left","-210px");

$("#wysuwane").hover(
function () {
$("#wysuwane").animate({left: "0px"}, 1000 );
$(this).addClass("zamknij");
},
function () {
$("#wysuwane").animate({left: "-210px"}, 1000 );
$(this).removeClass("zamknij");
}
);
});
</script>
<script>
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0)
{
var _interval = window.setInterval(function ()
{
var autofills = $('input:-webkit-autofill');
if (autofills.length > 0)
{
window.clearInterval(_interval); // stop polling
autofills.each(function()
{
var clone = $(this).clone(true, true);
$(this).after(clone).remove();
});
}
}, 20);
}
</script>

NADPISZ headerrinclude, jeśli sie nie zostosujesz więcej nie odpowiem w tym temacie bo nie bedzie to mialo sensu
Proo napisał(a):zainstalowalem shoutboxa zgodnie z instrukcją w której bylo napisane aby wkleić to do headerinclude i tak zrobilem, nic wiecej.
No to zainstalowałeś shoutuboxa przeznaczonego na wersję 1.6. https://webboard.pl/thread-32763.html nie ma tutaj nigdzie nic o doklejaniu zewnętrznego jQuery.
Proo napisał(a):A ty skoro nie potrafisz zrozumiec ze usuniecie tego NIC NIE DAJE w sprawie reputacji to po co piszesz bezsensowne posty nic nie pomagając?
Zamiast dążyć do rozwiązania problemy to lepiej się cofać. W taki sposób do niczego nie dojdziesz. "bo bez tego też nie działa", jeżeli ktoś zwrócił uwagę na dany element to pewnie jest z nim coś nie tak. Ale niektórzy i tak wiedzą lepiej mimo, że zwracają się o pomoc.

LikeLoveHate

Przeczytaj cały wątek autora odnoście pluginu DVZ. Tam jest gdzieś napisane, że od MyBB w wersji 1.8.x nie trzeba wrzucać zewnętrznej biblioteki jQ. I tak jak napisał Supryk, to może być przyczyną niedziałania.

Poza tym, gdy przekroczysz magiczną liczbę userów, to forum będzie siadać, bo przekroczysz CPU. Zmień hosting choćby na hostingera.
Nadal wszystke wyżej wymienione posty nie mają nic wspólnego z tematem wątku.
Proo napisał(a):Nadal wszystke wyżej wymienione posty nie mają nic wspólnego z tematem wątku.

...

[Obrazek: vo0qn8q.png]
usunałem. Czujesz sie uszczesliwiony? reputacja dalej nie dziala tak jak mowilem a ty dalej sie upierasz ze musze to usunac zeby dzialala. Napiasalem problem o reputacje a ty sie przysrałeś do kodu który nie ma nic wspolnego z problemem.
Proo napisał(a):przysrałeś do kodu który nie ma nic wspolnego z problemem


hahahha
a skąd ty mozesz to wiedziec? No powiedz mi skąd? taki mądey czlowiek, webmastering w malym palcu a ma problemy - ironia losu

okienko od logowania zaczęło działać

teraz zrob tak

pokaz teraz szablon showthread
Stron: 1 2