vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   MEMBERINFO Question (https://vborg.vbsupport.ru/showthread.php?t=205311)

Cledus James 02-14-2009 05:00 AM

MEMBERINFO Question
 
Quick question, anyone know the command to display a user's profile pic in the MEMBERINFO template. The style I have doesn't have the profile pictures displayed. I tried:

Code:

$prepared[profile_picture]
$post[profile_picture]
$userinfo[profile_picture]

With no luck.


Thanks.

TigerC10 02-14-2009 05:25 AM

Try
Code:

$blocks[profile_picture]

Spank 02-14-2009 05:54 AM

The variable is
Code:

$prepared[profilepicurl]
which you'll need to put into an image url, along with an if condition so that nothing displays if a user doesn't have a profile pic. Here's the whole shebang:
Code:

<if condition="$prepared['profilepicurl']">
                                        <td id="profilepic_cell" class="tborder alt2"><img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td>
                                </if>


TigerC10 02-14-2009 06:04 AM

Quote:

Originally Posted by Spank (Post 1743591)
The variable is
Code:

$prepared[profilepicurl]
which you'll need to put into an image url, along with an if condition so that nothing displays if a user doesn't have a profile pic. Here's the whole shebang:
Code:

<if condition="$prepared['profilepicurl']">
                                        <td id="profilepic_cell" class="tborder alt2"><img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td>
                                </if>


I think that is the code in the template memberinfo_block_profilepicture. It'd be best if he just used

Code:

$blocks[profile_picture]
To call the appropriate code from memberinfo_block_profilepicture, instead of replicating/inlining the code. That way, if there's a tempate update in the future, it doesn't break things unnecessarily upon "revert".

Spank 02-14-2009 06:34 AM

Yeah you're right. Although the code I used was in my MEMBERINFO template. I'll update it me thinks :)

TigerC10 02-14-2009 06:37 AM

^_^ It's probably from an older style standard, from before 3.7 was released. We didn't have the notion of "blocks" before that.

Cledus James 02-14-2009 03:39 PM

Thanks for the responses guys.

But the problem really turned into something else. Mainly, my problem is the profile pictures are not showing up in my profiles after installing a new style. Instead of just replying here for more help I decided to make a whole new post about it that better explains my situation. Anyways, if any of you have time, please check out my new post:

https://vborg.vbsupport.ru/showthrea...32#post1743932

Thanks for your help.


All times are GMT. The time now is 08:12 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.01310 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
  • (7)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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