News:

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

Main Menu

Advanced Reputation System

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

Previous topic - Next topic

LiamTheDuck

Read my other post, its my laptop you should blame

stupid hard drive :@
I am back, its been like a year... so yeah.... how has it been? :D

Hot Rides

Quote from: [●ριмρєя12●] on April 22, 2008, 12:27:00 PM
I need to make it up to you guys for the delay (still getting fixed O0 >:( >:D :( :'( )

what do you suggest? :P
just getting it done will be enough

iceman~

Quote from: YodaOfDarkness on April 22, 2008, 12:56:26 AM
GiveReputation.php
Pretty much gives out rep points for posts and threads that were made before you installed this mod. If you're going to use values different than the default (1 per post, 3 per thread), please make those changes in the admin panel before running this script. Also make sure to delete this file after you use it, just in case another of your admins stumbles upon it and executes it (only admins can run it, anyways). One mooooore thing... for large forums, you can bump up the number it does at one time by changing 100 to something else in there.

To use it, just upload it to your forum root and navigate to the file in your browser. You have to be logged in as an admin for this to work, fyi.

Doesn't work mate it just updated the karma that people had previously ... did not repute them keeping there post in mind.
What next .... Help Mate
A wise monkey never monkies with another monkey's monkey

Fustrate

What do you mean? Did you run it all the way through?

Sounds like a foolish question, but do you have the rep system installed?
Steven Hoffman
Former Team Member, 2009-2012

iceman~

#104
LOL yes i do mate.

All i wanna know is that if a member has 500+ post to his credit before installing the rep system .. After running the php file u attached, will the rep system repute him for his post.

Cause it does not ... installed the system right ... no errors at all.
Is there any particular way of running the file. Where do u upload the file ( in the smf directory right )

Thanks.

A wise monkey never monkies with another monkey's monkey

Fustrate

straight in the root folder
then go to /GiveReputation.php
what does it say?
Steven Hoffman
Former Team Member, 2009-2012

iceman~

#106
I have approx 40 members.
in white background on the left top section It said something like ( dont exactly remember ) xyz 1 to 40 ( or 100 ) members.
All i wanna know is that if a member has 500+ post to his credit before installing the rep system .. After running the php file u attached, will the rep system repute him for his post ( keeping in mind 1 point per post & 3 points per topic )

Cause it does not ... installed the system right ... no errors at all.

Anything else i can do to rectify it.
Sorry for all the trouble and thanks for sparing time for me.

Oh one more thing ... after installing it .. i made a post and it did not increment my rep.
A wise monkey never monkies with another monkey's monkey

Fustrate

#107
Almost done with a debugging version, hang on

mkay, here it is. Upload it to the same place, and tell me a few lines that come after "Debugging Information:".
Steven Hoffman
Former Team Member, 2009-2012

iceman~

Quote from: YodaOfDarkness on April 23, 2008, 12:36:18 AM
Upload it to the same place, and tell me a few lines that come after "Debugging Information:".

Members 1 through 40 have been updated.

Debugging Information:
User #1 received 6568 reputation points for 76 topics and 424 posts.
User #2 received 53 reputation points for 1 topics and 3 posts.
User #3 received 5844 reputation points for 106 topics and 335 posts.
User #4 received 7899 reputation points for 83 topics and 518 posts.

------------------------------------------------------------------------------------------------

Got it installed ... executed GiveReputation_debug.php ... the first few lines are mentioned above ... it updated the rep of all members ... But ... Now when people post there rep does not increase, it remains the same ....
A wise monkey never monkies with another monkey's monkey

Fustrate

Did any edits get made to Sources/Post.php, somewhere in the Post2 function? Sorry I can't be more specific, I'm at the office on my iPod touch...
Steven Hoffman
Former Team Member, 2009-2012

iceman~

Quote from: YodaOfDarkness on April 23, 2008, 10:43:32 AM
Did any edits get made to Sources/Post.php, somewhere in the Post2 function?

Could be possible ... do you suggest i reinstall it.
Its giving no errors while i try to uninstall it.
A wise monkey never monkies with another monkey's monkey

Fustrate

Search for this in Post.php:
if(!$user_info['is_guest'] && $modSettings['karmaValuePost'] > 0){
$request = $smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET karma_good = karma_good + {int:newkarma}
WHERE id_member = {int:member}',
array(
'newkarma' => $modSettings['karmaValuePost'],
'member' => $user_info['id']
)
);
}
Steven Hoffman
Former Team Member, 2009-2012

iceman~

Cannot find it mate .... Guess i messed up somewhere.
A wise monkey never monkies with another monkey's monkey

Fustrate

no worries. Unzip the zip, look in install.xml and search for Post.php - just find what it says to search for (no <![CDATA[ ]]> though) and replace it with what follows. Should be simple enough :)
Steven Hoffman
Former Team Member, 2009-2012

iceman~

Great ... Mate .. just another question ... If i wanna uninstall this mod and get my karma feature back to normal just like how it is when you install a new forum ( with every member having zero karma ) how do i go about doing that.

Cause i think i would like to get everything back to the original settings and start this installation afresh. Get all members to zero.

Thanks a zillion Mate ... Sorry for all the trouble.
A wise monkey never monkies with another monkey's monkey

Fustrate

just uninstall it in Package Manager ;) and if you want to reset all rep/karma, run this query:
UPDATE `smf_members` SET `karma_good` = 0, `karma_bad` = 0 WHERE `id_member` > 0
Steven Hoffman
Former Team Member, 2009-2012

iceman~

Great ... Thanks mate .. Will start afresh.
A wise monkey never monkies with another monkey's monkey

Inside Sin

Gah, i just looked at this and i got amazed at this great work, then i tried to install, and it's not 1.1.4 compatible, GAH.

Any chance you'd make it for 1.1.4 anytime?

If not, then when is SMF 2.0 going to be released publicly, estimated?

iceman~

Quote from: YodaOfDarkness on April 24, 2008, 12:40:44 AM
just uninstall it in Package Manager ;) and if you want to reset all rep/karma, run this query:
UPDATE `smf_members` SET `karma_good` = 0, `karma_bad` = 0 WHERE `id_member` > 0

Sorry to trouble you again Yoda ... LOL ... How do i run this query.
Do i run it in phpmyadmin ...
Still learning ...
Thanks Mate
A wise monkey never monkies with another monkey's monkey

Kirschnik

At first, thx for the great Mod.

But i got the Problem with the White Space too... The weird thing is: it works in the core theme but my theme is just a copy of the core theme with different colors.

Maybe you wanna watch it under www.mightyhost.de [nofollow]

Thx a lot for helping

Advertisement: