View Full Version : Profile Enhancements - Advanced Userbars Hack v1.0
Mr_Snob
01-12-2007, 10:00 PM
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:
->Install product_userbars.xml
->Upload all files (userbar images, bitfield xml, cpnav xml)
->CHMOD 777 ./images/userbars/
->rebuild bitfields
->set usergroup permissions : UserGroups > Userbar permissions > Can have a Userbar? > Yes and Save
->Do file edits
->Do template edits
->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 :
-----------
case 'smilie':
$itemtype = 'smilie';
$itemtypeplural = 'smilies';
$catid = 3;
break;----------
ADD BELOW:
----------
case 'userbar':
$itemtype = 'userbar';
$itemtypeplural = 'userbars';
$catid = 4;
break;
----------
(2)
FIND:
----------
$tables = array('avatar' => $vbphrase['avatar'], 'icon' => $vbphrase['post_icon'], 'smilie' => $vbphrase['smilie']);
---------
REPLACE WITH:
----------
$tables = array('avatar' => $vbphrase['avatar'], 'icon' => $vbphrase['post_icon'], 'smilie' => $vbphrase['smilie'], 'userbar' => $vbphrase['userbar']);
----------
(3)
FIND:
----------
'avatarid' => TYPE_INT,
'iconid' => TYPE_INT,
'smilieid' => TYPE_INT,
----------
ADD BELOW:
----------
'userbarid' => TYPE_INT,
----------
(4)
FIND:
----------
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:
----------
else if ($vbulletin->GPC['userbarid'])
{
$id = $vbulletin->GPC['userbarid'];
}
----------
Save & Close
_________________________
Template Edits (2)
_________________________
OPEN MEMBERINFO TEMPLATE
FIND:
------------------------------------------------------------
<if condition="$show['usernotes']">
------------------------------------------------------------
ADD ABOVE:
-----------------------------------------------------------
<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:
----------------------------------------------------------
<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:
-----------------------------------------------------------
<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 www.userbars.be
Enjoy & Don't forget to click install. :)
Mr_Snob
01-13-2007, 06:02 AM
Reserved for Future!!!
joopss
01-13-2007, 06:48 AM
You are great !!!!
Ellerine sağlık dostum..
Mr_Snob
01-13-2007, 06:56 AM
You are great !!!!
Ellerine sağlık dostum..
estagfurullah :D I am not great. Allah is the Greatest :)
Ben tesekk?r ederim Allah Razi Olsun Kardes ;)
DONT FORGET TO CLICK INSTALL :eek: :D :p
VaaKo
01-13-2007, 07:32 AM
It would have been great without the file edits.
Great job!
projectego
01-13-2007, 08:22 AM
Sweet! My members love userbars! Thanks. :)
Milad
01-13-2007, 10:13 AM
Thank you Mr_Snob
I was searching for something similar.
Salam Olsun
puertoblack2003
01-13-2007, 10:39 AM
yes finally an updated version man your great
Snake
01-13-2007, 10:42 AM
Wow this is awesome. I have never seen this. Thank you! :D
bollie
01-13-2007, 10:49 AM
MySQL Error : Unknown column 'userbarpermissions' in 'field list'
Error Number : 1054
Date : Saturday, January 13th 2007 @ 01:44:07 PM
Script : http://www.xxxxxxx/forum/admincp/usergroup.php?do=update
Referrer : http://www.xxxxxx/forum/admincp/usergroup.php?do=edit&usergroupid=6
IP Address :
Username : ivan
Classname : vB_Database
puertoblack2003
01-13-2007, 11:18 AM
Hey guys not a coder but for those that has that (GTUserCP - Enhanced USERCP Interface hack here https://vborg.vbsupport.ru/showthread.php?t=136321 )
there's no <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> in USERCP_SHELL so where i put my at is here : <td class="$navclass[avatar]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td>
</tr>
</if>
<tr>
<td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=selectuserbar">$vbphrase[select_userbar_picture]</a></td>
</tr>
<if condition="$show['profilepiclink']">
<tr>
<td class="$navclass[profilepic]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td>
</tr>
hope that helps out -pb
puertoblack2003
01-13-2007, 11:43 AM
hey Mr.Snob still get that error from old version any fix to this Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \profile.php(156) : eval()'d code on line 3
soletrader
01-13-2007, 11:52 AM
Will the userbar show in the signature?
Mr_Snob
01-13-2007, 01:29 PM
It would have been great without the file edits.
Great job!
in next version i hope, i do that :)
MySQL Error : Unknown column 'userbarpermissions' in 'field list'
Error Number : 1054
Date : Saturday, January 13th 2007 @ 01:44:07 PM
Script : http://www.xxxxxxx/forum/admincp/usergroup.php?do=update
Referrer : http://www.xxxxxx/forum/admincp/usergroup.php?do=edit&usergroupid=6
IP Address :
Username : ivan
Classname : vB_Database
which version of vBulletin have you got? this hack work only with vbBulletin Version of 3.6.4
hey Mr.Snob still get that error from old version any fix to this Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \profile.php(156) : eval()'d code on line 3
you must delete older files and product and you must new install this hack work only with vbBulletin Version of 3.6.4
Will the userbar show in the signature?
in next version coming soon :)
bollie
01-13-2007, 01:35 PM
which version of vBulletin have you got? this hack work only with vbBulletin Version of 3.6.4
vbBulletin Version 3.6.4
Mr_Snob
01-13-2007, 01:52 PM
MySQL Error : Unknown column 'userbarpermissions' in 'field list'
Error Number : 1054
Date : Saturday, January 13th 2007 @ 01:44:07 PM
Script : http://www.xxxxxxx/forum/admincp/usergroup.php?do=update
Referrer : http://www.xxxxxx/forum/admincp/usergroup.php?do=edit&usergroupid=6
IP Address :
Username : ivan
Classname : vB_Database
hey Mr.Snob still get that error from old version any fix to this Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \profile.php(156) : eval()'d code on line 3
Has someone the same error? i look in my local but seems to be no error
bollie
01-13-2007, 02:53 PM
MySQL Error fix ;)
Now page eror
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /profile.php(156) : eval()'d code on line 3
Mr_Snob
01-13-2007, 02:58 PM
MySQL Error fix ;)
Now page eror
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /profile.php(156) : eval()'d code on line 3
what? have you fixed? :)
bollie
01-13-2007, 03:10 PM
delect product-userbars
re upload
Mr_Snob
01-13-2007, 03:13 PM
Okei..
I look at this problem in my local but i see no error
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /profile.php(156) : eval()'d code on line 3
okei then say me;
what server do you use?
what version of apache has server?
and what version of PHP has your server?
I will fix it soon
bollie
01-13-2007, 03:30 PM
Servertype: FreeBSD
Webserver: apache2handler
PHP: 5.1.4
MySQL versie: 4.1.21-log
puertoblack2003
01-13-2007, 05:07 PM
Okei..
I look at this problem in my local but i see no error
okei then say me;
what server do you use?
what version of apache has server?
and what version of PHP has your server?
I will fix it soon
i'm going to try uninstall and reinstall again what i did is i overwritten file from old product and checked everything else everyhting is fine so i'll report back and let you know how i did.
puertoblack2003
01-13-2007, 05:11 PM
na didn't do justice same error on page as reported..i'm using abyss webserver to host my site on windows if that helps. updated php5 and mysql
johnrizz
01-13-2007, 10:58 PM
I'm also getting an error and I can figure it out, I set the userbar permission to yes,
I chmod 777 images/userbars and still get the error am I doing something wrong?
Thanks.
*****: you do not have permission to access this page. This could be due to one of several reasons:
1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Trana
01-14-2007, 04:01 AM
Nice hack, but I won't install anything with a file edit.
Mr_Snob
01-14-2007, 08:38 AM
I'm also getting an error and I can figure it out, I set the userbar permission to yes,
I chmod 777 images/userbars and still get the error am I doing something wrong?
Thanks.
*****: you do not have permission to access this page. This could be due to one of several reasons:
1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
->set usergroup permissions : UserGroups > Userbar permissions > Can have a Userbar? > Yes and Save
see attachment!!
johnrizz
01-14-2007, 04:43 PM
That did it Mr_Snob, thank you!
Terminatoronly
01-14-2007, 05:55 PM
hi i installed it but in postbit i want it to make spaces between it and between the text and it would be great if it can be like this i mean having a line like this:
__________________
Mr_Snob
01-17-2007, 02:46 AM
Now page eror
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /profile.php(156) : eval()'d code on line 3
i hope, now page error bug fixed
download new product-userbars.xml and overwrite it with old one
puertoblack2003
01-17-2007, 05:05 PM
i hope, now page error bug fixed
download new product-userbars.xml and overwrite it with old one
yep that did :) it fixed up the error:D ...thanks great job
Mr_Snob
01-17-2007, 05:08 PM
yep that did :) it fixed up the error:D ...thanks great job
no problem my buddy :)
if you could make me more comments
i will release more more hacks
Mr_Snob
01-18-2007, 12:54 AM
Nice hack, but I won't install anything with a file edit.
as you liked my buddy :)
hi i installed it but in postbit i want it to make spaces between it and between the text and it would be great if it can be like this i mean having a line like this:
__________________
i hope in next version coming soon this feature :)
paldo
01-18-2007, 03:15 AM
ok i have this installed everything looks fine but when you choose a userbar nothing happens(it dont place it in your sig) and the permissions are set .. just to be clear when you say rebuild bitfeilds where exactly would this be ? you speaking of the update counters area in admin ?
Mr_Snob
01-18-2007, 03:43 AM
ok i have this installed everything looks fine but when you choose a userbar nothing happens(it dont place it in your sig) and the permissions are set .. just to be clear when you say rebuild bitfeilds where exactly would this be ? you speaking of the update counters area in admin ?
it dont place it in your sig then place your memberinfo profile under usernotes
in next version coming soon :)
paldo
01-18-2007, 04:09 AM
ok thanks i dont guess i read it all the way when i think userbars i think sigs :(
bollie
01-18-2007, 01:51 PM
i hope, now page error bug fixed
download new product-userbars.xml and overwrite it with old one
Thx work nice ;)
mcyates
01-19-2007, 10:46 PM
It would be good if instead of showing all the userbars from each category at the same time. You could first click on the category you want to look at as it looks a mess having all the userbars shown at the same time.
But other than that great hack and installed :)
DevinM
01-20-2007, 01:01 AM
Nice hack! Installed it and working perfectly. Cant wait for the version that makes the bars show up in sigs.
Is it possible to make it so users can select multiple bars for thier sig?
In the UserCP area is there a way to better organize the bars so it isnt just a long list of em?
o0Hubba0o
01-23-2007, 03:18 AM
Installed fine, works great. However this would be an even better hack if we had to option to put this anywhere. I tried putting the:
<if condition="$userinfo[userbar]">
<table><tr><td>
<img src="$userbar[userbarpath]" border="0">
</td></tr>
</table>
</if>
into the spot of my postbit I want it to show, but no luck. A code somewhat like "$userbar" to put where we would like it to show up would be awesome. Look forward to any updates however, but getting this to show in more "public" areas of the forums I think would be the most popular option.
kenneth4200
01-24-2007, 08:01 AM
How to show "Userbars" in signature in showthread.php ?
DevinM
01-24-2007, 09:50 PM
Yeah thats what I am waiting for, ill have this hack shutoff till then.
devilsmania
01-26-2007, 12:47 PM
agree, waiting the upgrade for postbit :)
thanks
Reeve of shinra
03-10-2007, 12:35 AM
I really like this! I hope you can pull out a postbit update. Im going to use this one for now :D
TechDawg
05-06-2007, 03:50 AM
I like this hack alot, and also would really like to see a postbit option.
However, the reason for my post is that I'm getting an odd Database error, that seems to be associated with this particular hack. I'm hoping you'll have some idea of what to do.
Database error in vBulletin 3.6.5:
Invalid SQL:
SELECT * FROM vb_userbar WHERE imagecategoryid !=(11,12,13) ORDER BY displayorder ASC;
MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '12,13) ORDER BY displayorder ASC' at line 1
Error Number : 1064
Date : Saturday, May 5th 2007 @ 11:54:14 PM
Script : http://www.iridethelines.com/forums/profile.php?do=selectuserbar
Referrer : http://www.iridethelines.com/forums/private.phpAny Insight would be greatly appreciated.
Thanks,
TechDawg
DevinM
05-07-2007, 12:00 AM
Sadly this hack isnt supported and doesnt appear there will be any updates.
Hopefully someone picks it up.
o0Hubba0o
06-07-2007, 09:59 PM
Sadly this hack isnt supported and doesnt appear there will be any updates.
Hopefully someone picks it up.
Yeah that's too bad, I'm looking into the codes but it's all still very foreign to me. But this might be a good one to start getting practice on, if I do happen to figure something out I'll get permission from the creator to post a new version.........but don't hold your breath lol. Chances are better of someone else figuring it out first heh.
nickypoooo
09-07-2007, 09:43 AM
Marked Installed, Thank you.
I do have one big problem and hope that you can help me - I get this error message -
"Invalid Table Specified" when getting in to admincp --- Userbars I can not modify images or upload new one (userbars work fine in usr CP and i can add images)
69532
Do you have an idea?
Thank you
nickypoooo
09-07-2007, 01:39 PM
I got it fixed Thanks...
Clanwebmaster
09-19-2007, 08:45 PM
is there any way to make it so it add's the user bar it adds it to there sig?
nickypoooo
10-02-2007, 03:14 PM
Great plug-in.
I am having a very strange problem with it- works fine only for site admin but all other users get "database error"
70524
I can not find how to fix my problem, please help. :confused:
Using Vb 3.6.8
Thank you
youradhere4222
10-13-2007, 06:32 PM
Where do I upload the two .xml files to?
Thanks. :)
nickypoooo
10-13-2007, 08:00 PM
I don't uderstend, this mod is marked as "Supported" but no one here to Support it!
UnInstalled
TCE Killa
01-08-2008, 02:24 PM
This is a great mod but is there away you can make userbars show in signatures too? Thanks.
Caerydd
01-23-2008, 07:52 AM
Showing interest for a 3.6.8 update/revision of this.
TCE Killa
01-23-2008, 10:00 AM
^I'm using 3.6.8 and it works fine.
i scond the sig motion, if someone could get this to showw up in the sig that woul be awesome, also multible bars per user... wish i had the knowledge to do it.
well i kick myself in the butt for not reading enough before i installed this, because it is going to be a pain to uninstall.
Hasann
02-27-2008, 01:01 PM
Sorry guys I hade problems this way I can't updated this hack
but now I have for vBulletin version 3.7.0 beta ... Updated and it's in my localhost :)
I will release this update today =)
here are some screenshots from my updated hack
Hasann
02-28-2008, 02:53 AM
this hack is yet updated go here for new hack =) https://vborg.vbsupport.ru/showthread.php?t=171621
montsa007
03-01-2008, 04:09 AM
After 20 Minutes of struggle i made it :(
Hasann
03-01-2008, 07:28 AM
After 20 Minutes of struggle i made it :(
what? go here for new updated version!
https://vborg.vbsupport.ru/showthread.php?t=171621
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.