vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   reputation points can't be hidden (https://vborg.vbsupport.ru/showthread.php?t=311549)

cpaulet 05-21-2014 11:03 AM

reputation points can't be hidden
 
hello,

I enabled users' option to hide / show reputtation and i changed picture for reputation points in posts, but unfortunately it doesn(
work, i had a look on the web but didn't find any answer to this, here's my template code :
Code:

    <vb:if condition="$show['reputation']">
    <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw    post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
      Reputation : {vb:raw post.reputation}
</span>
</vb:if>

how can i manage to make it work together please ?

Spangle 05-21-2014 01:44 PM

Quote:

Originally Posted by cpaulet (Post 2498772)
hello,

I enabled users' option to hide / show reputtation and i changed picture for reputation points in posts, but unfortunately it doesn(
work, i had a look on the web but didn't find any answer to this, here's my template code :
Code:

    <vb:if condition="$show['reputation']">
    <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw    post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
      Reputation : {vb:raw post.reputation}
</span>
</vb:if>

how can i manage to make it work together please ?

Have you looked in settings, I think ( not 100%) that you can disable it in there.

cpaulet 05-21-2014 01:55 PM

yes, i know, but that's not my point, because option is present for users in usercp, but if they choose hide or show, reputation is always displayed as it shouldn't be ...

Zachery 05-21-2014 06:29 PM

Reputation points don't show by default at all. That is something you added.

cpaulet 05-22-2014 07:32 AM

yes, that's something i added because we didn't want pic

Lynne 05-22-2014 05:19 PM

You need a plugin to do this. If you had the images and they chose not to show their reputation, then you see gray bars instead of green bars. The $show['reputation'] variable isn't used for what you think it is used for - it isn't the user setting, it just defines whether reputation is enabled on the site. You want to use the hook location "reputation_image" for this.

cpaulet 05-23-2014 09:01 AM

Thanks Lynne for answer, i understood that show reputation condition was about enable or disable thing from admincp, but i was wondering if there were a simple hack to avoid installing a plugin like a condition -> if grey image, don't show

Lynne 05-23-2014 06:05 PM

Hmm, well, if I disable reputation for me on my forum, then the image is:

/reputation_off.png

The template has:

<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />

So, I'm guessing that if $row['posneg'] is equal to 'off' then it is set to No? So perhaps try that?


All times are GMT. The time now is 11: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.01054 seconds
  • Memory Usage 1,727KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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