News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Advanced Reputation System

Started by Fustrate, March 25, 2008, 12:51:10 PM

Previous topic - Next topic

Ryoki

As far as i have seen it isn´t possible to use it with german-urf8 yet right?
If not, is it possible for a newbie to translate the files accordingly and then use them? I belive the plain translation won´t be an problem... But probably the scripting/developing (well whatever... don´t know much about it) would be.

waruna

Okay Mr. Ha². Thanks for the explanation and I totally understand it. ;) But still the reputation is sent based on the giver's reputation.

This is my settings:

Points per post: 0
Points per thread: 0
Users gain 1 power for every __ points?: 1
Users gain 1 bar image for every __ points?: 20
Welcome new members: 1
Birthday members: 0

Based on the settings, users will gain 1 rep power for every 1 rep point right?. How do I edit the sql statement so that each reputation (heart) given will give the receiver only 1 point instead of based on the giver's reputation.

For example let say I have 20 rep power (also 20 rep points according to the settings above) and Mr. Ha² have only 1 rep point/power for registering. Then I click at the heart to give Mr. Ha² a reputation and Mr. Ha² will receive 2 rep point/power (1 for registering, 1 from me), not 21 rep point/power.

I think some editing in Source/Karma.php will do, but I just don't know where to edit.

Sorry for troubling you and thanks for your kindness.   :)
Trust of Lust

Nick Whetstone

Quote from: waruna on March 07, 2010, 02:19:57 PM
Okay Mr. Ha². Thanks for the explanation and I totally understand it. ;) But still the reputation is sent based on the giver's reputation.

This is my settings:

Points per post: 0
Points per thread: 0
Users gain 1 power for every __ points?: 1
Users gain 1 bar image for every __ points?: 20
Welcome new members: 1
Birthday members: 0

Based on the settings, users will gain 1 rep power for every 1 rep point right?. How do I edit the sql statement so that each reputation (heart) given will give the receiver only 1 point instead of based on the giver's reputation.

For example let say I have 20 rep power (also 20 rep points according to the settings above) and Mr. Ha² have only 1 rep point/power for registering. Then I click at the heart to give Mr. Ha² a reputation and Mr. Ha² will receive 2 rep point/power (1 for registering, 1 from me), not 21 rep point/power.

I think some editing in Source/Karma.php will do, but I just don't know where to edit.

Sorry for troubling you and thanks for your kindness.   :)
So, to clarify, you would like to remove reputation power from the system, correct?

Quote from: Ryoki on March 07, 2010, 02:04:10 PM
As far as i have seen it isn´t possible to use it with german-urf8 yet right?
If not, is it possible for a newbie to translate the files accordingly and then use them? I belive the plain translation won´t be an problem... But probably the scripting/developing (well whatever... don´t know much about it) would be.

If you know the German language, and let me know the translations, I would love to look into adding it to the default package for you. It really isn't too much work on my part to add it. :)
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Ryoki

Quote from: Ha² on March 07, 2010, 04:42:45 PM
If you know the German language, and let me know the translations, I would love to look into adding it to the default package for you. It really isn't too much work on my part to add it. :)

That sounds great. Then i only need to know what exactly needs to be translated. I have looked into "lang-english-utf8.xml" and that would not be a problem. But for some reasons i doubt that is all... Then there would already be a translation, wouldn´t there?
But well just tell me what to do.  ;D

waruna

Quote from: Ha² on March 07, 2010, 04:42:45 PM
Quote from: waruna on March 07, 2010, 02:19:57 PM
Okay Mr. Ha². Thanks for the explanation and I totally understand it. ;) But still the reputation is sent based on the giver's reputation.

This is my settings:

Points per post: 0
Points per thread: 0
Users gain 1 power for every __ points?: 1
Users gain 1 bar image for every __ points?: 20
Welcome new members: 1
Birthday members: 0

Based on the settings, users will gain 1 rep power for every 1 rep point right?. How do I edit the sql statement so that each reputation (heart) given will give the receiver only 1 point instead of based on the giver's reputation.

For example let say I have 20 rep power (also 20 rep points according to the settings above) and Mr. Ha² have only 1 rep point/power for registering. Then I click at the heart to give Mr. Ha² a reputation and Mr. Ha² will receive 2 rep point/power (1 for registering, 1 from me), not 21 rep point/power.

I think some editing in Source/Karma.php will do, but I just don't know where to edit.

Sorry for troubling you and thanks for your kindness.   :)

So, to clarify, you would like to remove reputation power from the system, correct?

I wish I could continue using this mod, but with some help to change the way the reputation given. But if that is illegal / against your copyright, I don't have a choice but to remove this mod  :-[
Trust of Lust

Nick Whetstone

Quote from: waruna on March 08, 2010, 12:23:41 AM
Quote from: Ha² on March 07, 2010, 04:42:45 PM
Quote from: waruna on March 07, 2010, 02:19:57 PM
Okay Mr. Ha². Thanks for the explanation and I totally understand it. ;) But still the reputation is sent based on the giver's reputation.

This is my settings:

Points per post: 0
Points per thread: 0
Users gain 1 power for every __ points?: 1
Users gain 1 bar image for every __ points?: 20
Welcome new members: 1
Birthday members: 0

Based on the settings, users will gain 1 rep power for every 1 rep point right?. How do I edit the sql statement so that each reputation (heart) given will give the receiver only 1 point instead of based on the giver's reputation.

For example let say I have 20 rep power (also 20 rep points according to the settings above) and Mr. Ha² have only 1 rep point/power for registering. Then I click at the heart to give Mr. Ha² a reputation and Mr. Ha² will receive 2 rep point/power (1 for registering, 1 from me), not 21 rep point/power.

I think some editing in Source/Karma.php will do, but I just don't know where to edit.

Sorry for troubling you and thanks for your kindness.   :)

So, to clarify, you would like to remove reputation power from the system, correct?

I wish I could continue using this mod, but with some help to change the way the reputation given. But if that is illegal / against your copyright, I don't have a choice but to remove this mod  :-[
It's not illegal to edit the Mod at all. I'm just wondering if your goal is to remove reputation power altogether and instead make everyone's power set to one.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

waruna

Quote from: Ha² on March 08, 2010, 12:33:44 AM
It's not illegal to edit the Mod at all. I'm just wondering if your goal is to remove reputation power altogether and instead make everyone's power set to one.

Yes Mr. Ha², that's what I need. I just want each reputation sent will give only 1 point to the receiver, not based on the giver's point.
Trust of Lust

Fustrate

Psst, Ha², instruct her to edit $power in Karma.php
Steven Hoffman
Former Team Member, 2009-2012

waruna

Quote from: Fustrate on March 08, 2010, 03:00:28 AM
Psst, Ha², instruct her to edit $power in Karma.php

Psst Mr. Fustrate, thanks for the response. So I must edit the $power thing in Karma.php. I'm totally blank to understand the code.  ???
Trust of Lust

Fustrate

find this line in /Sources/Karma.php
$power = (int) (($power > 0) ? $power : 0);
and change it to
$power = 1;

that's assuming the line hasn't changed since I first wrote it :P
Steven Hoffman
Former Team Member, 2009-2012

Nick Whetstone

It hasn't changed; thanks Fustrate. Really, all that's changed so far is one edit in the XML and the uninstall.php database queries.
Sorry I didn't reply to this earlier, waruna. I've got a migraine, so I don't want to give any bad support. :P
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

waruna

Quote from: Fustrate on March 08, 2010, 11:52:12 AM
find this line in /Sources/Karma.php
$power = (int) (($power > 0) ? $power : 0);
and change it to
$power = 1;

that's assuming the line hasn't changed since I first wrote it :P

Thanks Fustrate. I changed the code but still the point given based on the giver's point. May I attach Karma.php here for your further look?
Trust of Lust

waruna

Quote from: Ha² on March 08, 2010, 11:57:46 AM
It hasn't changed; thanks Fustrate. Really, all that's changed so far is one edit in the XML and the uninstall.php database queries.
Sorry I didn't reply to this earlier, waruna. I've got a migraine, so I don't want to give any bad support. :P

It's ok, Mr. Ha². You just give a great support to me. I'm the one who troubling you guys. Many thanks for your help. :D
Trust of Lust

Fustrate

Ah, forgot about Xml.php

Do the same edit in /Sources/Xml.php
Steven Hoffman
Former Team Member, 2009-2012

waruna

Quote from: Fustrate on March 08, 2010, 01:47:21 PM
Ah, forgot about Xml.php

Do the same edit in /Sources/Xml.php

Dear Mr. Fustrate & Mr. Ha², many thanks for your indispensable and greatly appreciated support. At last it works!.

Thank you, thank you, thank you.
Trust of Lust

Nick Whetstone

Thanks for helping while I was sick, Fustrate.




Package updated to install cleanly on 2.0 RC3! :D
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

pointalk

Hi, Ha2. Can you give a great support to me.

Quote from: Ha² on February 15, 2010, 10:53:18 AM
Quote from: pointalk on February 15, 2010, 06:40:09 AM
Hi, Ha2

Now, times a day can a person give reputation is set to all members.

But I want this feature"Person belong to different Membergroups can set different times a day can a person give reputation."
Can you do a custom fix for my forum?
QuoteINSERT INTO `smf_membergroups`
   (`ID_GROUP`, `groupName`, `onlineColor`, `minPosts`, `maxMessages`, `stars`)
VALUES (1, 'Administrator', '#FF0000', -1, 0, '5#staradmin.gif'),
   (2, 'Global Moderator', '#DF9006', -1, 0, '5#stargmod.gif'),
   (3, 'Moderator', '#0061D6', -1, 0, '5#starmod.gif'),
   (4, 'Primary Member', '', 0, 0, ''),
   (5, 'Regular Member', '', 5, 0, ''),
   (6, 'Senior Member', '', 20, 0, ''),
   (9, 'Bronze Member', '#9EDF06', -1, 0, '2#star.gif'),
   (11, 'Silver Member', '#B6B7B6', -1, 0, '3#star.gif'),
   (12, 'Gold Member', '#DDDF06', -1, 0, '4#star.gif'),
   (13, 'Diamond Member', '#0061D6', -1, 0, '5#star.gif'),
   (14, 'Eclass Member', '#000006', -1, 0, '1#star.gif');


That's a nice feature idea. I'll look into adding it to the system for you. :)

Nick Whetstone

#1897
Quote from: pointalk on March 08, 2010, 08:29:44 PM
Hi, Ha2. Can you give a great support to me.

Quote from: Ha² on February 15, 2010, 10:53:18 AM
Quote from: pointalk on February 15, 2010, 06:40:09 AM
Hi, Ha2

Now, times a day can a person give reputation is set to all members.

But I want this feature"Person belong to different Membergroups can set different times a day can a person give reputation."
Can you do a custom fix for my forum?
QuoteINSERT INTO `smf_membergroups`
   (`ID_GROUP`, `groupName`, `onlineColor`, `minPosts`, `maxMessages`, `stars`)
VALUES (1, 'Administrator', '#FF0000', -1, 0, '5#staradmin.gif'),
   (2, 'Global Moderator', '#DF9006', -1, 0, '5#stargmod.gif'),
   (3, 'Moderator', '#0061D6', -1, 0, '5#starmod.gif'),
   (4, 'Primary Member', '', 0, 0, ''),
   (5, 'Regular Member', '', 5, 0, ''),
   (6, 'Senior Member', '', 20, 0, ''),
   (9, 'Bronze Member', '#9EDF06', -1, 0, '2#star.gif'),
   (11, 'Silver Member', '#B6B7B6', -1, 0, '3#star.gif'),
   (12, 'Gold Member', '#DDDF06', -1, 0, '4#star.gif'),
   (13, 'Diamond Member', '#0061D6', -1, 0, '5#star.gif'),
   (14, 'Eclass Member', '#000006', -1, 0, '1#star.gif');


That's a nice feature idea. I'll look into adding it to the system for you. :)


What version of SMF are you using? It is a planned feature of Advanced Reputation 2.0.



With the above, I'd like to note that new Advanced Reputation System 1.x releases are for bug fixes and new SMF version compatibility, now. I'm still thinking up ideas to include for 2.0, but the one above is definitely one of them. So far, these are the only ideas:
1) Per-membergroup reputation limit
2) Toggle Reputation power on/off
3) Admin options for setting how reputation is displayed in topic view

If you have other ideas, please post them.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

pointalk

QuoteWhat version of SMF are you using? It is a planned feature of Advanced Reputation 2.0.

smf1.1.11

rahlzel

#1899
Howdy! New user here.

1st - LOVE this modification. I've been hunting down something just like this, and you've done an awesome job with it. Because of the customization allowed, I've been able to modify it into a "leveling" system. Instead of the phrases like "is awe-inspiring!", I use "Level 1", "Level 2", etc.

I've done a bit of searching, and I can't seem to find an easy way to manually edit points or power. I noticed the GiveReputation.php, along with the phpMyAdmin execution, but those only seem to add points. Is there a way to manually give "that" person a specific number of points/power? I need to go backwards. A lot.

Using GiveReputation.php, I accidentally gave myself too many points (1,531 to be exact) and I seem to have run into a bug. My profile shows 1,531, but the number below my Avatar in the thread view only shows 153 - it cuts off the last digit. I'd post a link to my profile and thread, but apparently I'm not allowed as a newbie.

Hopefully we can help each other. Let me know how to edit a number manually and maybe I just hooked you up with an accurate bug report. I'll subscribe to this thread so I'll know instantly if you have any questions for me.

Thanks again!

EDIT: Nevermind. I found a way to alter it using the Forum Profile settings, and it seems this also explains the missing digit (divisible by 10).

I don't suppose I could alter this into a feature request to make it a little simpler to access/modify the number? There's a "Reputation" page in the user profile. How about there? New users of SMF (such as myself) might be having similar trouble finding the important stuff.

Also, how about adding a feature that adds rep to a user each time their attachment is downloaded? It will make a forum that's geared around useful attachments even more epic. That'd be pretty awesome, and it's something else I'm looking for.

Advertisement: