Много видел я тем здесь о том "Как сделать репутацию как на antichat.ru, xeka.ru) Сделал я этот хак и для Вас =) Greetz to: Heaton Описание: Показ и добавление репутации...смотрите пример =) Автор хака: Isis aka snoopi Пример хака: http://www.xeka.ru Установка: 1) Установите продукты product-vrp.xml и product-repinfo_in_memberinfo.xml 2) Залейте файл view_reputation.php в папку с форумом 3) Настройка: Админка - Основные настройки - Репутация как в IPB Code: Да Да Да 20 1 4) Шаблоны ( Если у вас нет ниже напсианных шаблонов, создайте их): memberinfo_reputationbits Code: <tr> <td class="alt2" width="20"> <strong> $posneg </strong> </td> <td class="alt2" width="150"> <div class="smallfont"> <a href="showthread.php?$session[sessionurl]p=$reputation[postid]#post$reputation[postid]"> <strong>$reputation[title]</strong></a></strong> </div></td> <td class="alt2" width="80" nowrap="nowrap"><span class="smallfont">$reputation[dateline] <span class="time">$reputation[timeline]</span></span></td> <td class="alt2" width="80" nowrap="nowrap"><a href="member.php?$session[sessionurl]u=$reputation[whoadded]">$reputation[username]</a> </td> <td class="alt2" width="200"> <span ><if condition="$reputation[reason]==''">$vbphrase[repreason_no_comment]<else />$reputation[reason]</if></span> </td> </tr> reputation_info Code: $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - Репутация пользователя: $userinfo[username]</title> </head> <body> <if condition="$show[reputation] AND $vboptions[repinfo_onoff]"> $memberinfo_rg </if> <if condition="$show['reputation_given'] AND $vboptions[repinfo_given_onoff]"> </if> </body> </html> postbit_legacy ------------------------- Найдите в этом шалоне код похожий на: Code: <div> $vbphrase[posts]: $post[posts] </div> ------- После этого добавьте Code: <if condition="$show['reputation']"><div class="info"> Репутация: <a href="view_reputation.php?u=$post[userid]" onclick="return view_reputation($post[userid])" target="_blank" title="Посмотреть историю оценок репутации $post[username]"><b>$post[reputation]</b></a> <if condition="$show['reputationlink']"> <span class = "pagenav" id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><font color = "green">±</font></a></span> <if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if> </if> </div> </if> reputation_info Code: $stylevar[htmldoctype] $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - Репутация пользователя: $userinfo[username]</title> </head> <body> <if condition="$show[reputation] AND $vboptions[repinfo_onoff]"> $memberinfo_rg </if> <if condition="$show['reputation_given'] AND $vboptions[repinfo_given_onoff]"> </if> </body> </html> reputationbit Code: <tr> <td class="thead">$vbphrase[add_to_reputation]: <span style="font-weight:normal">$userinfo[username]</span></td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div <if condition="!$show['ajax']">style="width:$stylevar[formwidth]"</if> align="$stylevar[left]"> <fieldset class="fieldset"> <legend><phrase 1="$userinfo[username]">$vbphrase[what_do_you_think_of_xs_post]</phrase></lege nd> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td> <input type=hidden name="reputation" value="pos"> $repa </td> </tr> <tr> <td> $vbphrase[your_comments_on_this_post]:<br /> <input type="text" class="bginput" size="40" maxlength="250" name="reason" id="reason_$postid"/> </td> </tr> </table> </fieldset> </div> </div> <div style="margin-top:$stylevar[cellpadding]px"> <input type="hidden" name="do" value="addreputation" /> <input type="hidden" name="p" value="$postid" /> <input type="hidden" name="url" value="$url" /> <input type="submit" name="reputationsubmit" class="button" value="$vbphrase[add_to_reputation]" accesskey="s" /> </div> </td> </tr> Найдите файл vbulletin_global.js в папке clientscript В конец этого файла добавьте: Code: { window.open("view_reputation.php?u=" + userid, "Reputation", "toolbar=no, scrollbars=yes, resizable=yes, width=600, height=341"); return false; } http://rapidshare.com/files/64570815/RepHack_for_vB_-__xeka.ru_.rar
При редактировании шаблона reputationbit возникло вот что: Следующая ошибка произошла при попытке проверить шаблон: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/serv4/html/forum/includes/adminfunctions_template.php(3587) : eval()'d code on line 9 Вероятно, это вызвано неверно сформированным выражением. Очень рекомендуется исправить эту ошибку перед продолжением, но Вы можете продолжить как есть.
Очень странно... Делая на заказ этот хак..точнее я его просто дал..а админ форума делал его по описанию...так вот у него тоже была такая ошибка.. Он дал мне админку и я норм вставил шаблон....
PHP: <tr> <td class="thead">$vbphrase[add_to_reputation]: <span style="font-weight:normal">$userinfo[username]</span></td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div <if condition="!$show['ajax']">style="width:$stylevar[formwidth]"</if> align="$stylevar[left]"> <fieldset class="fieldset"> <legend><phrase 1="$userinfo[username]">$vbphrase[what_do_you_think_of_xs_post]</phrase></legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td> <input type=hidden name="reputation" value="pos"> $repa </td> </tr> <tr> <td> $vbphrase[your_comments_on_this_post]:<br /> <input type="text" class="bginput" size="40" maxlength="250" name="reason" id="reason_$postid"/> </td> </tr> </table> </fieldset> </div> </div> <div style="margin-top:$stylevar[cellpadding]px"> <input type="hidden" name="do" value="addreputation" /> <input type="hidden" name="p" value="$postid" /> <input type="hidden" name="url" value="$url" /> <input type="submit" name="reputationsubmit" class="button" value="$vbphrase[add_to_reputation]" accesskey="s" /> </div> </td> </tr>
а как сделать чтобы когда смотришь репутацию то она не на новой странице появлялась ,а как на ачате ?