ANTICHAT — форум по информационной безопасности, OSINT и технологиям
ANTICHAT — русскоязычное сообщество по безопасности, OSINT и программированию.
Форум ранее работал на доменах antichat.ru, antichat.com и antichat.club,
и теперь снова доступен на новом адресе —
forum.antichat.xyz.
Форум восстановлен и продолжает развитие: доступны архивные темы, добавляются новые обсуждения и материалы.
⚠️ Старые аккаунты восстановить невозможно — необходимо зарегистрироваться заново.
 |
|

30.05.2008, 21:02
|
|
Banned
Регистрация: 07.11.2007
Сообщений: 301
Провел на форуме: 3428344
Репутация:
595
|
|
Репутация в vBulletin
Вот когда заменил код для отображения репутации цифрами в memberlist_resultsbit (раздел пользователи), страничка стала отображаться не корректно. Скажите что не так в этом коде?
vBulletin V 3.6.10.
Код:
<tr align="center">
<td class="alt1Active" align="$stylevar[left]" id="u$userinfo[userid]">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
<if condition="$show['usertitlecol']"><div class="smallfont">$userinfo[usertitle]</div></if>
</td>
<if condition="$show['emailcol'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['emaillink']"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$userinfo[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/email.gif" alt="email.gif" title="<phrase 1="$userinfo[username]">$vbphrase[click_here_to_email_x]</phrase>" border="0" /></a></if> <if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&u=$userinfo[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></td></if>
<if condition="$show['imicons'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[icqicon] $userinfo[aimicon] $userinfo[msnicon] $userinfo[yahooicon] $userinfo[skypeicon]</td></if>
<if condition="$show['homepagecol'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['homepagelink']"><a href="$userinfo[homepage]" target="_blank"><img src="$stylevar[imgdir_button]/home.gif" alt="home.gif" title="<phrase 1="$userinfo[username]">$vbphrase[visit_xs_homepage]</phrase>" border="0" /></a><else /> </if></td></if>
<if condition="$show['searchcol'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['searchlink']"><a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/find.gif" alt="find.gif" title="<phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase>" border="0" /></a><else /> </if></td></if>
<if condition="$show['datejoinedcol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[datejoined]</td></if>
<if condition="$show['postscol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[posts]</td></if>
<if condition="$show['lastvisitcol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[lastvisit]</td></if>
<if condition="$userinfo['showreputation']">$userinfo[level] (<b><font color="<if condition="($userinfo[reputation] > 0)">green<else />red</if>">$userinfo[reputation]</font></b>)<else /> </if>
<if condition="$show['avatarcol'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['avatar']"><img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" /><else /> </if></td></if>
<if condition="$show['profilepiccol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[profilepic]</td></if>
<if condition="$show['birthdaycol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[birthday]</td></if>
<if condition="$show['agecol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[age]</td></if>
<if condition="$show['customfields']">$customfields</if>
<if condition="$show['usergroup'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['hideleader']"> <else /><input type="checkbox" name="deletebox[$userinfo[userid]]" value="yes" /></if></td></if>
</tr>
|
|
|

30.05.2008, 21:12
|
|
Banned
Регистрация: 06.01.2008
Сообщений: 413
Провел на форуме: 1301036
Репутация:
1334
|
|
Попробуй так
Код:
<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>
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
|
|
|

30.05.2008, 21:15
|
|
Banned
Регистрация: 07.11.2007
Сообщений: 301
Провел на форуме: 3428344
Репутация:
595
|
|
Не помогло. Если не сложно скиньте стандартный код данного шаблона.
|
|
|

30.05.2008, 21:18
|
|
Участник форума
Регистрация: 02.11.2007
Сообщений: 230
Провел на форуме: 1819358
Репутация:
75
|
|
Сообщение от InfernoNet
Не помогло. Если не сложно скиньте стандартный код данного шаблона.
А там посмотреть можно.
|
|
|

30.05.2008, 21:21
|
|
Banned
Регистрация: 06.01.2008
Сообщений: 413
Провел на форуме: 1301036
Репутация:
1334
|
|
Сообщение от GSM™
А там посмотреть можно.
Пример работы: http://xmages.net/out.php/i3824_repa.JPG
Файл от 3.6.10(reputation.php) отличается наличием защиты:
define('CSRF_PROTECTION', true);
Вобщем чтоб заставить работать пoп-ап не меняя файл на старый перед:
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
вставить строку:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Последний раз редактировалось cash$$$; 30.05.2008 в 21:23..
|
|
|

30.05.2008, 21:25
|
|
Banned
Регистрация: 07.11.2007
Сообщений: 301
Провел на форуме: 3428344
Репутация:
595
|
|
Сообщение от gsm™
А там посмотреть можно.
Где?
|
|
|

30.05.2008, 21:25
|
|
Участник форума
Регистрация: 02.11.2007
Сообщений: 230
Провел на форуме: 1819358
Репутация:
75
|
|
я не имел ввиду скрин а имел ввиду что в админке можно посмотреть исходный код шаблона.
|
|
|

30.05.2008, 21:34
|
|
Banned
Регистрация: 07.11.2007
Сообщений: 301
Провел на форуме: 3428344
Репутация:
595
|
|
cash$$$, не понял. Где прописать это надо?
|
|
|

30.05.2008, 21:41
|
|
Banned
Регистрация: 07.11.2007
Сообщений: 301
Провел на форуме: 3428344
Репутация:
595
|
|
Лучше дайте мне стандартную строку в место:
Код:
<if condition="$userinfo['showreputation']">$userinfo[level] (<b><font color="<if condition="($userinfo[reputation] > 0)">green<else />red</if>">$userinfo[reputation]</font></b>)<else /> </if>
|
|
|

30.05.2008, 21:49
|
|
Постоянный
Регистрация: 18.03.2008
Сообщений: 411
Провел на форуме: 7469280
Репутация:
2389
|
|
InfernoNet, а перед первой и после последней if разве "{" или "}" не надо?
|
|
|
|
 |
|
|
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
|
|
|
|