Isis
23.10.2007, 15:07
Много видел я тем здесь о том "Как сделать репутацию как на 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
Да
Да
Да
20
14) Шаблоны ( Если у вас нет ниже напсианных шаблонов, создайте их):
memberinfo_reputationbits
<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
$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
-------------------------
Найдите в этом шалоне код похожий на:
<div>
$vbphrase[posts]: $post[posts]
</div>-------
После этого добавьте
<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
$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
<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
В конец этого файла добавьте:
{
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
Сделал я этот хак и для Вас =)
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
Да
Да
Да
20
14) Шаблоны ( Если у вас нет ниже напсианных шаблонов, создайте их):
memberinfo_reputationbits
<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
$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
-------------------------
Найдите в этом шалоне код похожий на:
<div>
$vbphrase[posts]: $post[posts]
</div>-------
После этого добавьте
<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
$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
<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
В конец этого файла добавьте:
{
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