View Full Version : User's avatar placeable everywhere (trivial, but requested)
The M.I.P.
11-05-2005, 10:00 PM
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 (https://vborg.vbsupport.ru/showpost.php?p=814266&postcount=6).
EXAMPLE USAGE:
(install "avatarplaceableeverywhere.xml" plugin before)
<if condition="$bbuserinfo[avatarurl]">
<img src="$bbuserinfo[avatarurl]" $bbuserinfo[avatarsize] alt="<phrase 1="$bbuserinfo[username]">$vbphrase[xs_picture]</phrase>" />
</if>
SCREENSHOT:
http://prao.mine.nu/tmp/avatarplaceableeverywhere.jpg
That is by far one of the most useful "trivial" hacks yet.
I'm sure many will agree when I say, THANK YOU!!!
rb290
11-06-2005, 11:39 PM
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:
https://vborg.vbsupport.ru/external/2005/11/14.jpg
lexx27
11-07-2005, 12:52 AM
Great! Thanks
The M.I.P.
11-07-2005, 03:00 AM
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.jpgThis 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.
Oblivion Knight
11-07-2005, 05:19 AM
Does this run any extra queries on pages where the avatar is additionally added to?
The M.I.P.
11-07-2005, 05:46 AM
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.
Cyricx
11-07-2005, 11:13 AM
Nice!! This will actually help me out alot :)
lexx27
11-07-2005, 02:42 PM
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
Madmp3zz
11-07-2005, 03:05 PM
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?
The M.I.P.
11-07-2005, 04:04 PM
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.I basically moved stuff from the navbar template into the header, the navbar itself is only used to display the breadcrumbs.
header template contains top of page, left column and top of center column, footer template contains bottom of center column, right column and the footer/copyright stuff.
Excuse me for not giving out more infos or the template itself, because the style is part of gulli.com (http://www.gulli.com) corporate design.
KwelX
11-17-2005, 04:02 AM
installed
thx :)
DataAve
12-03-2005, 12:30 AM
I've imported the plugin. Nothing shows. Excuse my ignorance, but is there code to add.
DataAve
12-03-2005, 01:51 AM
As you can see, it's installed.
http://www.cctvforums.com/err/ape.gif
No Avatar shows.
http://www.cctvforums.com/err/ape1.gif
U can do this without the extra query.
DataAve
12-03-2005, 12:12 PM
?????
Wordplay
12-03-2005, 11:41 PM
using this would it be possible to show user's avatars in a shoutbox when they post there?
crash resistant
01-11-2006, 04:16 PM
lol. it doesn't work with vbAdvanced CMPS
yet another failed attempt
noonespecial
01-11-2006, 06:18 PM
It shows the logged in user's avatar when trying to use it in the templates associated with "VB Journal" - any way to fix that?
malfuncion
02-20-2006, 05:42 PM
also would be nice to know how to stick an avatar in an HTML page. like in a portal page...
im using raw html.. no templates.
tahanan
09-09-2007, 06:37 AM
What's the addtional code to show more details like:
Complete name:
Member since:
Birthdate:
Etc:
This may be simple question but I really don't know as I am newbie here.
I tried the plug-in and it worked in my site: www.english-coffee.com
Carlos
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.