vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I insert username in link? (https://vborg.vbsupport.ru/showthread.php?t=250512)

KityKatze 09-14-2010 07:58 PM

How do I insert username in link?
 
I'm running a VB 4.0.6 forum for a World of Warcraft Guild and I'm trying to pull a feed from the Blizzard Armory using an iframe. I can get this to work in BBcode in a post, but I want it in the member profile.

I've followed the instructions here for creating extra tabs in the member profile: https://vborg.vbsupport.ru/showthread.php?t=235860

But I'm not sure how to automagically call the username into my link:

$new_user_data = "<iframe src='http://eu.wowarmory.com/character-model-embed.xml?r=Argent+Dawn&cn=username&rhtml=true' scrolling='no' height='588' width='321' frameborder='0'></iframe>";

Any help much appreciated! Pointing me at a tutorial is groovy, I don't seem to have had much luck searching, probably because I'm not sure the exact terms I should be searching for, :)

Many thanks!

--------------- Added [DATE]1284546726[/DATE] at [TIME]1284546726[/TIME] ---------------

Ah-ha!

Worked it out: {$vbulletin->userinfo['username']}

\o/

--------------- Added [DATE]1284559697[/DATE] at [TIME]1284559697[/TIME] ---------------

uh, ok, so it works, but of course it uses the username of the viewer - how do I get it to use the username of the member who's profile it's on?

I've tried memberinfo.username and post.username but no joy.


All times are GMT. The time now is 02:36 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.01133 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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