Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Cheat on June 13, 2010, 01:47:39 AM

Title: Hiding Karma
Post by: Cheat on June 13, 2010, 01:47:39 AM
Hi, I'm using SMF 2.0 RC3. I am looking for a way to hide the "Karma: #" on topic and profile view. I still want to be able to add and subtract Karma, but the value and title needs to be hidden.

I've tried to edit it out of the Display.template.php file in the default theme, but I keep getting an error. Is there a way to remove it?


// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<li class="karma">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
elseif ($modSettings['karmaMode'] == '2')
echo '
<li class="karma">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';
Title: Re: Hiding Karma
Post by: Cheat on June 13, 2010, 07:12:19 PM
I tried deleting that section from the file and got a black bar at the top of all topics with the following at the far left of it:

Title: Re: Hiding Karma
Post by: Deaks on July 10, 2010, 05:43:14 PM
ss4_Cheatlancer do you still need assistance if so please attach your Display.template.php