PDA

View Full Version : {vb:raw post.usertitle} in Product template


MoH672
02-12-2013, 04:18 PM
I've searched and searched for a way to do/understand this, but I'm at a loss so your help is appreciated.

I want to be able to place the usertitle in a Product Template, specifically a clan roster.

When I try and place the {vb:raw post.usertitle} in the template, it returns nothing. I am assuming this is because the variable is undefined in the Product, but I don't know where or how to add it.

I am trying to place the user title, which is the user's rank, below the username in the following roster:

http://www.combatpandas.com/forums/showroster.php

Thanks for your help.

vB 4.2.0 Patch Level 3

kh99
02-12-2013, 04:28 PM
post.usertitle would only be defined in a post template. You want something in place of post, but I don't know what it is without seeing your script (I assume you copied an existing vb script because it looks familiar, but I can't remember which one offhand). Just as a guess, maybe something like {vb:raw memberinfo.usertitle}? You should be able to tell by looking at the script.

MoH672
02-12-2013, 06:34 PM
Ah, yes, thank you.

The correct vb script was:

{vb:raw userinfo.usertitle}

Thanks for your help!