The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Just a quickie
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 |
#2
|
||||
|
||||
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. |
#3
|
||||
|
||||
Use $post[field5].
|
#4
|
|||
|
|||
Quote:
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 [DATE]1202845160[/DATE] at [TIME]1202845160[/TIME] --------------- 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> |
#5
|
||||
|
||||
You got it, sir.
If this phrase (Support_perm) is the word support you don't need that word in there too. |
#6
|
|||
|
|||
Can I delete (Support_perm) then or just support so it shows (perm)
|
#7
|
|||
|
|||
I would just put this:
Quote:
|
#8
|
||||
|
||||
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 [DATE]1202847323[/DATE] at [TIME]1202847323[/TIME] --------------- 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. |
#9
|
|||
|
|||
If I don't write the highlighted section then it doesn't show on the page.
|
#10
|
||||
|
||||
Ok, I'll ask one more time, what is this? Support_perm. That phrase, what does it say?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|