Log in

View Full Version : Profile Field as User Title/Rank


Mobo
09-17-2009, 08:28 AM
I'm looking for a mod that will take the Location user profile field when filled out and make it the users title/rank. Is there a way to do this?

Thanks.

--------------- Added 1253182246 at 1253182246 ---------------

Okay, I found a way to replace the user rank with a profile field...

<if condition="$post['rank']"><div class="smallfont">$post[feildX]

Change the X to the ID number of the field you want displayed.

James Birkett
09-17-2009, 02:35 PM
Your code above should actually be:
<if condition="$post['rank']"><div class="smallfont">$post[fieldX]</div></if>

In regards to your problem with usertitles, you could attempt to use conditionals in the usertitle.
<if condition="$post['usertitle']">$post[location]</if>

(not sure if it would work! Untested)

Mobo
09-18-2009, 11:17 AM
Thanks for pointing out the code errors James. I'll have to go look and see if I have them in my file that I actually edited... as it is working correctly on my site.

For the user titles, I was actually able to use the same code, just swapped out the 'rank' for 'title'. I ended up not using the title version though.