vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   vb 4.1.8 reputation as number (https://vborg.vbsupport.ru/showthread.php?t=274886)

youhack 12-01-2011 04:50 AM

vb 4.1.8 reputation as number
 
Tell me please how to make a map of the reputation of the number in 4.1.8


example
Reputation: 172 +/-

LifesGreatestGift 12-01-2011 04:59 AM

Pretty sure if you open postbit or postbit_legacy
(depending on your layout) and

FIND
Code:

{vb:raw post.reputationdisplay}
REPLACE WITH
Code:

{vb:raw post.reputation}
will do what you are looking for.

youhack 12-01-2011 05:21 AM

in 4.1.8 no {vb:raw post.reputationdisplay}
change variables in code

PHP Code:

<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
<
vb:each from="reputationdisplay" value="row">
<
img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend}
</
vb:each>
</
span


LifesGreatestGift 12-01-2011 05:32 AM

can you try

FIND
Code:

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

REPLACE WITH
Code:

{vb:raw post.reputation}

youhack 12-01-2011 05:55 AM

reputation does not appear

LifesGreatestGift 12-01-2011 05:25 PM

im upgrading my vB to 4.1.8 (from 4.1.4) to look at the database/code changes. will get back to you if no one else does.

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

i used the following code and it works just fine

FIND
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}">
                    <vb:each from="reputationdisplay" value="row">
                        <img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend}
                    </vb:each>
                </span>
            </vb:if>

REPLACE WITH
Code:

            <vb:if condition="$show['reputation']">
                <span>
Reputation: {vb:raw post.reputation}
                </span>
            </vb:if>

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

feel free to style it as needed.

youhack 12-02-2011 04:49 AM

TheWindows7Site thanks a lot! works great!

The Mailman 12-09-2011 05:54 PM

edit: I did the above and found that not putting the <dt> tags in was causing it to fly out of the table

https://vborg.vbsupport.ru/external/2011/12/46.jpg

LifesGreatestGift 12-09-2011 06:28 PM

Quote:

Originally Posted by The Mailman (Post 2276322)
edit: I did the above and found that not putting the <dt> tags in was causing it to fly out of the table

https://vborg.vbsupport.ru/external/2011/12/46.jpg

Yes, i was just giving you the "core" code, you may style it as you wish depending on the placement etc.

Quote:

feel free to style it as needed.

Dadopeman 12-10-2011 12:37 PM

Any help for vbulletin 3.8 and second of all.

How can we have +/- thing next to the Reputation: 10

Reputation: 10 +/-


All times are GMT. The time now is 11:49 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.01023 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete