News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Karma Doesn't appear of DoD theme in the display

Started by tridirk, September 12, 2008, 11:57:09 AM

Previous topic - Next topic

tridirk

The Karma doesn't appear in the DoD theme I am using.  It appears on the other themes and the default theme.  It appears in the Private Message area but not the general display.

echo '<tr><td class="', $message['alternate'] == 0 ? 'windowbg2' : 'windowbg', '" align="center" valign="middle"><span class="normaltext">', $message['member']['group_stars'], '</span></td></tr>';
}

// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
{
    echo '<tr><td align="left" style="padding-left: 20px;" class="', $message['alternate'] == 0 ? 'windowbg2' : 'windowbg', '" valign="top">';

    echo '
                 <table width="100%" border="0" cellpadding="0" cellspacing="0">
                 <tr>
                       <td align="center" class="smalltext">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</td>';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
  echo '<td>
   <a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '" style="padding-left: 0px;"><img src="', $settings['images_url'], '/thumbsup.gif" /></a> || <a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="', $settings['images_url'], '/thumbsdown.gif" /></a></td>';

    echo '
  </tr>
</table>';

   echo '
  </td>
</tr>';

}
}
// Show how many posts they have made.
echo '<tr>
<td class="', $message['alternate'] == 0 ? 'windowbg2' : 'windowbg', '" align="center" valign="middle" ><span class="smalltext">', $txt[26], ': ', $message['member']['posts'], '</span></td></tr>';

It is in the diplayt.template.php and above is the code?  Anything I am missing?
Learning SMF..... Thanks for your help!

ccbtimewiz

Try doing this...

Find:
if ($modSettings['karmaMode'] == '1')

Replace with:
if(( $modSettings['karmaMode'] == '1') || ($modSettings['karmaMode'] == '2'))

tridirk

Thanks for the help, the Karma points now show, but some have || after their karma points.  Oh and the ability to add to their karma still does not appear, how can I add that?
Learning SMF..... Thanks for your help!

ccbtimewiz

Hmm.

Can you ensure Karma is enabled in your admin panel?

Admin > Features and Options > Karma

tridirk

I checked it, admin/features and options/karma/karma mode set to enable karma positve/negative. The karma and add karma show on the default templates and so I thought it must be something with this template.
Learning SMF..... Thanks for your help!

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

tridirk

Learning SMF..... Thanks for your help!

Advertisement: