форум vBSupport.ru > vBulletin > Old vB versions (3.0.x & 2.x.x) > vBulletin 3.6.x > Made in vBSupport.org 3.6
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
snoopi
Знаток
Thumbs up 31337 Reputation Hack
34

Много видел я тем здесь о том "Как сделать репутацию как на antichat.ru, xeka.ru)
Сделал я этот хак и для Вас =)


Описание: Показ и добавление репутации...смотрите пример =)
Автор хака: Isis aka snoopi
Пример хака: http://forum.xeka.ru/view_reputation.php?u=2

Установка:

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>
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">
<if condition="!$show['ajax']">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
<else />
<div align="$stylevar[left]">
</if>
        
        <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:
function view_reputation(userid)
{
    window.open("view_reputation.php?u=" + userid, "Reputation", "toolbar=no, scrollbars=yes, resizable=yes, width=600, height=341");
    return false;
}
Attached Files
File Type: rar RepHack for vB - [xeka.ru].rar (8.0 KB, 724 views)

Last edited by snoopi : 10-01-2008 at 01:18 PM.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Dragster
Знаток
 
Dragster's Avatar
Default
0

Дайте скринов, плиз, впадлу регаться на "примерочном" форуме...
 
 
iD
Специалист
 
iD's Avatar
Default
0

snoopi, думаю всё равно, что скрины бы не помешали )
 
 
VipeR
Private Person
Developer
 
VipeR's Avatar
Default
1

Quote:
Originally Posted by Dragster View Post
Дайте скринов, плиз, впадлу регаться на "примерочном" форуме...
Репутацию на ачате видели? Это оно и есть.
 
 
Lloyd Banks
Простоузер
Default
0

Эта та что циферками!???
 
 
iD
Специалист
 
iD's Avatar
Default
0

snoopi, после установки такой косяк:
когда в файле vbulletin_global.js добавляешь то что надо происходит следуюшее:
Хз как точно обьяснить в обшем пропадают меню, например которое выпадает при нажатии кнопки навигации (
в чём проблема?

Добавлено через 1 час 32 минуты
поставил.
но когда добавляешь или понижаешь репу.. то она не повышается и не понижается. т.к. даётся 0 баллов вместо +/- 1.. в кабинете пишет что сила 1 всё ок.

Last edited by iD : 10-23-2007 at 08:02 PM. Reason: Добавлено сообщение
 
 
snoopi
Знаток
Default
0

Упс..я строку забыл ...

В первом посте исправил последний код

Last edited by snoopi : 10-23-2007 at 11:59 PM.
 
 
iD
Специалист
 
iD's Avatar
Default
0

snoopi, ну всё равно репутация не пребавляется((
 
 
Cactus
Специалист
 
Cactus's Avatar
Default
1

репка добавлялась от силы репки 0,1,2,3,4,5, ну сколько баллов добавить... это ведь так работает?
 
 
iD
Специалист
 
iD's Avatar
Default
0

Cactus, вопрос ваше не понял? ))
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 05:47 PM.


Powered by vBulletin® Version 3.5.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...