PDA

View Full Version : How to display stuff in the new Postbit ?


discover_xs
13 Jun 2013, 10:25
Good day
i see that vbulletin keeps track of the reputation points(likes)
in a new way.

so is there a way do display it just below the reputation bar.
In numbers.

Reputation: XX
Reputation power: XX

i know Postbit should be edited but with what code to display those to.


+ whats the correct code to display a custom drop down menu with genders that i put.
To display the option that users chose (female / male) from a drop down menu.

discover_xs
13 Jun 2013, 11:51
Ok so by putting this it works
<li><label>TEXT:</label> <span>VAR</span></li>

but what are the variables

for reputation {vb:raw user.reputation}
does display a number but not the reputation of the user.
Instead it shows the reputation of the user you are currently logged in.

and how to display content from custom field i created?
{vb:raw post['field5']}

where can i see all the vb:raw
options

thank you

Lynne
13 Jun 2013, 15:43
Try the variable $conversation

See this article regarding profile fields - [vB5] User Profile Fields in the postbit templates (http://www.vbulletin.org/forum/showthread.php?t=297041)

discover_xs
13 Jun 2013, 16:15
@Lynne
Thank you for the response and the link is exactly what i needed for setting a gender field.

as for the reputation as a number $conversation ?
can you be more specific pls

{vb:raw user.conversation}
{vb:raw conversation.reputation}
{vb:raw userInfo['conversation']}
{vb:raw conversation['reputation']}

how should be inserted so it displays the reps/likes the user has.
(the user from the avatar) not the user that i am logged in with :)


Thanks ;)

Lynne
13 Jun 2013, 16:56
I've never tried it, but I would try {vb:raw conversation.reputation}

discover_xs
14 Jun 2013, 09:26
{vb:raw conversation.reputation}

Did the Job. :up:

Thank you

but i can not display the custom field using your instructions
http://www.vbulletin.org/forum/showthread.php?t=297041&page=2