Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Advanced Userbars Hack v1.0 Details »»
Advanced Userbars Hack v1.0
Version: 1.00, by Mr_Snob Mr_Snob is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.4 Rating:
Released: 01-12-2007 Last Update: 01-16-2007 Installs: 49
DB Changes Uses Plugins Template Edits
Code Changes Additional Files Is in Beta Stage  
No support by the author.

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.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-13-2007, 11:18 AM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 01-13-2007, 11:43 AM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 01-13-2007, 11:52 AM
soletrader soletrader is offline
 
Join Date: Jul 2006
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will the userbar show in the signature?
Reply With Quote
  #15  
Old 01-13-2007, 01:29 PM
Mr_Snob Mr_Snob is offline
 
Join Date: Jan 2004
Location: T?RKIYE/BOLU
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VaaKo View Post
It would have been great without the file edits.
Great job!
in next version i hope, i do that

Quote:
Originally Posted by bollie View Post
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 View Post
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 View Post
Will the userbar show in the signature?
in next version coming soon
Reply With Quote
  #16  
Old 01-13-2007, 01:35 PM
bollie's Avatar
bollie bollie is offline
 
Join Date: Jun 2006
Location: Zele (Belgium)
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
which version of vBulletin have you got? this hack work only with vbBulletin Version of 3.6.4
vbBulletin Version 3.6.4
Reply With Quote
  #17  
Old 01-13-2007, 01:52 PM
Mr_Snob Mr_Snob is offline
 
Join Date: Jan 2004
Location: T?RKIYE/BOLU
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bollie View Post
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 View Post
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
Reply With Quote
  #18  
Old 01-13-2007, 02:53 PM
bollie's Avatar
bollie bollie is offline
 
Join Date: Jun 2006
Location: Zele (Belgium)
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 01-13-2007, 02:58 PM
Mr_Snob Mr_Snob is offline
 
Join Date: Jan 2004
Location: T?RKIYE/BOLU
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bollie View Post
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?
Reply With Quote
  #20  
Old 01-13-2007, 03:10 PM
bollie's Avatar
bollie bollie is offline
 
Join Date: Jun 2006
Location: Zele (Belgium)
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

delect product-userbars
re upload
Reply With Quote
  #21  
Old 01-13-2007, 03:13 PM
Mr_Snob Mr_Snob is offline
 
Join Date: Jan 2004
Location: T?RKIYE/BOLU
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:19 AM.


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.04903 seconds
  • Memory Usage 2,369KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_html
  • (10)bbcode_php
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete