The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hey guys,
I am trying to insert three new profile fields in vBulletin. I have already created them and now they show up when the user registers for an account. Now, I am trying to go a little more into detail. When a user posts on the site, where all the user title, location, # of posts, and join date is, I want to insert the three additional fields that I have created. Now, I already have the code that I need to make the insert. The problem is that I am missing some "certain" code. These are the three lines of code I inserted into the 'postbit' template. <if condition="$post['field5']"><div>$vbphrase[ign]: $post[field5]</div></if> <if condition="$post['field8']"><div>$vbphrase[class]: $post[field8]</div></if> <if condition="$post['field7']"><div>$vbphrase[guild]: $post[field7]</div></if> Now when I insert these lines of code, they are in the correct place. When I refresh the actual page to see if they show up in the post header, they do. The thing that is not making sense to me is, why is it only giving me this data back. :"whatever the value of field5 is" :"whatever the value of field8 is" :"whatever the value of field7 is" Now, those "whatever" statements above, actaully do put out the correct data. So, my question is where are the phrases that go before the colon? Is there someone that I have to specify what vbphrase[] is equal to? I know that it is the vbprhase coding because I have tested the other two statements. So, how is this problem rectified? Any help would be appreciated. Please let me know if you need clarification on something. I tried to explain my situation as best as I could. |
#2
|
||||
|
||||
![]()
Nothing is more annoying when someone posts a code REQUEST in the code RELEASE forum. Re-read all the forum descriptions (which is why they are there, to save people from these embarassing moments) before posting.
|
#3
|
||||
|
||||
![]()
Wrong forum mate.
Anyway, use this: <if condition="$post['field5']"><div>$vbphrase[ign]: $userinfo[field5]</div></if> <if condition="$post['field8']"><div>$vbphrase[class]: $userinfo[field8]</div></if> <if condition="$post['field7']"><div>$vbphrase[guild]: $userinfo[field7]</div></if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|