[ REQ ] Advanced Userbars Management System v2.0

SpeedRazors

New Member
ADVANCED USERBARS MANAGEMENT SYSTEM for vBulletin 3.7.x BY HASANN

The Legend Is Back :D:D

What does it?: This hacks allows you to upload, add, manage userbars in cats with usergroup permissions. And show your selected userbars in Memberinfo/Userinfo Profile and In Postbit Under Signature

Installation:
  1. ->Install product_userbars.xml
  2. ->Upload all files (userbar images, cpnav xml)
  3. ->CHMOD 777 ./images/userbars/
  4. ->rebuild bitfields
  5. ->set advanced userbars system options : vBulletin Options > Advanced Userbars System Options > All Yes Or You Decide And Save :)
  6. ->Do file edits
  7. ->Do template edits
  8. ->Show your support click "Mark As Installed", nominate for MOTM, rate this modification, and/or donate.

____________________________
FILE EDITS (4 edits in 1 file)

____________________________
OPEN admincp/image.php


(1)
FIND :
-----------
PHP:
case 'smilie':
	$itemtype = 'smilie';
	$itemtypeplural = 'smilies';
	$catid = 3;
	break;
----------
ADD BELOW:
----------
PHP:
case 'userbar':
	$itemtype = 'userbar';
	$itemtypeplural = 'userbars';
	$catid = 4;
	break;
----------

(2)
FIND:
----------
PHP:
$tables = array('avatar' => $vbphrase['avatar'], 'icon' => $vbphrase['post_icon'], 'smilie' => $vbphrase['smilie']);
---------
REPLACE WITH:
----------
PHP:
$tables = array('avatar' => $vbphrase['avatar'], 'icon' => $vbphrase['post_icon'], 'smilie' => $vbphrase['smilie'], 'userbar' => $vbphrase['userbar']);
----------

(3)
FIND:
----------
PHP:
'avatarid' => TYPE_INT,
'iconid'   => TYPE_INT,
'smilieid' => TYPE_INT,
----------
ADD BELOW:
----------
PHP:
'userbarid' => TYPE_INT,
----------

(4)
FIND:
----------
PHP:
if ($vbulletin->GPC['avatarid'])
{
	$id = $vbulletin->GPC['avatarid'];
}
else if ($vbulletin->GPC['iconid'])
{
	$id = $vbulletin->GPC['iconid'];
}
else if ($vbulletin->GPC['smilieid'])
{
	$id = $vbulletin->GPC['smilieid'];
}
----------
ADD BELOW:
----------
PHP:
else if ($vbulletin->GPC['userbarid'])
{
	$id = $vbulletin->GPC['userbarid'];
}
----------

Save & Close


_________________________
Template Edits (3)
_________________________


OPEN MEMBERINFO TEMPLATE



FIND:
------------------------------------------------------------

HTML:
<h1>$prepared[musername] $prepared[onlinestatus]</h1>
<if condition="$prepared['usertitle']">
<h2>$prepared[usertitle]</h2>
</if>

------------------------------------------------------------


ADD UNDER:
-----------------------------------------------------------
HTML:
<if condition="$vbulletin->options[enable_advanced_userbars_system]">
<if condition="$userinfo[userbar]">
<div id="userbar"><b>$userbar[title]</b></div>
<div id="userbar"><img src="$userbar[userbarpath]" border="0"></div>
<br />
</if>
</if>
-----------------------------------------------------------
Save & Close



OPEN USERCP_SHELL TEMPLATE AND FIND:
----------------------------------------------------------
HTML:
<tr><td class="thead">$vbphrase[networking]</td></tr>
-----------------------------------------------------------



ADD ABOVE:
-----------------------------------------------------------
HTML:
	<if condition="$vbulletin->options['advanced_userbars_system_usercp_link']">
	<tr><td class="$navclass[userbar]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=selectuserbar">$vbphrase[select_userbar_picture]</a></td></tr>
	</if>
------------------------------------------------------------



OPEN postbit_legacy and postbit TEMPLATE THEN FIND:
----------------------------------------------------------
HTML:
$template_hook[postbit_signature_end]
-----------------------------------------------------------



ADD UNDER:
-----------------------------------------------------------
HTML:
<if condition="$vbulletin->options[enable_advanced_userbars_system]">
<br />		
<if condition="$post[userbar]">
<fieldset><legend>$post[username]-s Userbar:</legend><table><tr><td>
<b>$userbar[title]</b>
<img src="$userbar[userbarpath]" border="0">
</td></tr>
</table></fieldset>
</if>
<br />
</if>
------------------------------------------------------------

Save & Close

Also You Can Find Userbars From www.userbars.be
Enjoy & Don't forget to click install. :)
 
Top