vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   members avatar (https://vborg.vbsupport.ru/showthread.php?t=197285)

cmedic101 11-26-2008 11:59 AM

members avatar
 
Good Day,

I'm trying to get my users avatar to show up on the forumhome page. I have tried many codes entries without success. Can someone give a little direction on what the code should look like.

thanks in advance

cmeidic101

Lynne 11-26-2008 02:03 PM

do a search on "avatar*" "all mods" "titles only" and see how other modifications, like this one Place Avatar in VB and Non-VB Pages, deal with this issue.

cmedic101 11-27-2008 04:58 PM

Quote:

Originally Posted by Lynne (Post 1673363)
do a search on "avatar*" "all mods" "titles only" and see how other modifications, like this one Place Avatar in VB and Non-VB Pages, deal with this issue.


Thanks for the reply... After searching and using different code like this one

Code:

<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" width="100px" height="100px" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
I am still getting the same results....Nothing is showing up... could it be because the line of code was written for a postbit template?

I also tried a code written for the navbar template with out success

cmedic101

Lynne 11-27-2008 05:00 PM

The variable $post is only used in the postbit templates, it won't work in others. In most others, you would use $bbuserinfo if it is regarding the person browsing the site and $userinfo if it is regarding a user who's page you are looking at (a member.php page).

cmedic101 11-27-2008 05:19 PM

Quote:

Originally Posted by Lynne (Post 1674135)
The variable $post is only used in the postbit templates, it won't work in others. In most others, you would use $bbuserinfo if it is regarding the person browsing the site and $userinfo if it is regarding a user who's page you are looking at (a member.php page).


I tried this one and still no dice
Code:

<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$bbuserinfo [userid]"><img src="$bbuserinfo [avatarurl]" width="50px" height="50px" alt="<phrase 1="$bbuserinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
this is hard stuff to figure out

c

Lynne 11-27-2008 05:38 PM

Do you actually have those spaces in there? ie. $bbuserinfo [userid] Cuz you shouldn't have any spaces. What is getting spit out into your page source?


All times are GMT. The time now is 03:50 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.01703 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (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