vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Display Forum Reputation Points on Navbar Template (https://vborg.vbsupport.ru/showthread.php?t=252480)

elementsofdance 10-23-2010 10:51 AM

Display Forum Reputation Points on Navbar Template
 
Hey Guys,

I hope someone can help me out on this one. I'm not a programmer, but after trying for a few hours, I can't for the life of me figure out how to post the users reputation points number on the Forum's Template Navbar.

Is there some generic code I can implement to display the logged in users rep points on the forums Navbar?

Thanks in advance,

EOD

BirdOPrey5 10-23-2010 11:27 AM

The code that would do it is:
$bbuserinfo[reputationdisplay]

But I'm not sure it's available in the navbar template by default.

elementsofdance 10-23-2010 11:34 AM

Hey, thanks for the response. That code doesn't work. I don't see anything appear when I put it in the template. Am I doing something incorrect?

I'd like to basically have this following code (or a version of it) on the NAVtemplate..


Code:

<if condition="$show['reputation'] & $show['reppower']">
<tr>
                <td align="right" class="time" width="50%">Rep Points:</td>
                <td align="left"><span id="reppower_$post[postid]_$post[userid]">$post[reputation]</span></td>
</tr>
</if>


kh99 10-23-2010 11:41 AM

If you haven't already, maybe try just $bbuserinfo[reputation]

elementsofdance 10-23-2010 11:43 AM

Is that all that I type, just $bbuserinfo[reputation] and it should display? Do i have to do anything else?

**EDIT** Oh wow, it worked, awesome thank you so much lol.

kh99 10-23-2010 11:45 AM

BTW, anything with $post is unlikely to work since that's used to hold the info for a specific post, and so won't be set in the navbar.

ETA: glad it worked.


All times are GMT. The time now is 07:39 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.01388 seconds
  • Memory Usage 1,715KB
  • 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)bbcode_code_printable
  • (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