27.04.2015, 21:37
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
Reputation add
Reputation
headerinclude
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>
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>
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> </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>
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>