View Full Version : Reputation Coding Questions
J o o k
02-03-2014, 05:10 PM
<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.php?p=2478732&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
You have posted this same question in three other places, as well as send me a PM about it:
https://vborg.vbsupport.ru/showpost.php?p=2478732&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
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
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 1391539193 at 1391539193 ---------------
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
you want to do this ?
https://vborg.vbsupport.ru/showthread.php?t=237985
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
<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>
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.