View Full Version : Just a quickie
UltraFanatics
02-12-2008, 09:25 AM
Hi all,
I have added a field 5 and 6 via VB control panel, that users have to add fill in when they register or via their control panel.
Anyway. can someone tell me how I get this to show on all their posts on the forum (below where it says joined date / number of posts etc?
I have been trying for ages but can't work out the code required and in what template.. I think its post_legacy?
Cheers
Lynne
02-12-2008, 01:25 PM
This has been covered quite a bit in some posts lately. Search around in here and you'll see it discussed a bit. I think one of the ways to use the variable is "$vbulletin->userinfo[field6]", but I think it can be shorten.
postbit is the template that shows userinfo above the post, postbit_legacy shows the userinfo to the left of the post.
Boofo
02-12-2008, 01:34 PM
Use $post[field5].
UltraFanatics
02-12-2008, 05:29 PM
This has been covered quite a bit in some posts lately. Search around in here and you'll see it discussed a bit. I think one of the ways to use the variable is "$vbulletin->userinfo[field6]", but I think it can be shorten.
postbit is the template that shows userinfo above the post, postbit_legacy shows the userinfo to the left of the post.
It only shows Field6 when I tried this?
Use $post[field5].
This works but only shows the users text not the question too?
IE- I want it like this
Support: England (users answer)
It was only showing England, not the support bit?
--------------- Added 1202845160 at 1202845160 ---------------
Think I have it working as this, although looks rather long lol
<if condition="$post['field5']"><div>$vbphrase[Support_perm]Support: $post[field5]</div></if>
Boofo
02-12-2008, 05:54 PM
You got it, sir. ;)
If this phrase (Support_perm) is the word support you don't need that word in there too.
UltraFanatics
02-12-2008, 05:57 PM
Can I delete (Support_perm) then or just support so it shows (perm)
PaulSonny
02-12-2008, 06:00 PM
I would just put this:
Support: $post[field5]
Thanks, Paul.
Boofo
02-12-2008, 06:02 PM
What is thre phrase Support_perm? If it is the word Support, take the word out so you can keep it language editable. Like this:
<if condition="$post['field5']"><div>$vbphrase[Support_perm]: $post[field5]</div></if>
--------------- Added 1202847323 at 1202847323 ---------------
I would just put this:
Thanks, Paul.
I disagree as you should always use phrases where you can. That makes editing them for different languages easier or if you just want to change the wording of it sometime.
UltraFanatics
02-12-2008, 08:28 PM
What is thre phrase Support_perm? If it is the word Support, take the word out so you can keep it language editable. Like this:
<if condition="$post['field5']"><div>$vbphrase[Support_perm]Support: $post[field5]</div></if>
If I don't write the highlighted section then it doesn't show on the page.
Boofo
02-12-2008, 09:17 PM
Ok, I'll ask one more time, what is this? Support_perm. That phrase, what does it say?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.