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

BelleLeDonna

using SMF version 1.1.3

I've just installed this mod (ver 2.3) ... it first appeared all went well, however, when I go into the karma page in the ACP, there are new checkboxes, but the description for each line is blank.

please advise
Thanks ~ Belle




Chip103

The same thing happened to me!

Grek.Kamchatka

What is default language of your forum??

Chip103

English,I already checked to see if it was English UKT Or whatever.

:)

TrueSatan

The mod, like almost all mods, only installs into the SMF Default theme so if you are using any other theme you will need to manually install into it.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://www.simplemachines.org/community/index.php?topic=34526.0

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html

BelleLeDonna

#805
Thank you for your replies ~

My forum is English - and the new option checkboxes show up, but not the descriptions preceding the checkboxes. (see attachment)

It's doing ^that^ in both the default theme as well as in the the one other theme I've installed and use for my forum default theme. (I haven't yet gone thru with the modparser to manually install it to the forum theme I've installed)

I found and read the topics you pointed to prior to any downloads .. but I'll re-read them to see if I missed any important steps.

I used the package installer thru the ACP, but I'll go thru the different steps with the modparser to see if it did everything in the default theme that it was supposed to have done.

I've attached a screenshot to show what it is doing. I used the screenshot from the mod page to read what each checkbox was supposed to be for to see if I could get any results even though the descriptions weren't showing up.


also, where would I be able to find what is supposed to be the output of this mod .. the karma log results?

Thanks for your assistance
~ Belle

Grek.Kamchatka


BelleLeDonna

that's the problem .. I'm not getting an error. at least not one that I've seen.

