Customizing SMF > Modifications and Packages
Karma Description Mod
Jade Elizabeth:
Kinda stupid question but I want to minimise all the ifs in this block of code that I've redone the HTML of...
--- Code: --- //Karma Description Mod
if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmainmessage']))
{
if (($context['karma_message_plus']!=0) || ($context['karma_message_minus']!=0))
{
if (!empty($modSettings['karmainmessagelink']))
{
echo '<a href="'. $scripturl . '?action=karmamessage;u='. $message['member']['id'] .';topic=', $context['current_topic'], ';m=', $message['id'], '"> +'.$context['karma_message_plus'].'/-'.$context['karma_message_minus'].$txt['karma_count'].'</a>';
}
else
{
echo '+'.$context['karma_message_plus'].'/-'.$context['karma_message_minus'].$txt['karma_count'];
}
}
}
--- End code ---
What do they mean? What does each one do exactly? I get the first one checks that the settings are on, and the second makes sure there's more or less than 0 for either karma, but what's the third one do?
MISTA FIESTA:
Hello fellow Simple Machiners,
I have recently installed the Karma Description Mod. No errors, works perfectly fine. When i click on to a user profile -> click either the "Who Changed my Karma" or "Who's Karma have i changed" link, it will show the Karma info outside the normal main frame.
Screenshot attatched
The lower part (Users online , search , recent topics) is actually ment to be on the right side.
Details of what I have installed
SMF version 2.0.2,
Core theme
TinyPortal 1.107
Karma Buttons 1.1
YouTube BBCode 2.6
Activity in Profile 1.1
Copyright and Footer Links 3.2
Custom Greeting Mod 1.1.1
Avatar Verification 1.4.4
Karma Description Mod 2.7.1
I would appreciate any assisatnce in this matter
Thanks
freakydeaky:
this thing is driving me crazy... i installed the mod without uninstalling Karma Buttons v1.1, now my karma is all messed up
here is my forum: c4gnation.com
i've uninstalled the karma buttons mod, only the Karma Description Mod is installed now
please help me fix this, thanks
freakydeaky:
anyone help with the issue above, much thanks
Ix Soulcist xI:
How comes this tells me that it's not compatible with my SMF version when it states it's for 2.0.2?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version