PDA

View Full Version : Show Location on conversation_userinfo


gatsman
04-23-2014, 06:22 AM
On vBulletin 5 it wont show the users location on the post info and i need that.


I want to show the location by editing the conversation_userinfo and add the location under the posts counter:
<li class="b-userinfo__additional-info"><label>{vb:phrase posts}:</label> <span>{vb:raw userInfo['posts']}</span></li>

I have tried this:
<li class="b-userinfo__additional-info"><label>{vb:phrase location}:</label> <span>{vb:raw userInfo.customFields.default.field2_title.val}</span></li>

Any ideas?
*I was told from vbulletin.com that i dont need a hook and all i need is the correct code and that i should post here.

gatsman
04-25-2014, 01:47 PM
No one can help me on this?
Is this the first time someone asks for something like this?

Lynne
04-25-2014, 03:48 PM
Please see this thread - http://www.vbulletin.com/forum/forum/vbulletin-5-connect/vbulletin-5-connect-questions-problems-troubleshooting/vbulletin-5-support-issues-questions/4029953-problem-with-user-profile-fields

gatsman
05-07-2014, 06:14 AM
Thank you got it. :)

--------------- Added 1399447515 at 1399447515 ---------------

just one last thing on this how can i write a condition about it, something like:
<vb:if condition="!empty {vb:raw conversation.userinfo.userfield.field2}">

Lynne
05-07-2014, 05:21 PM
Depends on the template. But something *like*:

<vb:if condition="!$userfield['field2']">

You may need to play with it to find the right variable (could be $userInfo['field2']?).