The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
||||
|
||||
![]()
Okay, don't know if it was done in the best way, I just played with the code until it worked. Anyways, here it is:
Step One: Upload the files contained within the zip to your forums directory. (use the files in my zip, not the ones from the original thread) Step Two: Run file admincp/install_showbans.php. Step Three: Open modcp/banning.php and make the following file edits: Find: Code:
'period' => TYPE_STR, Code:
'bannedpost' => TYP_STR, Code:
// insert a record into the userban table /*insert query*/ $db->query_write(" INSERT INTO " . TABLE_PREFIX . "userban (userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate, reason) VALUES ($user[userid], $user[usergroupid], $user[displaygroupid], $user[customtitle], '" . $db->escape_string($user['usertitle']) . "', " . $vbulletin->userinfo['userid'] . ", " . TIMENOW . ", $liftdate, '" . $db->escape_string($vbulletin->GPC['reason']) . "') "); } Code:
// insert a record into the userban table /*insert query*/ $db->query_write(" INSERT INTO " . TABLE_PREFIX . "banlist (userid, username, dateline, bannedpost, sentbywhom, howlong, reason) VALUES ($user[userid], '" . $db->escape_string($user[username]) . "', " . TIMENOW . ", '" . $db->escape_string($vbulletin->GPC['bannedpost']) . "', '" . $db->escape_string($vbulletin->userinfo[username]) . "', $liftdate, '" . $db->escape_string($vbulletin->GPC['reason']) . "') "); } Code:
print_input_row($vbphrase['user_ban_reason'], 'reason', '', true, 50, 250); Code:
print_input_row($vbphrase['user_ban_reason'], 'reason', '', true, 50, 250, 8, 45, 1, 0); Add the following new templates banlist_main Code:
$stylevar[htmldoctype] <html id="form" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>Banned Users</title> $headinclude </head> <body> $header $navbar <table align="center" border="0" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%"> <tr> <td class="tcat" colspan="6"><div align="center"><STRONG>$vbphrase[banlist_banlist]</STRONG></div></td> </tr> <td class="alt1" colspan="6"><div align="center">$vbphrase[banlist_description] </div></td> </tr><tr> <td class="thead"> </td> <td nowrap class="thead">$vbphrase[username] / $vbphrase[banlist_bannedby]</td> <td nowrap class="thead" align="center">$vbphrase[banlist_datebanned]</td> <td nowrap class="thead" align="center">$vbphrase[banlist_bannedpost]</td> <td nowrap class="thead">Reason</td> <td nowrap class="thead" align="center">$vbphrase[banlist_releasedate]</td> </tr> $bannedbit </table> $footer </body> </html> Code:
<tr> <td nowrap class="alt2"><div align="center"><img src="images/icons/icon4.gif"></</div></td> <td nowrap class="alt1"><a href="member.php?u=$banned[userid]" target="_blank"><strong>$banned[username]</strong></a><br> <div class="smallfont">$vbphrase[banlist_bannedby]: $banned[sentbywhom]</div></td> <td nowrap class="alt2" align="center">$banned[date]</td> <if condition="$banned['bannedpost']"> <td nowrap class="alt1"><div align="center"><a href="$banned[bannedpost]" target="_blank">$vbphrase[banlist_link]</a></div></td> <else /> <td nowrap class="alt1"><div align="center">$vbphrase[banlist_nolink]</div></td> </if> <td class="alt2">$banned[reason]</td> <td nowrap class="alt1" align="center">$banned[releasedate] at $banned[releasetime] </td> </tr> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|