vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help display info next to nick? (https://vborg.vbsupport.ru/showthread.php?t=74932)

dreck 01-23-2005 02:59 PM

Help display info next to nick?
 
I would like to display this type of info under the user title of each member:
Code:

1992 Mazda B2200
Engine Size: v4
Transmission: 5 speed

I have created 5 new User Profile Fields.
I would like to display this info next to each users nick below the $post[usertitle] in the postbit template.
My problem is I am not sure how to show different info for each user?
Here is what I have so far:
Code:

<!-- vehicle display info -->
<br> <span class="smallfont"> $bbuserinfo[field6] $bbuserinfo[field7] $bbuserinfo[field8] <br> Engine Size: $bbuserinfo[field9] <br>
Transmission: $bbuserinfo[field10]
</span>
<!--- /vehicle display info --->

Think I need to use something like this:
Code:

<!-- vehicle display info -->
<if condition="!$bbuserinfo['userid']">
<span class="smallfont">Registered members, to display your vehicles year, make, model here.<br />
<else />
<if condition="$bbuserinfo[field2] !=''"> alt="$bbuserinfo[field2]" border="0"></a>
<else />
<A HREF="$vboptions[bburl]/profile.php?do=editprofile">Year</A> to display the stats.
</if>
</if>
</span>
</td>
</tr>
</table>
<br/>
<!--- /vehicle display info --->

Any help?

Thanks.

I figured out how to make it work! :)
Thanks anyway!
Code:

<!--- vehicle display info --->
<br> <span class="smallfont">
<if condition="$post['field6']"><div> $post[field6]</div></if>
<if condition="$post['field7']"><div> $post[field7]</div></if>
<if condition="$post['field8']"><div> $post[field8]</div></if>
<if condition="$post['field9']"><div>Engine Size: $post[field9]</div></if>
<if condition="$post['field10']"><div>Transmission: $post[field10]</div></if>
</span>
<!--- /vehicle display info --->



All times are GMT. The time now is 05:27 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.01000 seconds
  • Memory Usage 1,709KB
  • 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
  • (4)bbcode_code_printable
  • (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