Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: alphacaveman - joulukuu 29, 2005, 05:57:17 IP

Otsikko: Quick Karma Question
Kirjoitti: alphacaveman - joulukuu 29, 2005, 05:57:17 IP
Where do I go to change the error message a user receives when they try to give a member Karma points again before time has expired?

Thanks

Lee
Otsikko: Re: Quick Karma Questions
Kirjoitti: Rasyr - joulukuu 29, 2005, 06:07:15 IP
In the sources directory, in karma.php around line 107, you will find:
// If you are gonna try to repeat.... don't allow it.
if ($action == $dir)
fatal_error($txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.', false);


This portion of it is what builds the error message:

$txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.'

The two txt messages (smf62 and 578) can both be found in the index.english.php file in the themes/default/languages folder.
Otsikko: Re: Quick Karma Question
Kirjoitti: alphacaveman - joulukuu 29, 2005, 06:35:19 IP
Thank you very much! Went right to it because of your help. If the karma feature was enabled here, I'd applaud you!

Have a great day!