News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Karma Description Mod

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

Previous topic - Next topic

Chronic667

#380
For that you'd have to do a bit of work on the viewkarma.template.php file.

EDIT:

I just had a quick look at the file i mentioned and it seems straight forward as to commenting out, or deleting lines 145 to 150 (or maybe 144 to 151).

ssoltz

Any word yet on RC3 compatibility?...I guess I should say...

*bump*
Steve Soltz
SSK Creatives, Inc.

[MaxX]

I fixed the admin template incompatibility for RC3, looking at the database part now..

SusanTN

If you need it, I have a fully working version for RC3.

Loverboy

Quote from: bl968 on September 02, 2006, 01:57:51 PM
If you need it, I have a fully working version for RC3.

could you upload it please ?

Loverboy

Well thank you, but I am getting the following error when I trie to install it:

The package you tried to upload either is not a valid package or has become corrupted.


Grek.Kamchatka

Karma Description Mod ver. 1.9.7-2 now available.

SusanTN

Quote from: Grek_Kamchatka on September 03, 2006, 07:11:53 PM
Karma Description Mod ver. 1.9.7-2 now available.
Any new features or just RC3 support?

Grek.Kamchatka

Quote from: bl968 on September 03, 2006, 07:43:06 PM
Any new features or just RC3 support?

Just RC3 compatible. I don't know what new functions i can do with this mod.

SusanTN

Off the top of my head PM on Karma. sends a pm to the person letting them know who, what, why, and their new karma total :) Anyone else have any ideas? Since the why requires your mod it would be best if it was added as a feature to it instead of done seperately

Grek.Kamchatka

#390
I made another notification when karma was changed. It was like a popup window, when you receive a new PM (and there was two buttons 'Yes', 'No' to view own karma log). Is this what you need, or only PM?

SusanTN

#391
Quote from: Grek_Kamchatka on September 03, 2006, 10:21:22 PM
I made another notification when karma was changed. It was like a popup window, when you receive a new PM (and there was two buttons 'Yes', 'No' to view own karma log). Is this what you need, or only PM?
An option either way would be nice
In Admin
Enable Karma Change Notifications:
( ) Yes

IN Profile....
Karma Change Notification:
( )  PM
( )  Popup
( )  None

Grek.Kamchatka


SusanTN

Quote from: Grek_Kamchatka on September 03, 2006, 11:05:33 PM
Ok. I'll  try.

Forgot an option above... Added None for notification type

Loverboy

Quote from: Grek_Kamchatka on September 03, 2006, 07:11:53 PM
Karma Description Mod ver. 1.9.7-2 now available.

Do you have the dutch version please? I installed it and it worked but your language settings have to be english otherwise it will not work.. unless you have the dutch file for me?

Grek.Kamchatka

Sorry, but i don't know dutch.

Loverboy

Can't I modify the english file into a dutch file? .. I know dutch but i don't know how to modify en what I have to change in the script.

SusanTN

#397
Quote from: LocoTurk on September 05, 2006, 05:12:40 AM
Can't I modify the english file into a dutch file? .. I know dutch but i don't know how to modify en what I have to change in the script.

I think you simply have to add the strings to the language file for your language. It adds them by default to the english ones..

./Karma_Description_Mod.xml:    <file name="$themedir/languages/Admin.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/ModSettings.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/Who.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/Help.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/index.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/ManagePermissions.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/Errors.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/Profile.english.php">


Admin.[language].php

After:
$txt['maintain_logs'] = 'Empty out unimportant logs.';

Add:
$txt['maintain_karmalog'] = 'Empty out Karmachange Description log';
$txt['maintain_optimize'] = 'Optimize all tables to improve performance.';
$txt['maintain_version'] = 'Check all files against current versions.';
$txt['maintain_return'] = 'Back to Forum Maintenance';


ModSettings.[language].php
After
$txt['karmaSmiteLabel'] = 'Karma smite label';

add
$txt['karmadescmod'] = 'Enable Karma Description Mod';
$txt['karmamaxmembers'] = 'Members per page in Karma Description log';
$txt['karmalogview'] = 'Use member names as link to their profiles';
$txt['karmapermiss'] = 'Allow users view Karma Description log (See Permissions)';
$txt['karmalinks'] = 'Enable karma links in users profiles';
$txt['karmaisowner'] = 'Disable whole karma log for users but enable own karma log';
$txt['karmakarma'] = 'Display users karma(+/-) in Karma Description Log';
$txt['karmaurl'] = 'Enable "Where" field in Karma Description Log';
$txt['karmaotherstat'] = 'Show other Karma Statistics';
$txt['karmasurv'] = 'Applaud or smite users without explanation';
$txt['karmawhatwrite'] = 'Write this in the log, when explanation is disabled';
$txt['karmacensor'] = 'Censor karma explanation';
$txt['karmatopicstarter'] = 'Users can change only topic starter karma';


Who.[language].php
After
$txt['whoall_.xml'] = 'Viewing an XML feed.';

add

$txt['whoadmin_viewkarma'] = 'Viewing <a href="' . $scripturl . '?action=viewkarma">Karmachange Description Log</a>.';
$txt['whoall_modifykarma'] = 'Changing karma.';


Help.[language].php
Before
$helptxt['karmaMode'] = 'Karma is a feature that shows the popularity of a member. Members, if allowed, can

Add
$helptxt['karmapermiss'] = 'By default this option is switched off and Karma Log can look only admins. If you want to do Karma Log available for other users or moderators, etc, enable this option and give the right that group, which can look Log in "Permissions" section.';
$helptxt['karmalinks'] = 'If you enable this feauture, users will see two links in their profiles (Own or other users). They can see who change their karma and whom they change it. Karma Description Mod must be enabled';
$helptxt['karmakarma'] = 'It\'s display users karma in Karma log opposit the usernames. For example: Username (+12/-8)';
$helptxt['karmaurl'] = 'If you enable this option, you and your users can view where their karma was change';
$helptxt['karmaisowner'] = 'If you enable this option, only profile owner will see two links to his own karma log. By the way, your users will resieve an error if they input an url adress (like http://your_forum.com/index.php?action=ownkarma;u=other_user) by the hand if you don\'t want your users can view other users karma log. Whole karma log will be disabled too. ONLY OWN KARMA LOG.';


index.[language].php
After
$txt['ajax_in_progress'] = 'Loading...';

add
$txt['karmaview'] = 'Karma Modification Log';
$txt['whykarmamod'] = 'Karma Modification';
$txt['Description'] = 'No Description';
$txt['karmamoder'] = 'Why are you modifying this user\'s karma?';
$txt['karmarequare'] = '(Required field)';
$txt['karmawho'] = 'By';
$txt['karmawhos'] = 'To';
$txt['karmawhat'] = '(+/-)';
$txt['karmadesc'] = 'Reason';
$txt['karmatime'] = 'When';
$txt['karmanumb'] = 'Values: ';
$txt['statkarma'] = '[Karma Stats]';
$txt['viewkarma_title'] = 'Viewing Karma Modification Log';
$txt['deletekarma'] = 'Delete';
$txt['clearkarma'] = 'Clear';
$txt['nextver'] = 'In next mod version';
$txt['karma_delete_confirm'] = 'Are you sure you want to delete this record?';
$txt['karma_back'] = '< Back';
$txt['karma_continue'] = 'Continue >';
$txt['karmadescappl'] = ' (Applaud)';
$txt['karmadescsmi'] = ' (Smite)';
$txt['karmawhere'] = 'Where';
$txt['karmawhereurl'] = 'In topic';
$txt['karmawhereurl2'] = 'In PM';
$txt['karma_delete'] = 'Delete';
$txt['sure_about_karma_remove'] = 'Are you sure you want to delete this record?';
$txt['karma_stat'] = 'Karma Stats';
$txt['karma_top_applaud'] = 'Top 5 applauded users';
$txt['karma_top_smite'] = 'Top 5 smited users';
$txt['karma_other_stat'] = 'General Statistics';
$txt['karma_max_appl'] = 'Applauds the most:';
$txt['karma_max_smit'] = 'Smites the most:';
$txt['karma_today'] = 'Karma points today';
$txt['karma_today_plus'] = 'Today "+"';
$txt['karma_today_minus'] = 'Today "-"';


MangagePermissions.[language].php

at the end of the file before the ?>

add

$txt['permissionname_karmalog_view'] = 'View Karma Log';
$txt['permissionhelp_karmalog_view'] = 'Karma Description Log shows all members karma and description of applauding or smiting. This permission will only work if you also have enabled it in \'Features and Options\'. You can access the Karma Description screen by clicking the link in the \'Karma Stat\' section of the board index.';


Errors.[language].php

at the end of the file before the ?>

Add
$txt['cannot_karmalog_view'] = 'Sorry - you don\'t have the proper permissions to view the Karma Description list.';
$txt['viewkarma_error'] = 'User ID must be a number';
$txt['karma_not_topic_starter'] = 'Sorry, he is not topic author.';


Profile.[language].php

at the end of the file before the ?>

add
$txt['who_change_my_karma'] = 'Karma received?';
$txt['whom_i_change_karma'] = 'Karma given?';


Do not edit the part before the = sign only what is in the single quotes after.

You of course have to do your own translations. I have edited some of these from the original text, and removed the comments since I couldn't read them anyway.....

Loverboy

So I have to add these codes to the language files and translate te words that are inside 'here' into dutch? Like below?

$txt['karma_top_smite'] = 'Top 5 smited users'; BECOMES -->  $txt['karma_top_smite'] = 'Top 5 Karma gebruikers';
$txt['karma_other_stat'] = 'General Statistics'; BECOMES -->  $txt['karma_other_stat'] = 'Algemene Statistieken';

SusanTN

Quote from: LocoTurk on September 05, 2006, 06:11:20 AM
So I have to add these codes to the language files and translate te words that are inside 'here' into dutch? Like below?

$txt['karma_top_smite'] = 'Top 5 smited users'; BECOMES -->  $txt['karma_top_smite'] = 'Top 5 Karma gebruikers';
$txt['karma_other_stat'] = 'General Statistics'; BECOMES -->  $txt['karma_other_stat'] = 'Algemene Statistieken';

Yep! Once you have done a language you should think about sending a list of the translations to Grek_Kamchatka  so he can add it to future versions of the mod. 

Advertisement: