vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Display Avatar or Profile Picture in Widget (https://vborg.vbsupport.ru/showthread.php?t=290848)

zero477 11-16-2012 09:34 PM

Display Avatar or Profile Picture in Widget
 
I have been studying the manual to try to learn how to use variables in templates.

I am trying get the user's avatar and profile pictures URLS when they log in ona a widget that I am creating.

I have called this without success:

{vb:raw userinfo.avatarurl}
{vb:raw bbuserinfo.avatarurl}
{vb:raw post.avatarurl}

in here:

<a class="avatar" href="{vb:link member, {vb:raw userinfo}}" title="{vb:rawphrase xs_avatar, {vb:raw userinfo.username}}">
<span class="avatarcontainer"><img src="{vb:raw bbuserinfo.avatarurl}" alt="SIRVE EL AVATAR" /></span>
</a>

Can someone guide me a little bit?

Vbulletin support team told me this:
Quote:

The variable you use depends on the template you use it in. You also need to find out if the variable you want is even available for you to use. Help with any sort of customization is only given on vbulletin.org, the modification site. You should post over there for help and be sure that you tell them the template you are trying to put the code in.

deltahawk5 06-14-2013 01:01 AM

Bump. Could use information on this. Google is helpless atm.

findingpeace 06-14-2013 01:08 AM

Hi deltahawk,

Widget - so is this in the CMS? Or is it a forum block on the sidebar?

What template is this located in?

I think you just need to add a plugin to the relevant hook, and get those variables registered. We can do this with a little more info about the template, code, etc.

deltahawk5 06-14-2013 08:21 AM

Quote:

Originally Posted by findingpeace (Post 2427997)
Hi deltahawk,

Widget - so is this in the CMS? Or is it a forum block on the sidebar?

What template is this located in?

I think you just need to add a plugin to the relevant hook, and get those variables registered. We can do this with a little more info about the template, code, etc.

I'd like for it to potentially be in either the header or navbar template. I've had no problem getting it work on the sidebar.

deltahawk5 06-20-2013 06:40 PM

Anyone?

deltahawk5 06-24-2013 11:13 AM

Guess this isn't possible?


All times are GMT. The time now is 09:06 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.01054 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete