vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Is setting my reputation as this possible? (https://vborg.vbsupport.ru/showthread.php?t=238177)

Venturer X 03-13-2010 03:23 PM

Is setting my reputation as this possible?
 
Hey, I wanted to have a little play around with my user.

I wanted to set myself to have an infinite amount of reputation, not 999999 or anything but either display the symbol "∞" or have to word "Infinite" or "Infinity" show up.

I only want this to happen for my userid and no-one else.

I am in usergroup id "21" - Root Admin

Is maybe using a vb:if function in the postbit the way forward?

PS : I also want it to it is impossible to give me reputation which may screw up the word or something

PPS : I found that the HTML code for the infinity symbol ∞ is & # 8 7 3 4 ; without the spaces, would that help?

--------------- Added [DATE]1268503287[/DATE] at [TIME]1268503287[/TIME] ---------------

I got it working.

My code :
Code:

<vb:if condition="$show['reputation']">
<vb:if condition="$bbuserinfo['userid']==2">
                                                <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}"><dt>Reputation</dt>∞</span>
</vb:if>
<vb:if condition="$bbuserinfo['userid']!=2">
                                                <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}"><dt>Reputation</dt>{vb:raw post.reputation}</span></vb:if>
                                        </vb:if>

In postbit


EDIT : not working, everyone has Infinite rep now

Videx 03-14-2010 02:31 AM

You have too much free time on your hands.


All times are GMT. The time now is 04:47 PM.

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.01595 seconds
  • Memory Usage 1,709KB
  • 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
  • (2)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