Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2014, 07:33 AM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "Real Name" does not appear in user fields

Hi!

I'm the Admin on the Pipesmoker Unlimited forum, currently running vBulletin 4.2.1

In the ACP, in the User Profile Manager, I have added a new user profile field:

"Real Name"

I want the "Real Name" to appear under the user names on forum level (under the avatar).

"Location" IS displayed but not "Real Name".

How do I make "Real Name" appear??

Note: I have read this thread: click

But what puzzles me is that "Location" is present in the user fields, but not present when you check the templates. What I need is to have both "Location" and "Real name" in the user fields together with their post count etc.
Reply With Quote
  #2  
Old 02-05-2014, 01:22 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are looking at a vb5 article. Try this one instead: https://vborg.vbsupport.ru/showthread.php?t=250418
Reply With Quote
  #3  
Old 02-05-2014, 01:48 PM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.

I will have a look.
Reply With Quote
  #4  
Old 02-05-2014, 01:56 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You want to go to Styles & Templates > Style Manager, then in the dropdown menu for the style you want to edit ("default" if you have only one style), choose "Edit Templates". Then in the template list find "Postbit Templates" and double click it to expand the list. Then double click postbit_legacy" to edit it.
Reply With Quote
  #5  
Old 02-05-2014, 07:41 PM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, found what you pointed to.

But I am still at a loss! Where exactly do I put the following in the article:

<vb:if condition="$post['fieldx']"><dt>My FieldX</dt> <dd>{vb:raw post.fieldx}</dd></vb:if>

Where I of course change "fieldx" to the actual field name and the green field to whatever I want.

I want the "Real name" to stand AFTER "Location" and BEFORE "Posts"... also, I need a : after "Real name"

I did try to insert the code but the "Real name" didn't appear in the user field (I have my real name on my profile page).
Reply With Quote
  #6  
Old 02-06-2014, 11:27 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like the article says under "Method 1", find this:
Code:
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>

and after it, put something like this:
Code:
<vb:if condition="$post['fieldx']"><dt>My FieldX</dt> <dd>{vb:raw post.fieldx}</dd></vb:if>

that puts it after the post count. If you want it to appear somewhere else, it should be easy enough to look at the template code around that same place and find where to move it.
Reply With Quote
  #7  
Old 02-06-2014, 12:06 PM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, makes sense... I'll give it a try.
Reply With Quote
  #8  
Old 02-06-2014, 12:11 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BULLDOG View Post
Yeah, problem is that I did that but it doesn't work.

Could you possible edit it for me (the script above) so that i can copy/paste it in?

BTW.: "After" it, does that mean "under" it (a new line), or straight after it??
Yes he meant under it, this is how it would look then:

Code:
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
<vb:if condition="$post['fieldx']"><dt>My FieldX</dt> <dd>{vb:raw post.fieldx}</dd></vb:if>
I simply pasted it directly below the code kh99 referenced as seen above ^ . *Of course you know to replace fieldX the red X with the actual field ID# for your matching field and then type in what you want it to say for the link name where it says "My FieldX".
Reply With Quote
2 благодарности(ей) от:
BULLDOG, kh99
  #9  
Old 02-06-2014, 01:15 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BULLDOG View Post
Yeah, problem is that I did that but it doesn't work.

Could you possible edit it for me (the script above) so that i can copy/paste it in?

BTW.: "After" it, does that mean "under" it (a new line), or straight after it??

Like Mike said. It actually doesn't matter if it's right after or on the next line, but it's easier to read if you put it on it's own line.

I think you might actually be less likely to mess up the template if you add that line than if you try to copy the entire thing. Also, although I usually choose to just answer people's question rather than telling them to search or to figure it out, in this case it should be easy enough that I think you'd benefit by taking a minute and finding where it goes. If you mess up the template you can always select it and choose "revert" (assuming there haven't been any other changes made to it, of course).
Reply With Quote
Благодарность от:
BULLDOG
  #10  
Old 02-07-2014, 12:03 PM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks guys! It worked!

"Case closed"
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:36 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.04932 seconds
  • Memory Usage 2,280KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete