Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: slay3rg1 on April 12, 2008, 11:16:18 AM

Title: Karma and color name
Post by: slay3rg1 on April 12, 2008, 11:16:18 AM
hello everybody i'm using SMF 2 Beta 3 and i want to add reason for add or remove karma

how i can do it ??

and also how i can make admin and mods name on post to be red and blue ??
Title: Re: Karma and color name
Post by: Amun on April 12, 2008, 11:21:37 AM
You might want to check out this mod

http://custom.simplemachines.org/mods/index.php?mod=1129
Title: Re: Karma and color name
Post by: slay3rg1 on April 12, 2008, 11:30:30 AM
but i got this

                         Execute Modification     ./Sources/Karma.php     Test failed
      1.    Add Before    ./Sources/Karma.php    Test successful
      2.    Replace    ./Sources/Karma.php    Test successful
      3.    Replace    ./Sources/Karma.php    Test failed

what should i do now ??
Title: Re: Karma and color name
Post by: Amun on April 12, 2008, 12:46:29 PM
Manually add the package I guess, maybe another package is conflicting. I'm a newbie though so who knows xD

If I recall right there was a package parser on smfhacks.com that might help.  It tells you what manual edits to make.
Title: Re: Karma and color name
Post by: Furry on April 12, 2008, 09:50:57 PM
You can find the package parser here (http://sleepycode.com/PackageParser/index.php). That one works for 2.0 beta.
Title: Re: Karma and color name
Post by: slay3rg1 on April 13, 2008, 11:39:00 AM
and what package parser  is ??
Title: Re: Karma and color name
Post by: Furry on April 13, 2008, 08:44:11 PM
The package parser shows you manual edits to make to files in order to install mods. You just select your version, whether you're installing or uninstalling and then upload the mod.

It's useful when it can't be installed normally, like your Karma mod.
Title: Re: Karma and color name
Post by: Bulakbol on April 14, 2008, 12:45:53 AM
Quote from: slay3rg1 on April 12, 2008, 11:16:18 AM

and also how i can make admin and mods name on post to be red and blue ??

Try this. Default/Display.template.php
Code (find) Select
echo '
', $message['body'], '


and replace with
echo '<span style="color: '. ($message['member']['group_id'] == '1' || $message['member']['group_id'] == '2' ? $message['member']['group_color'] : ''). ';">', $message['body'], '</span>

Or if you want other colors, try this mod (http://custom.simplemachines.org/mods/index.php?mod=1061)