vb.org Archive

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

Pt1994 08-11-2009 09:15 PM

Display Name?
 
Ok i have made a profile field Display Name (field6)

and i want it to replace the users username on the forums without changing it i tried this

PHP Code:

<if field6="true">
$post[field6]
<else>
$post[musername]
</else>
</if> 

This didnt work.. need help on this one how can i do it

HMBeaty 08-11-2009 09:21 PM

Almost. Try this...
HTML Code:

<if condition="$userinfo[field6]">
$post[field6]
<else />
$post[musername]
</if>


Pt1994 08-11-2009 09:54 PM

no this dosent work just displays username :S

Lynne 08-11-2009 10:35 PM

I think Brooks meant this:

HTML Code:

<if condition="$post['field6']">
$post[field6]
<else />
$post[musername]
</if>


HMBeaty 08-11-2009 10:45 PM

Oh, haha. Thanks Lynne :)

Pt1994 08-12-2009 12:02 PM

yeah i noticed that too after i had made my post i looke dover my code again and noticed it thanks for your help


All times are GMT. The time now is 09:28 AM.

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.02755 seconds
  • Memory Usage 1,715KB
  • 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_html_printable
  • (1)bbcode_php_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