vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Advanced Userbars Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=136360)

Mr_Snob 01-12-2007 10:00 PM

Advanced Userbars Hack v1.0
 
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 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

Quote:

Originally Posted by joopss (Post 1157809)
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/use....php?do=update
Referrer : http://www.xxxxxx/forum/admincp/user...&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
PHP Code:

<if condition="$show['siglink']">
            <
tr>
              <
td class="$navclass[signature]nowrap="nowrap"><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 :
PHP Code:

<td class="$navclass[avatar]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td>
            </
tr>
          </if>
<
tr>
  
    <
td class="alt2" nowrap="nowrap"><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"><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
Code:

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

Quote:

Originally Posted by VaaKo (Post 1157823)
It would have been great without the file edits.
Great job!

in next version i hope, i do that :)

Quote:

Originally Posted by bollie (Post 1157924)
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/use....php?do=update
Referrer : http://www.xxxxxx/forum/admincp/user...&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


Quote:

Originally Posted by puertoblack2003 (Post 1157952)
hey Mr.Snob still get that error from old version any fix to this
Code:

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

Quote:

Originally Posted by soletrader (Post 1157953)
Will the userbar show in the signature?

in next version coming soon :)

bollie 01-13-2007 01:35 PM

Quote:

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

Quote:

Originally Posted by bollie (Post 1157924)
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/use....php?do=update
Referrer : http://www.xxxxxx/forum/admincp/user...&usergroupid=6
IP Address :
Username : ivan
Classname : vB_Database

Quote:

Originally Posted by puertoblack2003 (Post 1157952)
hey Mr.Snob still get that error from old version any fix to this
Code:

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

Quote:

Originally Posted by bollie (Post 1158090)
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

Quote:

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

Quote:

Originally Posted by Mr_Snob (Post 1158111)
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

Quote:

Originally Posted by stone0075 (Post 1158428)
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

Quote:

Originally Posted by bollie (Post 1158090)

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

Quote:

Originally Posted by Mr_Snob (Post 1161118)
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

Quote:

Originally Posted by puertoblack2003 (Post 1161551)
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

Quote:

Originally Posted by Trana (Post 1158589)
Nice hack, but I won't install anything with a file edit.

as you liked my buddy :)

Quote:

Originally Posted by Terminatoronly (Post 1159103)
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

Quote:

Originally Posted by paldo (Post 1161904)
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

Quote:

Originally Posted by Mr_Snob (Post 1161118)
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:

Quote:

<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 ?


All times are GMT. The time now is 05:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01600 seconds
  • Memory Usage 1,881KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_html_printable
  • (10)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete