vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   [Need Help] Show {vb:raw post.reputation} in everywhere (https://vborg.vbsupport.ru/showthread.php?t=260838)

hoangserip 03-23-2011 08:04 PM

[Need Help] Show {vb:raw post.reputation} in everywhere
 
Hi all,

I want show {vb:raw post.reputation} in Forumhome, Memberinfo, ... but it no work :((
Please help me, thank you so much !!! :)

Lynne 03-23-2011 09:15 PM

$post is only used int he postbit templates. The variable name is different in different templates. You will need to look in the templates and get the variable name. Then also check the query and make sure the reputation field was grabbed there or you will need to add it to the query.

hoangserip 03-23-2011 09:30 PM

Thanks Lynne!!!
But i want show in Forumhome and Memberinfo, how to add query?

Lynne 03-23-2011 10:31 PM

You may not need a query if the info is already available.

You really need to be more specific though. On the forumhome, where are you going to put this? And who's reputation are you going to show? and exactly where? Same thing with the memberinfo page - who's reputation and exactly where? Have you looked in the templates for the variables? What have you tried and where?

hoangserip 03-24-2011 07:43 AM

1 Attachment(s)
Thanks Lynne, please view attach :)

Lynne 03-24-2011 03:18 PM

You are talking about different users for each place. For the Welcome box, you are wanting the reputation of *you*, so $bbuserinfo[reputation] and on the member page, you want it for that member - you'll have to look in the template and find that variable name since I can't remember it (userinfo or prepared or something like that).

hoangserip 03-24-2011 05:01 PM

oh yeah, thanks Lynne so much, it work perfect!!!

Thr33 02-02-2012 11:59 PM

Im trynna get this to work in the header template. Tried a few things n cant seem to the find right string...

{vb:raw bbuserinfo.reputation}
{vb:raw session.reputation}
{vb:raw userinfo.reputation}

trynna put it directly after the Welcome, $username. Any help?

Lynne 02-03-2012 03:57 AM

If any of those are going to work, it would be {vb:raw bbuserinfo.reputation}. But I can't remember the variable name used in the header template, so you will need to look that up and adjust the variable name as needed.

Thr33 02-06-2012 04:56 AM

Thanks Lynne, {vb:raw bbuserinfo.reputation} worked. For some odd reason (probably a typo) it didnt work the first time i tried it lol.


All times are GMT. The time now is 02:16 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.00979 seconds
  • Memory Usage 1,724KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete