The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Im talking about the rep thing that comes with 3.0.3 here:
is there any way to make the text of the rep meter change depending on whether its good or bad. For instance: Is a users rep is 15 the postbit says Good Rep: (and then the green bars) but if they have a negative rep of -15 the postbit says: Bad Rep: (and then the red bars) i dont know much about php but isnt there a place where u can do and if else statement and make it write out different words depending on if the rep is below or above 0 |
#2
|
||||
|
||||
![]()
You can use and if / else statement in the postbit template. Check the documentation on vbulletin.com for the structure and syntax.
|
#3
|
||||
|
||||
![]()
i cant find it in the postbit_legacy. It doesnt write anything directly, its all stuff like $reppower. I lookd there, i looked in all the reputation templates, and i looked in reputation.php, but i cant find it anywhere, HELP ME!! IM CONFUSED!!
I figured out that this code is what writes it out. $post[reputationdisplay] but i have no idea where thats defined |
#4
|
||||
|
||||
![]()
BUMP NO JUTSU!!
*thread goes back to top* |
#5
|
||||
|
||||
![]()
awwww man does nobody know?? I dont know php, but this seems like a small thing right??
|
#6
|
||||
|
||||
![]()
In the postbit_legacy template find ;
PHP Code:
PHP Code:
![]() |
#7
|
||||
|
||||
![]()
i wish it were that easy, this is what my legacy has:
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if> |
#8
|
||||
|
||||
![]() Quote:
HTML Code:
<if condition="$show['reputation']"> <div> <if condition="$post['reputation'] < 0"> Bad Rep : <if condition="$show['reppower']">$vbphrase[reppower] : $post[reppower]</if> $post[reputationdisplay] <else /> Good Rep : <if condition="$show['reppower']">$vbphrase[reppower] : $post[reppower]</if> $post[reputationdisplay] </if> </div> </if> ![]() |
#9
|
||||
|
||||
![]()
actually thats the rep that came with my 3.0.3 i just turned it on., also heres what happened when i replaced my code with urs:
http://www.shinobi-online.com/showth...hp?p=19#post19 |
#10
|
|||
|
|||
![]()
thanks.. that worked for me....
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|