by the way, I did try to give karma to someone and got the page that (I'm assuming) is where you'd put the explanation, but the label/description was missing from there as well...entered an explanation - clicked on the unlabeled button there and the karma went thru as it's supposed to.

so the mod is working, sort of.

I've just gotten back from dinner, so I'll start going thru the modparser to see where the language codes are first and check back here in a bit.

I really appreciate your helping me with this.
~ Belle

Grek.Kamchatka

Do next steps:
Open listed here files and add codes at the end of each file.

At the end of Admin.english.php add this
$txt['maintain_karmalog'] = 'Empty out Karmachange Description log';

Errors.english.php

$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.';
$txt['karma_cant_modify'] = 'Sorry, you can\'t modify karma to this user.';
$txt['karma_cant_modify2'] = 'Sorry, you can\'t modify karma to other users.';



Help.english.php

$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['karmaotherstat'] = 'Show other karma statistics like Max applauded users or Max smited users and so on in whole karma log.';
$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.';
$helptxt['karmanotifier'] = 'If you enable this function, your users will see another one field in their profiles in \'Look and Layuot Preferences\' section. It give an opportunity to notify users when their karma will be changed by two way notify: Popup Message and Personal Message.';
$helptxt['karmaidmember'] = 'If your users enabled Karma Notify function and choose Personal Message notify, they will recieve a Peronal Message from this member id. For example, if you have ID_MEMBER=1 they will recieve PM from you and so on. If you set member id = 0 your users will recieve a message from Admin Guest.';
$helptxt['karma_pm_send_link'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see a link to their own karma log.';
$helptxt['karma_pm_send_desc'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see the reason of karma change.';
$helptxt['karma_pm_send_changelink'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see a link to message where their karma was changed.';
$helptxt['karmacantmodify'] = 'Comma separated, without any spaces.';
$helptxt['karmacantmodify2'] = 'Comma separated, without any spaces.';


index.english.php

//Karma Description Mod
$txt['karmaview'] = 'Karma Change Log';
$txt['whykarmamod'] = 'Karma change';
$txt['Description'] = 'No Description';
$txt['karmamoder'] = 'Reason for changing the karma of this user';
$txt['karmarequare'] = '(Required field)';
$txt['karmawho'] = 'Who';
$txt['karmawhos'] = 'Whom';
$txt['karmawhat'] = 'What (+/-)';
$txt['karmadesc'] = 'For What';
$txt['karmatime'] = 'When';
$txt['karmanumb'] = 'Values: ';
$txt['statkarma'] = '[Karma Stats]';
$txt['viewkarma_title'] = 'Karma Change Description';
$txt['deletekarma'] = 'Delete';
$txt['clearkarma'] = 'Clear';
$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 Statistic';
$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'] = 'User MAX applauding other users';
$txt['karma_max_smit'] = 'User MAX smiting other users';
$txt['karma_today'] = 'Karma points today';
$txt['karma_today_plus'] = 'Today "+"';
$txt['karma_today_minus'] = 'Today "-"';
$txt['karma_notifier'] = 'Your karma was changed on ';
$txt['karma_notifier2'] = ' points. Do you want to see the karma description log?';
$txt['karma_pm_subject'] = 'Karma Notification';
$txt['karma_pm_body'] = 'Dear user. Your karma was changed. ';
$txt['karma_pm_body2'] = 'You can see the log if follow this link:\\n'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Send the reason in personal message';
$txt['karma_pm_send_desc2'] = '\\n\\nThe reason of changing was: ';
$txt['karma_pm_send_changelink'] = '\\n\\nYour karma was changed on this message:\\n';



ManagePermissions.english.php

$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.';



ModSetting.english.php

$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\'s author karma';
$txt['karmanotifier'] = 'Enable karma notification';
$txt['karmaidmember'] = 'Send PM from this Member ID (1 by default)';
$txt['karma_pm_send_changelink'] = 'Send link in personal message to message where karma was changed';
$txt['karma_pm_send_link'] = 'Send link in personal message to own karma log';
$txt['karmacantmodify'] = 'User ID\'s, whose karma can\'t be changed. <div class="smalltext">Comma separated, without spaces. For example: 1,13,27</div>';
$txt['karmacantmodify2'] = 'User ID\'s, who can\'t modify karma. <div class="smalltext">For example: 2,412,88</div>';



Profile.english.php

$txt['who_change_my_karma'] = 'Who changed my karma';
$txt['whom_i_change_karma'] = 'Whose karma have I changed';
$txt['enable_notify'] = 'Notify me when my karma will be changed';
$txt['enable_notify_none'] = 'don\'t notify';
$txt['enable_notify_popup'] = 'Popup window';
$txt['enable_notify_pm'] = 'Personal Message';



Who.english.php

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


BelleLeDonna

#809
ok ..

I did all ^that^ .. does it matter that I don't have the word 'english' in some of those files?
for example, I have Admin.php - but NOT Admin.english.php
I have help.php - but NOT help.english.php, etc (as you have it in the above post).
I put those codes into the files that most closely resembled what you've posted


after doing that^ the karma part in ACP is still showing blank as before and now I am receiving this error at the top of each page:

Notice: Undefined index: lang_character_set in /home/bellel2/public_html/forums/Sources/Load.php on line 179

does that help narrow things down? and/or am I missing a language file altogether?

thanks ~ Belle

edited to add that the one theme I have installed is no longer working, I just get the above error on the page

Grek.Kamchatka

no, no, no... this is a source files with engine as far as i say you need other files - with language strings. They are placed in /Themes/default/languages
Delete all changes that you maded

BelleLeDonna

oops, sorry .. I don't know what I was thinking *blush*
I deleted my mistakes and went into the /default/languages folder and made the changes you posted.

I do NOT have a file index.english.php in there.

is that what is causing problems? where do I get it from?

huggs ~ Belle

Grek.Kamchatka

it's impossible...
but if you haven't any installed mods, try to upload all your forums files again


oh girls..... =)

BelleLeDonna

you're right, I was wrong... the index.english.php file was toward the bottom of the file list (because of lower case)

so now I feel like a total idiot LOL... however the changes still didn't work.

I've checked and double checked to be sure I cepy/pasted everything correctly.

before installing this mod, I did attempt to install the paypal donation mod - using the installer with the forum ACP - it's not working for me either (donation button/link not showing in menu bar and the donation area in the ACP isn't there as it should be). Getting that mod to work was to be my next task to tackle .... but my members were heckling me to do the karma options first.  ;D

I'm sorry to be such a pain.
huggs ~ Belle

Grek.Kamchatka

#814
I think you use another theme then default...... what did you have in /Themes directory?
                                                                                                                                  I must go. See you tomorrow

BelleLeDonna

in my themes directory I have babylon, classic, default and bright forest (the one theme I have installed and use as my forum default - the karma page shows the same way in that theme though as it does using the default theme, descriptions blanked out like in the acreenshot), there is also a file index.php in that directory

I have triple checked and the changes you indicated above were definately made to the default theme files. changes do not reflect in the default theme on the forum.

please let me know if you think of anything else ...
Thank you for working with me tonight, I am grateful to you for your assistance.

huggs ~ Belle

BelleLeDonna

I got it to work!!
I kept checking/double checking/triple and quadruple checking ... then I noticed there were english-utf8.php files in that directory too... ???
so I added one of the changes from above to one of the pages and lo and behold! it worked!!
so, I applied all ^those^ changes to the english-utf8.php and everything is working just as it's supposed to. :) it works with the bright forest theme as well, so I'm reeeally happy.

thank you again for your continued assistance tonight - I apologize for my girly goofs :D
This mod is just what I was needing and my members are going to be thrilled (I'll probably get a bunch of applauds from them for getting this applied to the forums) LOL

now I'm off to see if I can get the paypal donations mod to work using the same theory....

goodnight ~ Belle

TrueSatan

You might be best to go to ACP>Server Settings and switch your forum to English and not English utf8...this would save you having to do anythign to the English utf8 files. To make sure your members don't select English utf8 and override the forum default setting go to ACP>Features and Options>Basic Features and uncheck "Enable user-selectable language support" then save (bottom of the page.)

BelleLeDonna

I've done that now TrueSatan ... thanks :)

Grek.Kamchatka

TrueSatan, big thanks for your assistance.

BelleLeDonna good lack

Advertisement: