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


All times are GMT. The time now is 09:26 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.01167 seconds
  • Memory Usage 1,765KB
  • 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
  • (4)bbcode_html_printable
  • (8)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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