Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
User's avatar placeable everywhere (trivial, but requested) Details »»
User's avatar placeable everywhere (trivial, but requested)
Version: 1.00, by The M.I.P. The M.I.P. is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.x Rating:
Released: 11-05-2005 Last Update: Never Installs: 16
Uses Plugins
 
No support by the author.

This trivial plugin allows to place a user's avatar (nearly) everywhere in the templates (it defines $vbulletin->userinfo['avatarurl'] and $vbulletin->userinfo['avatarsize'] or - when using legacy variables - $bbuserinfo['avatarurl'] and $bbuserinfo['avatarsize']).

Sorry for posting something that simple, but it was requested.

EXAMPLE USAGE:
(install "avatarplaceableeverywhere.xml" plugin before)
HTML Code:
<if condition="$bbuserinfo[avatarurl]">
	<img src="$bbuserinfo[avatarurl]" $bbuserinfo[avatarsize] alt="<phrase 1="$bbuserinfo[username]">$vbphrase[xs_picture]</phrase>" />
</if>
SCREENSHOT:

Show Your Support

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

Comments
  #2  
Old 11-06-2005, 11:06 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is by far one of the most useful "trivial" hacks yet.

I'm sure many will agree when I say, THANK YOU!!!
Reply With Quote
  #3  
Old 11-06-2005, 11:39 PM
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey how did you make yours look like that

this is what mines looks like and it makes it have some empty space that doesnt look good:

Reply With Quote
  #4  
Old 11-07-2005, 12:52 AM
lexx27's Avatar
lexx27 lexx27 is offline
 
Join Date: May 2005
Location: Athens
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! Thanks
Reply With Quote
  #5  
Old 11-07-2005, 03:00 AM
The M.I.P.'s Avatar
The M.I.P. The M.I.P. is offline
 
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rb290
hey how did you make yours look like that

this is what mines looks like and it makes it have some empty space that doesnt look good:

http://tinypic.com/fdvo1i.jpg
This is a matter of the HTML code you used in your templates, not a problem of this plugin.

At the first glance, it looks like you placed your avatar pic in a different table cell than the welcome message, but without posting relevant parts of your template or the generated HTML output, it's not possible to tell what could be changed to get the results you want.
Reply With Quote
  #6  
Old 11-07-2005, 05:19 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this run any extra queries on pages where the avatar is additionally added to?
Reply With Quote
  #7  
Old 11-07-2005, 05:46 AM
The M.I.P.'s Avatar
The M.I.P. The M.I.P. is offline
 
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oblivion Knight
Does this run any extra queries on pages where the avatar is additionally added to?
Yes - it calls fetch_avatar_url() function from includes/functions_user.php which in turn needs one query to pull the avatar data from the database.
Reply With Quote
  #8  
Old 11-07-2005, 11:13 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice!! This will actually help me out alot
Reply With Quote
  #9  
Old 11-07-2005, 02:42 PM
lexx27's Avatar
lexx27 lexx27 is offline
 
Join Date: May 2005
Location: Athens
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great but how can i get it to work on the header of the vbadvanced?

edit: I mean that on the forums it works great. But on the vba pages it shows a X. What should i do abou it???
I placed the code inside the header template
Reply With Quote
  #10  
Old 11-07-2005, 03:05 PM
Madmp3zz Madmp3zz is offline
 
Join Date: Aug 2005
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pretty cool hack..

I was just checking out your message board.
I was wondering if you could tell me how you added the left column with the links.

I have found the add left column hack but, I would like to know how you got the sub-menu dropdown to work.
I want mine to look almost like that.

Can u point me in the right direction or can u PM me the code?
Reply With Quote
Reply

Thread Tools

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 05:13 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.05405 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
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_html
  • (2)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
  • (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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete