форум vBSupport.ru > vBulletin > Old vB versions (3.0.x & 2.x.x) > vBulletin 3.5.x > Hacks, mods and scripts [3.5.x] > RPG inferno for 3.5.x
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default RPG-инфо в постбите / Information In Post-Bit
0

Open showthread.php
Find:

Code:
// load attachments
if ($thread['attach'])
{
$attachments = $DB_site->query("
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize
FROM " . TABLE_PREFIX . "attachment
WHERE postid IN (-1" . $ids . ")
ORDER BY dateline
");
$postattach = array();
while ($attachment = $DB_site->fetch_array($attachments))
{
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
}
}
Directly underneath this you will find:

Code:
$posts = $DB_site->query("
SELECT
post.*, post.username AS postusername, post.ipaddress AS ip,
user.*, userfield.*, usertextfield.*,
Underneath, place:

Code:
rpg_char.*, rpg_char.level AS char_level,
rpg_element.element, rpg_element.img,
rpg_clan.cid, rpg_clan.cname,
rpg_job.jname, rpg_job.jimg,Underneath This you will find:

Code:
" . iif($vboptions['reputationenable'], 'level,') . "Replace with:

Code:
" . iif($vboptions['reputationenable'], 'reputationlevel.*,') . "Underneath this find:

Code:
LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON(usertextfield.userid = user.userid)Add underneath:

Code:
left join inferno_user as rpg_char on(rpg_char.rid = user.userid)
left join inferno_element as rpg_element on(rpg_element.eid = rpg_char.element)
left join inferno_clan as rpg_clan on(rpg_clan.cid = rpg_char.inclan)
left join inferno_jobs as rpg_job on(rpg_job.jname = rpg_char.class)
Save & Upload showthread.php

Open includes/functions_showthread.php
Find:

Code:
require_once('./includes/functions_reputation.php');Underneath place:

Code:
function UserStatBars($Data){

$Data['hpd'] = (($Data['hp'] / $Data['hpm']) * 100);
$Data['mpd'] = (($Data['mp'] / $Data['mpm']) * 100);
$Data['defd'] = (($Data['def'] / $Data['hpm']) * 100);
$Data['strd'] = (($Data['str'] / $Data['hpm']) * 100);

if($Data['strd'] > 100){
$Data['strd'] = 100;
}

if($Data['defd'] > 100){
$Data['defd'] = 100;
}

return $Data;
}Find:

Code:
exec_switch_bg();Underneath this place:

Code:
if(trim($post['name']) != ""){
$post = UserStatBars($post);
}

$post['money'] = number_format($post['money']);
$post['bankmoney'] = number_format($post['bankmoney']);
$post['exp_need'] = (500 * ($post['char_level'] + 1));
Save & Upload includes/functions_showthread.php

Go to the template 'postbit_legacy', find:

Code:
<div class="info"><a href='inferno.php?$session[sessionurl]do=ScanMember&id={$post[userid]}'>Scan {$post[username]}</a></div>
Replace with:

Code:
<div class="info" id="rpg_stat_{$post[postid]}" style='white-space:nowrap;'><a href="inferno.php?$session[sessionurl]&do=ScanMember&id={$post[userid]}">RPG Information</a> <script type="text/javascript"> vbmenu_register("rpg_stat_{$post[postid]}",true); </script></div>
Find:

Code:
<!-- / post $post[postid] popup menu -->
Underneath Place:

Code:
<div class="vbmenu_popup" id="rpg_stat_{$post[postid]}_menu" style="display:none">
<if condition="$post[name] != ''">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">RPG Character Stats</td>
</tr>
<tr>
<td class='alt2'>
<table cellpadding='2' cellspacing='0' border='0'>
<tr>
<td>
<if condition="$post[jimg] != ''">
<img src='Inferno/jobs/$post[jimg]' alt='{$post['jname']}' />
</if>
</td>
<td>
<table cellpadding='0' cellspacing='2' border='0'>
<tr>
<td><b>Name:</b></td><td>{$post['name']}</td>
</tr>
<tr>
<td><b>Clan:</b></td>
<td><if condition="$post[inclan] > 0">
<a href='inferno.php?$session[sessionurl]do=ViewClan&cid={$post['cid']}'>{$post['cname']}</a>
<else />
<i>None</i>
</if></td>
</tr>
<tr>
<td><b>Level:</b></td><td>{$post['char_level']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2'>
<table cellpadding='0' cellspacing='2' border='0'>
<tr>
<td><b>Element:</b></td>
<td><img src='Inferno/elements/{$post[img]}' alt='{$post['element']}' /></td>
</tr>
<tr>
<td><b>Alignment:</b></td>
<td>{$post['align']}</td>
</tr>
<tr>
<td><b>Class:</b></td>
<td>{$post['jname']}</td>
</tr>
<tr>
<td><b>In Battle:</b></td>
<td>
<if condition="$post[inbattle] > 0">
<a href='inferno.php?$session[sessionurl]do=ViewBattle&bid={$post['inbattle']}'>View</a>
<else />
<i>No</i>
</if>
</td>
</tr>
<tr>
<td><b>Triad Cards:</b></td>
<td><a href='inferno.php?$session[sessionurl]do=ViewPlayerDeck&id={$post['gid']}'>View</a></td>
</tr>
<tr>
<td><b>Win(s):</b></td>
<td>{$post['won']}</td>
</tr>
<tr>
<td><b>Lost:</b></td>
<td>{$post['lost']}</td>
</tr>
<tr>
<td><b>Escaped:</b></td>
<td>{$post['escaped']}</td>
</tr>
<tr>
<td><b>Status:</b></td>
<td>
<if condition="$post[status] != ''">
$post[status]
<else />
<i>None</i>
</if>
</td>
</tr>
<tr>
<td><b>Special Move:</b></td>
<td>{$post['smove']}</td>
</tr>
<tr>
<td><b>Gender:</b></td>
<td>{$post['gender']}</td>
</tr>
<tr>
<td><b>{$vbphrase['money']}:</b></td>
<td>{$post['money']}</td>
</tr>
<tr>
<td><b>In Bank:</b></td>
<td>{$post['bankmoney']}</td>
</tr>
<tr>
<td><b>EXP:</b></td>
<td>{$post['exp']}/{$post['exp_need']}</td>
</tr>
<tr>
<td><b>Vitality:</b></td>
<td>{$post['vitality']}</td>
</tr>
<tr>
<td><b>Evasion:</b></td>
<td>{$post['evasion']}</td>
</tr>
<tr>
<td><b>More:</b></td>
<td><a href='inferno.php?$session[sessionurl]do=ScanMember&id={$post['userid']}'>Scan Character</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="thead">HP: {$post['hp']}/{$post['hpm']}</td>
</tr>
<tr>
<td class="alt2">
<table cellpadding='0' class='tborder' width='100' border='0' cellspacing='1'><tr><td class='alt1'><img src='Inferno/bars/bar_red.gif' height='13' width='{$post['hpd']}'></td></tr></table>
</td>
</tr>
<tr>
<td class="thead">MP: {$post['mp']}/{$post['mpm']}</td>
</tr>
<tr>
<td class="alt2">
<table cellpadding='0' class='tborder' width='100' border='0' cellspacing='1'><tr><td class='alt1'><img src='Inferno/bars/bar_blue.gif' height='13' width='{$post['mpd']}'></td></tr></table>
</td>
</tr>
<tr>
<td class="thead">STR: {$post['str']}</td>
</tr>
<tr>
<td class="alt2">
<table cellpadding='0' class='tborder' width='100' border='0' cellspacing='1'><tr><td class='alt1'><img src='Inferno/bars/bar_purple.gif' height='13' width='{$post['strd']}'></td></tr></table>
</td>
</tr>
<tr>
<td class="thead">DEF: {$post['def']}</td>
</tr>
<tr>
<td class="alt2">
<table cellpadding='0' class='tborder' width='100' border='0' cellspacing='1'><tr><td class='alt1'><img src='Inferno/bars/bar_green.gif' height='13' width='{$post['defd']}'></td></tr></table>
</td>
</tr>
</table>
</if>
</div>
Save template 'postbit_legacy'.

Installed, enjoy, any questions post below

- Zero Tolerance
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
ZLS
Простоузер
Default
0

Open includes/functions_showthread.php - простите, но не могу найти этого файла
 
 
Romchik®
XenForo-Russia
 
Romchik®'s Avatar
Default
0

ZLS, как это не могу? Какая версия форума? В любом случае в папке includes ищи.
 
 
AloneFire
Простоузер
Default
0

Open includes/functions_showthread.php
и у меня его нету =(
Версия воблы 3.6.4
 
 
Dev
Эксперт
 
Dev's Avatar
Default
0

AloneFire,
+1
 


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 07:00 AM.


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