PDA

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


discover_xs
06-13-2013, 09:25 AM
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
06-13-2013, 10:51 AM
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
06-13-2013, 02:43 PM
Try the variable $conversation

See this article regarding profile fields - [vB5] User Profile Fields in the postbit templates (https://vborg.vbsupport.ru/showthread.php?t=297041)

discover_xs
06-13-2013, 03:15 PM
@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
06-13-2013, 03:56 PM
I've never tried it, but I would try {vb:raw conversation.reputation}

discover_xs
06-14-2013, 08:26 AM
{vb:raw conversation.reputation}

Did the Job. :up:

Thank you

but i can not display the custom field using your instructions
https://vborg.vbsupport.ru/showthread.php?t=297041&page=2