vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Displaying reputation amount? How to (https://vborg.vbsupport.ru/showthread.php?t=214669)

Fulla 05-27-2009 03:12 PM

Displaying reputation amount? How to
 
I've noticed on alot of forums, they've managed to alter the rep displayed under Usernames so it also displays the actual numerical amount. I searched around a bit for some mods, but couldn't find anything.

So basically wanted to ask if anyone knows what part of the script I need to alter in templates?

Here is a screenshot, just to further clarify what I want to change.
https://vborg.vbsupport.ru/external/2009/05/32.jpg


I'd like it to alter it so it displays - Username - Reputation Message - (Amount of Rep) -
Thx for any help.

Cryo 05-27-2009 03:39 PM

Use $post[reputation] to display the number.

Fulla 05-27-2009 03:57 PM

Ok I tried this:

<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>

However it displays Outside the box, how can I make it inside?

BlueNinjaGo 05-27-2009 03:58 PM

Where in the template did you put it?

Cryo 05-27-2009 03:58 PM

Can you explain what you're trying to do?

Fulla 05-27-2009 04:07 PM

Quote:

Where in the template did you put it?
In: postbit_legacy

Quote:

Can you explain what you're trying to do?
Basically when you move your cursor over someone's rep, I'd like the actual physical numerical amount to also appear in the box at the end in brackets. Example:
https://vborg.vbsupport.ru/external/2009/05/31.jpg

The code I posted above, partially works, but the rep displayed permanently appears outside the box next the rep bars.

Cryo 05-27-2009 05:11 PM

I'm pretty sure that the $post[reputationdisplay] is constructed on the backend and spits out the final result (images + title). I haven't played it it so I can't really tell you how you would alter it to edit the title portion.


All times are GMT. The time now is 04:47 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.00930 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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