vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   How to display stuff in the new Postbit ? (https://vborg.vbsupport.ru/showthread.php?t=299053)

discover_xs 06-13-2013 09:25 AM

How to display stuff in the new Postbit ?
 
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

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/showthrea...=297041&page=2


All times are GMT. The time now is 06:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01029 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete