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

Reply
 
Thread Tools
Adds Avatar to Navbar Details »»
Adds Avatar to Navbar
Version: 1.3, by Kolbi Kolbi is offline
Developer Last Online: Jan 2022 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 11-08-2009 Last Update: 02-08-2011 Installs: 183
Uses Plugins Template Edits Auto-Templates
 
No support by the author.

Adds Avatar to Navbar

This addon adds for registered users their avatar to the navbar. If they have none selceted there will be shown a default avatar.
The URL to your default avatar and the height of the avatars can be set via vBulletin-Setting => Navbar with Avatar

Default avatar URL: /images/misc/unknown.gif
Default height: 60px

Demo:
navbarwithavatar.jpg

AdminCP:
admincp.jpg

This modification only needs one querie.

Additional installation advices are in the readme.txt.

Not compatible with following addon:
Navbar - adds social bookmarking, notifications highlighting, & search fields

Other languages are in the folder translations. German and English are avaible at the moment. Just import them under languages & phrases.

Please click INSTALL

Matthias
www.2-wheel-planet.de


13.11.2009 14:57 - Version 1.1
13.11.2009 16:01 - Version 1.2
09.02.2011 18:59 - Version 1.3 is published

Changelog:
version 1.1:
  • changeable height of avatars via AdminCP
  • German version
version 1.2:
  • changeable default avatar
version 1.3:
  • changeable width

New features that will come for 1.4:
  • nothing yet

Copyright:

This hack has a little copyright hint at the bottom of the page. You are not allowed to edit or remove it!
If you want to remove it please contact me via PM.

Download Now

File Type: zip Navbar_with_Avatar_1.2.zip (3.5 KB, 382 views)
File Type: zip Navbar_with_Avatar_1.3.zip (3.8 KB, 855 views)

Show Your Support

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

Comments
  #102  
Old 08-06-2012, 01:49 PM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem is that I don't a vB 3 test board anymore :-(
Reply With Quote
  #103  
Old 08-06-2012, 02:57 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kolbi View Post
For the reason that I haven't installed the arcade mod I couldn't proove it.

But it might be possible to get it working on the arcade, too.
https://vborg.vbsupport.ru/showpost....4&postcount=96
Reply With Quote
  #104  
Old 08-06-2012, 04:49 PM
J19784B5A39B J19784B5A39B is offline
 
Join Date: Jun 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
It works on mine... I have the same arcade and have this Mod as well.... It looks on first glance that your style reverses the position of the navbar template? Making everything flush left instead of flush right? Your issue may be related to that.

and how?
Reply With Quote
  #105  
Old 08-06-2012, 10:09 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by J19784B5A39B View Post
and how?
You can find out by creating a new style with no parent, and then looking at this mod through use of that new style.
Reply With Quote
  #106  
Old 08-10-2012, 06:25 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or provide me a URL and maybe an admin account via PM :-)

Important:
Code:
Without TMS:
Open the navbar template and search for:
==================================
	<else />
		
		<td class="alt2" nowrap="nowrap" style="padding:0px">
			
		<!-- login form -->
==================================

add above
==================================
		<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>
==================================
After that upload the plugin and you?re done.
Reply With Quote
  #107  
Old 02-13-2013, 08:47 PM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the plugin,

would you please tell me if this plugin is still supported ?
Reply With Quote
  #108  
Old 02-14-2013, 10:34 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

More or less :-) I'm not using vB 3.8 anymore but I'll help as much as I can.
Reply With Quote
  #109  
Old 02-14-2013, 11:46 AM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you for the reply,

actually my problem is kind of strange, the avatar is only showing when I am viewing the forumdisplay or showthread pages , its not showing in other sections like forumhome , vbadvanced cmps or my gallery !!!!


I even used a custom plugin instead of your product but it was the same , its so strange, please take a look at the screenshots and my custom plugin, I have no idea what is causing this issue.

I can provide you my templates in pm if they are needed ...

really appreciate your help.

thank you

My Custom plugin : (Hook Location : Global Start)

PHP Code:
if ($vbulletin->userinfo['avatarid']) 

    
// using a predefined avatar 
    
$avatar $db->query_first("SELECT avatarpath FROM " TABLE_PREFIX "avatar WHERE avatarid = " $vbulletin->userinfo[avatarid] . ""); 
    
$avatarid $avatar['avatarid']; 
    
$navbaravatar "<img src=\"" $vbulletin->options[bburl] . "/$avatar[avatarpath]\" alt=\"Your Avatar\" border=\"0\" class=\"avatar\" style=\"width:150px\" />"

else 

    
// not using a predefined avatar, check for custom 
    
if ($avatar $db->query_first("SELECT dateline, userid FROM " TABLE_PREFIX "customavatar WHERE userid = " $vbulletin->userinfo[userid] . "")) 
    { 
        
// using a custom avatar 
        
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" $vbulletin->options[avatarurl] . "/avatar$avatar[userid]_" $vbulletin->userinfo[avatarrevision] . ".gif" "" $vbulletin->options[bburl] . "/image.php?u=" $vbulletin->userinfo['userid'] . "&amp;dateline=" $avatar['dateline'] . "";
        
$navbaravatar "<img src=\"$navbaravatarurl\" alt=\"Your Avatar\" border=\"0\" class=\"avatar\" style=\"width:90px\" />";
    } 
    else
    { 
        
// no avatar specified 
        
$nouseavatarchecked HTML_CHECKED
        
$avatarchecked[0] = ''
        
$navbaravatar "<img src=\"" $vbulletin->options[bburl] . "/images/vuel/misc/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" style=\"width:100px\" class=\"avatar\" />"// "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
    


Snapshots :

forumdisplay and showthread:



forumhome , vbadravced and other pages :




thnx
Reply With Quote
  #110  
Old 02-21-2013, 09:23 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you using vBA?

Try: https://vborg.vbsupport.ru/showpost....8&postcount=81
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 06:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04560 seconds
  • Memory Usage 2,341KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete