Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Favoured: 1
TOPIC: Karma Project
#39017
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.
Smoke DL (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#39136
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.
Smoke DL (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/01/15 03:11 By Smoke DL.
 
The administrator has disabled public write access.  
#42612
Re:Karma Project 7 Months ago  
I'm not sure if this worked for other people but it didn't work for me
Jasmine (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#43364
Re:Karma Project 7 Months ago  
any update on this?..
freakshowtm (User)
FB Quality & Testing Team
I am a LOSER
Expert Boarder
Posts: 139
graphgraph
User Offline Click here to see the profile of this user
Gender: Male nluvandhate Location: Philippines Birthdate: 1983-11-07
Logged Logged
 
..having a Brain doesn\'t mean you know how to use one..
 
The administrator has disabled public write access.  
#46323
Re:Karma Project 6 Months ago  
Would be great if we had this...
MSFREAK (User)
Junior Boarder
Posts: 32
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#46632
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.
Smoke DL (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#47036
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
wwwebguru (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Gender: Male The Spartan Collective Location: California Birthdate: 1971-08-26
Logged Logged
 
Automatic Filter Message : Please follow the forum rules for forum signatures...Thanks
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop