The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Modify the reputation mod!
This should be a relatively simple modification. I need it so instead of showing an image as reputation, it says Karma: "reputation description", and if the reputation description requires a reputation of negative, the rep description turns red, if it requires a reputation of zero, it turns black, and if it requires a rep of more then 1, it turns green. Also I need to change all "reputation" to "Karma"
thanks a bunch |
#2
|
||||
|
||||
This can be done by changing the phrases. To change the images to text, you can look through the postbit template and change them.
|
#3
|
|||
|
|||
ummm
how do I do that? im not good with php :/ |
#4
|
||||
|
||||
Phrase Manager > Search in Phrases
|
#5
|
|||
|
|||
whats the postbit template?
|
#6
|
||||
|
||||
Styles & Templates > Style Name > Edit Templates > postbit
|
#7
|
|||
|
|||
Ah excellant! I now have it displaying almost what i want! All that I need to do now is make it so if you have negative karma, the text displayed is red, if you have posotive karma, the text is green, and if you have Zero, the text doesnt change
|
#8
|
||||
|
||||
You can use conditionals in templates like so:
Code:
<if condition="$foo == 0"> Value is zero <else /> <if condition="$foo > 0"> Value is bigger than zero <else /> Value is smaller than zero </if> </if> |
#9
|
|||
|
|||
would you mind writing exactly what I need to put in? im not so good with this lol
Code:
<if condition="$show['minimumreputation'] == 0">Karma: <b>$post[level]</b> <else /> <if condition="$show['minimumreputation'] > 0">Karma: <font color="green"><b>$post[level]</b></font> <else />Karma: <font color="red"><b>$post[level]</b></font> </if> </if> |
#10
|
||||
|
||||
$show['minimumreputation'] is boolean value, not the actual reputation level.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|