Back to vBulletin 3.6 Add-ons

Advanced Userbars Hack v1.0
Mod Version: 1.00, by Mr_Snob

This modification is in the archives.
vB Version: 3.6.4 Rating: (5 votes - 4.80 average) Installs: 49
Released: 13 Jan 2007 Last Update: 17 Jan 2007 Downloads: 475
Not Supported DB Changes Uses Plugins Template Edits Code Changes Additional Files Is in Beta Stage  

ADVANCED USERBARS HACK for vBulletin 3.6.x BY HASANN

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

Installation:
  1. ->Install product_userbars.xml
  2. ->Upload all files (userbar images, bitfield xml, cpnav xml)
  3. ->CHMOD 777 ./images/userbars/
  4. ->rebuild bitfields
  5. ->set usergroup permissions : UserGroups > Userbar permissions > Can have a Userbar? > Yes 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 Code:
case 'smilie':
    
$itemtype 'smilie';
    
$itemtypeplural 'smilies';
    
$catid 3;
    break; 
----------
ADD BELOW:
----------
PHP Code:
case 'userbar':
    
$itemtype 'userbar';
    
$itemtypeplural 'userbars';
    
$catid 4;
    break; 
----------

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

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

(4)
FIND:
----------
PHP Code:
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 Code:
else if ($vbulletin->GPC['userbarid'])
{
    
$id $vbulletin->GPC['userbarid'];

----------

Save & Close

_________________________
Template Edits (2)
_________________________

OPEN MEMBERINFO TEMPLATE

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

HTML Code:
			<if condition="$show['usernotes']">
------------------------------------------------------------

ADD ABOVE:
-----------------------------------------------------------
HTML Code:
<if condition="$userinfo[userbar]">
<fieldset><legend>$userinfo[username]-s Userbar:</legend><table><tr><td>
<b>$userbar[title]</b>
<img src="$userbar[userbarpath]" border="0">
</td></tr>
</table></fieldset>
</if>
-----------------------------------------------------------
Save & Close

OPEN USERCP_SHELL TEMPLATE AND FIND:
----------------------------------------------------------
HTML Code:
<if condition="$show['siglink']">
            <tr>
              <td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td>
            </tr>
          </if>
-----------------------------------------------------------

ADD BELOW:
-----------------------------------------------------------
HTML Code:
<tr>
	<td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=selectuserbar">$vbphrase[select_userbar_picture]</a></td>
</tr>
------------------------------------------------------------
Save & Close

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

Download

This modification is archived, downloads are still allowed.

File Type: %1$s Advanced_Userbars_Hack.zip (1.10 MB, 332 downloads)
File Type: %1$s product-userbars.xml (13.4 KB, 198 downloads)

Supporters / CoAuthors

  • Hasann
  • Mr_Snob

Screenshots

Click image for larger version
Name:	add_new_userbar.jpg
Views:	1212
Size:	38.5 KB
ID:	58940   Click image for larger version
Name:	upload_userbar.jpg
Views:	656
Size:	27.5 KB
ID:	58941   Click image for larger version
Name:	userbars_manager.jpg
Views:	533
Size:	31.8 KB
ID:	58942   Click image for larger version
Name:	userbar_permissions.jpg
Views:	497
Size:	20.5 KB
ID:	58943  

Click image for larger version
Name:	userbar_categories.jpg
Views:	1620
Size:	91.8 KB
ID:	58944   Click image for larger version
Name:	userbars_usercp.jpg
Views:	1725
Size:	53.0 KB
ID:	58946   Click image for larger version
Name:	userbar_memberinfo.jpg
Views:	982
Size:	32.5 KB
ID:	58947   Click image for larger version
Name:	categorypermission.jpg
Views:	620
Size:	27.8 KB
ID:	58951  

Similar Mods

Profile Enhancements Advanced Userbars System vBulletin 3.7 Add-ons
Miscellaneous Hacks Advanced Rules Hack vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024