vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Reputation Coding Questions (https://vborg.vbsupport.ru/showthread.php?t=307882)

J o o k 02-03-2014 05:10 PM

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

This is what I have in my postbit and postbit legacy. I am running 4.2.2.

I'm trying to have the bars for reputation instead of the reputation number value, but when I change it to vb:raw post.reputationdisplay it shows "reputation array" instead of bars. Green bars would be okay, but the orange bars would fit my theme.

Can anyone help me out, please?

ozzy47 02-03-2014 09:19 PM

You have posted this same question in three other places, as well as send me a PM about it:

https://vborg.vbsupport.ru/showpost....2&postcount=40
https://vborg.vbsupport.ru/showthread.php?t=307851
https://vborg.vbsupport.ru/showthread.php?p=2478813

Please only post once, and wait for a answer. Once someone see it and has a idea they will answer.

J o o k 02-04-2014 03:08 PM

Quote:

Originally Posted by ozzy47 (Post 2478859)
You have posted this same question in three other places, as well as send me a PM about it:

https://vborg.vbsupport.ru/showpost....2&postcount=40
https://vborg.vbsupport.ru/showthread.php?t=307851
https://vborg.vbsupport.ru/showthread.php?p=2478813

Please only post once, and wait for a answer. Once someone see it and has a idea they will answer.

Correct, and I apologize for doing so. Reason behind it is because I'm not sure if I was posting it in the right section. I'm going to assume you do not have an idea for me at this point, but thanks for the heads up.

squidsk 02-04-2014 03:23 PM

Quote:

Originally Posted by J o o k (Post 2479024)
Correct, and I apologize for doing so. Reason behind it is because I'm not sure if I was posting it in the right section. I'm going to assume you do not have an idea for me at this point, but thanks for the heads up.

You have customized the template as that is not how it appears in the default version of template. Revert the changes and you'll get the rep images back.

J o o k 02-04-2014 05:13 PM

Quote:

Originally Posted by squidsk (Post 2479028)
You have customized the template as that is not how it appears in the default version of template. Revert the changes and you'll get the rep images back.

Thank you for your response.

I did this, and changed it back to the original. It got rid of the number display, and added in the word "Array" again.

I'll post the changes here:

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

What I did was take out the word "Reputation" to the right of the red text, and added in the word "display" (green text) which is how it was in the beginning.

Then I tried taking out the word "display" (green text above) and left out the word "reputation" and now it shows JUST the number value, and not "Reputation 1234"

I did this in postbit and postibit.legacy. Is there another place I need to do this in @squidsk ?

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

I changed it back to say "Reputation - 1234" until I can figure this out. I tried web searches, and I searched in this whole entire forum. Beyond me, man.

Eduardo Leon 02-04-2014 07:19 PM

you want to do this ?

https://vborg.vbsupport.ru/showthread.php?t=237985

J o o k 02-05-2014 06:20 PM

Quote:

Originally Posted by Eduardo Leon (Post 2479048)

I followed those directions. I read every post in there and changed my coding accordingly. I wouldn't post a thread until I exercised my resources.

I found the code in my postbit and legacy from the first post, and changed it to the post to show the numbers. THen I read how to do it so it showed the green bars, and when I did that, it changed it to "array".

I think the THEME that I have for my message board is not compatible with 4.2.2. I believe it's from 4.1.x

It's cool. Thanks for the information, and any others that can help I appreciate it. I'm going to find a theme that's more up to date in accordance with my version, and that should fix the problem.

squidsk 02-05-2014 07:24 PM

Quote:

Originally Posted by J o o k (Post 2479036)
<vb:if condition="$show['reputation']">
Code:

                <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
            </vb:if>


That code without the display added is not the default (i.e. supplied by vbulletin). When looking at the template click the revert button to restore it to the vbulletin default. Note you may have to do this with any parent styles you also have. An alternative is to create a new style with no parent and look at what the code for reputation is in the postbit and postbit_legacy templates in that new default style.


All times are GMT. The time now is 09:16 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.01175 seconds
  • Memory Usage 1,737KB
  • 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
  • (5)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