vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Showing reputation points in 3.0.3? (https://vborg.vbsupport.ru/showthread.php?t=69702)

Cold Steel 09-21-2004 05:53 PM

Showing reputation points in 3.0.3?
 
3.0.3 gives users the additional option of hiding their reputation.

In my postbit_legacy template, I show exactly how many reputation points a user has:

Points: $post[reputation]

Is there a conditional I can use to hide that number if the user has opted to hide their reputation?

Dean C 09-21-2004 06:12 PM

Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you :)

Thanks,
- Dean

deathemperor 09-22-2004 06:44 AM

it should be:

HTML Code:

<if condition="$post['reputationdisplay']">$post[reputation]</if>

Cold Steel 09-22-2004 05:12 PM

Thanks Dean C.

That conditional had no effect for me, deathemperor.

deathemperor 09-23-2004 10:26 AM

I used <if condition="$userinfo['reputationdisplay']">$userinfo[reputation]</if> for my MEMBERINFO template and it works, replacing the userinfo with post should make it work on postbit.

Ok, I figured it out.

HTML Code:

<if condition="$show['reputation']">$post[reputation]</if>
it should be fine

Cold Steel 09-23-2004 07:41 PM

That's not working 100% for me.

This is what I have in my template:

HTML Code:

<if condition="$show['reputation']">
<fieldset>
        <legend><strong>Karma:</strong></legend>
        Points: $post[reputation]
        $post[reputationdisplay]
        </fieldset>
</if>

http://asiansinc.com/forums/showpost...56&postcount=1

As you can see from the above link, the image alt tag says that I've disabled reputation. However, the actual numerical value of 30 still shows.

deathemperor 09-24-2004 02:36 AM

now I'm lost

this is what the default postbit do to show the reputation if the user enables
HTML Code:

<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
I also tested this but it doesn't work either

Cold Steel 09-25-2004 12:26 AM

I did a search on vb.com, and found the answer:

HTML Code:

<if condition="$post['showreputation']"></if>
http://www.vbulletin.com/forum/showp...01&postcount=8

Thanks for your time. Much appreciated.


All times are GMT. The time now is 12:34 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.01171 seconds
  • Memory Usage 1,725KB
  • 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
  • (5)bbcode_html_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