News:

Wondering if this will always be free?  See why free is better.

Main Menu

Karma Description Mod

Started by Grek.Kamchatka, September 11, 2005, 11:48:26 PM

Previous topic - Next topic

anshar

Grek_Kamchatka could you explain why is it a bad idea and what is your idea to do it right?

How to exted the description over 256 chars?

p-chan

hii..i think this is a great mod ^^
Btw, i have a question (sorry if this sounds stupid)..
I am just wondering where do u get to see the karma change log? =)

Btw, does this mod works with the dilber MC theme? Thanks a lot!!

Tick

#662
I use it with dilber mc  you just have to make these changes to your board index template.

find
[pre]// Show YaBB SP1 style information.[/pre]

and add befor
[pre]*/
                    if ($settings['show_sp1_info'])
        {
                echo '
                                <tr>
                                        <td class="titlebg" colspan="2">', $txt[645], '</td>
                                </tr>
                                <tr>
                                        <td class="windowbg" width="20" valign="middle" align="center">
                                                <a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" /></a>
                                        </td>
                                        <td class="windowbg2" width="100%">
                                                <span class="middletext">
                                                        ', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '. ', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
                                                        <br /> ' . $txt[659] . ': <b>&quot;' . $context['latest_post']['link'] . '&quot;</b>  ( ' . $context['latest_post']['time'] . ' )<br />
                                                        <a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
                                                        <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                                               
                ';
                     if ((!empty($modSettings['karmadescmod'])) && (empty($modSettings['karmaisowner'])))
                         {  if ($context['show_karmastat'])
                echo '
                                         <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
                     elseif ((!empty($modSettings['karmadescmod'])) && ($context['user']['is_admin']))
                        { if ($context['show_karmastat'])
      echo '
                        <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
echo'
                     </span>
                                        </td>
                                </tr>';
        }
[/pre]


and be sure to make a backup of this file before making these edits.  Just in case.  But it works for me

EDIt:  take out the   pre with the brackets around them out
 at the start and finsh.  I dont know why they are there.  I did not put them there



p-chan

Tick, thanks a lot for ur help! I hope it works for me ^^

p-chan

hihi..ah..after adding the code, it sort of worked..
but there are two forum stats in the info centre - one with just forum stats and one with forum stats + karma stats..
I was wondering if there's  away to delete the one with just forum stats?
Thanks

p-chan

It;s okie..i solved the problem already =)

Tick

Quote from: tick on April 23, 2007, 06:39:57 PM
I have been getting an error since installing this mod.  I started a topic on it here.  http://www.simplemachines.org/community/index.php?topic=166325.15  and it was recommended that I come here and see if the author of this mod had an answer.  Here is the error I am getting and if you go to the topic I posted above you will see what has been tried before.  Here is the error I get

I get this one when I change karma
http://xxxxxxxxxxxx.com/smf/index.php?action=modifykarma;sa=applaud;uid=345;topic=1374.0;m=6898;sesc
8: Undefined index:  karma_pm_send_changelink
File: /home/content/i/b/e/xxxxxxxxx/html/smf/Sources/Karma.php
Line: 195


Here is this line 195 on  karma .php  third line down.  [pre] $link=='PM' ? $url=$scripturl.'?action=pm' : $url=$scripturl.'?topic='.$link;
     
                if ($modSettings['karma_pm_send_link'])
                    if ($modSettings['karma_pm_send_changelink'])
                        {
                            $karma_pm_body = $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'].$txt['karma_pm_send_changelink'].$url;
                        } [/pre]
                                                                           




I have also narrowed it down to it only happens when karma is given to users who have karma notification turned on.    Is anyone still supporting this mod.

Tick

Bump.  Is the author of this mod still supporting this mod.  Or does anyone know this mod well enough to tell me why this error is occurring.   Thanks so much to anybody who can help.

Tick


Grek.Kamchatka

Post here your karma.php file

Tick

Thanks for the response.  here it is.

Grek.Kamchatka

#671
Ok, i found one small bug in mod. Thanks. Wait a new version - 2.4
To fix this problem with error log, you can check:
1. Send link in personal message to own karma log
2. Send the reason in personal message
3. Send link in personal message to message where karma was changed
in Karma section. Save this settings, applaud this user and then uncheck all this functions. Errol log must be clean after it.

Tick

The problem is when the ARE checked.  But I cant ask 600 users to uncheck this.  I can clear the errors for know.   Do you have a estimate on when this next version will be out.

Grek.Kamchatka

Quote from: tick on May 07, 2007, 09:56:40 PM
But I cant ask 600 users to uncheck this
Nope, it is in admin panel in karma section.

Quote
I can clear the errors for know.   Do you have a estimate on when this next version will be out.
I don't know. May be in 2 days

Tick

Ok thanks for your time to answer my questions.  You have made a great mod.

KGIII

Hmm... I don't have the time to delve into the mod really so, has anyone got a fix for the error:


Unable to load the 'main' template.


My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

dumbelljunkie

34 pages wow, but I guess this question is new (I hope); is there a way to show how much Karma is given each time ?
SMF 1.1.2 Joomla 1.0.12 Bridge 1.1.7

b0x

I had a quick look at the mod and I am thinking about installing it on my forum. I noticed the mod changes one of the DB tables and I was wondering whether those changes will be rolled back when you uninstall the mod.

In other words:
Will uninstalling the mod return your database to its original form?

Grek.Kamchatka

Quote from: Lost1 on May 18, 2007, 08:40:29 PM
In other words:
Will uninstalling the mod return your database to its original form?
Nope

TrueSatan

 Many mods leave database changes behind if they are uninstalled...it's now accepted officially by SMF that they may do so...not a requirement to remove any/all added databases and settings upon uninstallation.

If the tables and settings a mod leaves behind aren't being used by any other parts of a forum's code then they are a trivial matter and can be safely ignored...if you really wish to do so you can tidy up your database via phpMyadmin (having first made a backup of it.) In general it's not worth the effort of doing anything about them.

Advertisement: