vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Retrieving a custom user profile field and displaying it in MEMBERINFO template (https://vborg.vbsupport.ru/showthread.php?t=225020)

JamesGunner 10-11-2009 12:40 PM

Retrieving a custom user profile field and displaying it in MEMBERINFO template
 
Hey,

Im trying to insert an iframe in the Memberinfo template. It's at the right position but it doesnt retrieve the user profile data Im looking at, instead it retrieves my data.

the code:

PHP Code:

<if condition="$bbuserinfo['field5']"><iframe src="http://xxxxx=$bbuserinfo[field5]align="right" width="254" height="48" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></if> 

I was looking at a profile and it was actually showing my information instead of the user's profile information im looking at. For example if I look at "Players profile" it actually shows my custom profile data on his profile instead of mine. I already tried searching but I guess I need to replace "$bbuserinfo" with something else. I hope you know what I mean.

Quick version:

Basically retrieve a custom user profile field and display it in MEMBERINFO Template.


Thanks for the help ahead.

James

HMBeaty 10-11-2009 12:47 PM

Close, but not quite lol. You would use...
HTML Code:

$userinfo[fieldx]

JamesGunner 10-11-2009 01:02 PM

Thanks for the help!


All times are GMT. The time now is 01:04 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.02270 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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