|
Karma Project 7 Months, 3 Weeks ago
|
|
I'm working on customizing my karma system a little bit. Renaming it, making it so only certain usergroups can add or remove, and possibly making it so once you post once in a certain category or make a certain amount of posts you get x karma. I'm also fiddlin with the idea of making it so every day you post, you get one karma, similar to www.gamefaqs.com
Has anybody already done any of this? I don't want to reinvent the wheel, here.
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Karma Project 7 Months, 3 Weeks ago
|
|
I think I found how to make it so only admins may edit karma.
Go to line 224 of fbprofile.php
(components/com_fireboard/template/default/plugins/fbprofile/fbprofile.php)
Change:
| Code: |
if ($fbConfig['showkarma'] && $userid != '0')
|
To:
| Code: |
if ($fbConfig['showkarma'] && $userid != '0' && $uIsAdm)
|
If the user is not an administrator, they get the "too soon" message, basically.
Working on changing that now.
|
|
|
Logged
|
|
|
Last Edit: 2008/01/15 03:11 By Smoke DL.
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Karma Project 7 Months ago
|
|
|
any update on this?..
|
|
|
Logged
|
|
|
..having a Brain doesn\'t mean you know how to use one..
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Karma Project 6 Months ago
|
|
|
Would be great if we had this...
|
|
MSFREAK (User)
Junior Boarder
Posts: 32
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Karma Project 5 Months, 4 Weeks ago
|
|
|
I'd been working on this in my spare time, of which I've had almost none lately.
Sorry for the lack of updates. I'm aware that that fix didn't work, and I'll probably be working on this some more this week.
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Karma Project 5 Months, 3 Weeks ago
|
|
Evening Everyone. Not sure how much I can offer outside this one thing. To change the name of Karma to something else is pretty easy. Go to /administrator/components/com_fireboard/language/english.php (or your language).
Change (on Line 321)
| Code: |
DEFINE ('_FB_USRL_KARMA','Karma');
|
To:
| Code: |
DEFINE ('_FB_USRL_KARMA','Reputation');
|
or whatever you want to name it.
Change (on Line 352)
| Code: |
DEFINE('_FB_ADMIN_CONFIG_USERLIST_KARMA','Show Karma');
|
To:
| Code: |
DEFINE('_FB_ADMIN_CONFIG_USERLIST_KARMA','Show Reputation');
|
Change (on Line 353)
| Code: |
DEFINE('_FB_ADMIN_CONFIG_USERLIST_KARMA_DESC','');
|
To: (There is no description by default so add one if you want.)
| Code: |
DEFINE('_FB_ADMIN_CONFIG_USERLIST_KARMA_DESC','This is the Reputation of a person.');
|
Change (on Line 807/808)
| Code: |
DEFINE('_COM_A_KARMA', 'Show Karma indicator');
DEFINE('_COM_A_KARMA_DESC', 'Set to "Yes" to show user Karma and related buttons (increase / decrease) if the User Stats are activated.');
|
To:
Change (on Line 807/808)
| Code: |
DEFINE('_COM_A_KARMA', 'Show Reputation indicator');
DEFINE('_COM_A_KARMA_DESC', 'Set to "Yes" to show user Reputation and related buttons (increase / decrease) if the User Stats are activated.');
|
Change (on Line 850 - 865)
| Code: |
//Karma
DEFINE('_KARMA', 'Karma');
DEFINE('_KARMA_SMITE', 'Smite');
DEFINE('_KARMA_APPLAUD', 'Applaud');
DEFINE('_KARMA_BACK', 'To get back to the topic,');
DEFINE('_KARMA_WAIT', 'You can modify only one person\'s Karma every 6 hours. Please wait until this timeout period has passed before modifying any person\'s Karma again.');
DEFINE('_KARMA_SELF_DECREASE', 'Please do not attempt to decrease your own Karma!');
DEFINE('_KARMA_SELF_INCREASE', 'Your Karma has been decreased for attempting to increase it yourself!');
DEFINE('_KARMA_DECREASED', 'User\'s Karma decreased. If you are not taken back to the topic in a few moments,');
DEFINE('_KARMA_INCREASED', 'User\'s Karma increased. If you are not taken back to the topic in a few moments,');
DEFINE('_COM_A_TEMPLATE', 'Template');
DEFINE('_COM_A_TEMPLATE_DESC', 'Choose the template to use.');
DEFINE('_COM_A_TEMPLATE_IMAGE_PATH', 'Image Sets');
DEFINE('_COM_A_TEMPLATE_IMAGE_PATH_DESC', 'Choose the images set template to use.');
DEFINE('_PREVIEW_CLOSE', 'Close this window');
//==========================================
|
To:
| Code: |
//Reputation
DEFINE('_KARMA', 'Reputation');
DEFINE('_KARMA_SMITE', 'Smite');
DEFINE('_KARMA_APPLAUD', 'Applaud');
DEFINE('_KARMA_BACK', 'To get back to the topic,');
DEFINE('_KARMA_WAIT', 'You can modify only one person\'s Reputation every 6 hours. Please wait until this timeout period has passed before modifying any person\'s Reputation again.');
DEFINE('_KARMA_SELF_DECREASE', 'Please do not attempt to decrease your own Reputation!');
DEFINE('_KARMA_SELF_INCREASE', 'Your Reputation has been decreased for attempting to increase it yourself. You are a LOSER!');
DEFINE('_KARMA_DECREASED', 'User\'s Reputation decreased. If you are not taken back to the topic in a few moments,');
DEFINE('_KARMA_INCREASED', 'User\'s Reputation increased. If you are not taken back to the topic in a few moments,');
DEFINE('_COM_A_TEMPLATE', 'Template');
DEFINE('_COM_A_TEMPLATE_DESC', 'Choose the template to use.');
DEFINE('_COM_A_TEMPLATE_IMAGE_PATH', 'Image Sets');
DEFINE('_COM_A_TEMPLATE_IMAGE_PATH_DESC', 'Choose the images set template to use.');
DEFINE('_PREVIEW_CLOSE', 'Close this window');
//==========================================
|
That should do it!
Hope that helps...I don't like the eastern religious implications of the word Karma so this was a necessary fix 
|
|
|
Logged
|
|
Automatic Filter Message : Please follow the forum rules for forum signatures...Thanks
|
|
|
The administrator has disabled public write access.
|
|
|