Advanced Reputation System

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

Previous topic - Next topic

Babalui

I've made some changes in way points are added, and now I would like to boost some members rep.
Example:
How can I add 100 points to all members that currently have less then 110 pints?

Thanks in advance

SMF 1.1.12


steve in houston

On the Reputation Log, how can I make it where it hides the topic names and descriptions
on boards that users dont have access to?

I don't want some people to see topic titles in other peoples logs if they dont have permission to that certain board.

Witchboard

Is this mod is being supported anymore?  It's been a month since some of the questions were posted and the developers have been online, but no responses have been posted.  Just wondering before I uninstall it.

Bigguy

The author was just online today, maybe he'll be back to answer some questions soon. It is the holidays after all. :) Be patient and things should happen soon. :)

IlyZor

Any chance this will support 1.1.12? I tried to install it anyway but SMF doesn't recognize the format.

Bigguy

Is there a version for SMF 1.1.12 ??? There may be two versions on the authors mod page.

IlyZor

Compatible With:
    1.1.10, 1.1.11, 2.0 RC2, 2.0 RC3

No 1.1.12 there.

Bigguy

It should still install on 1.1.12 What would be required would be to open up the package-info.xml file and change the line that tells it what version to install for, repackage the mod and try that.

IlyZor

I get this:

10.    Execute Modification    ./Sources/Display.php    Test failed
11.    Execute Modification    ./Sources/Karma.php    Test successful
12.    Execute Modification    ./Sources/Load.php    Test successful
13.    Execute Modification    ./Sources/ManagePermissions.php    Test failed

I don't have any karma mods apart from the built-in karma-functionality (which is used).

Bigguy

OK, if that did not work then you will have to try to use the parser on the mod page and install it manually.

Nick Whetstone

#2150
Quote from: steve in houston on January 01, 2011, 04:46:37 PM
On the Reputation Log, how can I make it where it hides the topic names and descriptions
on boards that users dont have access to?

I don't want some people to see topic titles in other peoples logs if they dont have permission to that certain board.
Thank you for reporting that bug. I apologize there is currently no way to do this, but I will definitely look into a fix for this in the future.
Quote from: IlyZor on January 02, 2011, 03:25:38 PM
I get this:

10.    Execute Modification    ./Sources/Display.php    Test failed
11.    Execute Modification    ./Sources/Karma.php    Test successful
12.    Execute Modification    ./Sources/Load.php    Test successful
13.    Execute Modification    ./Sources/ManagePermissions.php    Test failed

I don't have any karma mods apart from the built-in karma-functionality (which is used).
Please attach the files which failed tests; also, please let me know the Mods that you currently have installed.
Quote from: Witchboard on January 01, 2011, 10:21:40 PM
Is this mod is being supported anymore?  It's been a month since some of the questions were posted and the developers have been online, but no responses have been posted.  Just wondering before I uninstall it.
I apologize for the slow responses in the support topic. With school, the holidays, and just everyday life, it sometimes doesn't allow me to respond as soon as I would like. It is my fault though, and again, I apologize for it.
Quote from: Witchboard on December 03, 2010, 09:14:51 PM
Hello.  I've installed the mod, but ran into a little problem.  I'm currently running SMF 1.1.12.  When reputation is enabled, I don't get any images, but still get what looks to be the original applaud and smite texts.  I've copied the image files and Karma template to my Babylon themes directory.  When I try and change the reputation, I get a message that states:

QuoteSession verification failed. Please try logging out and back in again, and then try again.

The forum logs report the following error:

Quote8: Undefined index:
File: /home/xxx/public_html/forum/Sources/Karma.php
Line: 207

I've attached my Karma.php for review.  I noticed one other person had the same error, but no resolution was provided as is host assisted him with the resolution.
This problem doesn't seem to show for me on my local installation. What other Mods do you have installed, and has this problem always occurred since you installed the ARS?
The artist formerly known as (Ha)²

Former Support Specialist

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

Witchboard

Quote from: Ha² on January 02, 2011, 05:41:46 PM
Quote from: Witchboard on January 01, 2011, 10:21:40 PM
Is this mod is being supported anymore?  It's been a month since some of the questions were posted and the developers have been online, but no responses have been posted.  Just wondering before I uninstall it.
I apologize for the slow responses in the support topic. With school, the holidays, and just everyday life, it sometimes doesn't allow me to respond as soon as I would like. It is my fault though, and again, I apologize for it.

It's no worries.  Just thought I would check.

Quote
Quote from: Witchboard on December 03, 2010, 09:14:51 PM
Hello.  I've installed the mod, but ran into a little problem.  I'm currently running SMF 1.1.12.  When reputation is enabled, I don't get any images, but still get what looks to be the original applaud and smite texts.  I've copied the image files and Karma template to my Babylon themes directory.  When I try and change the reputation, I get a message that states:

QuoteSession verification failed. Please try logging out and back in again, and then try again.

The forum logs report the following error:

Quote8: Undefined index:
File: /home/xxx/public_html/forum/Sources/Karma.php
Line: 207

I've attached my Karma.php for review.  I noticed one other person had the same error, but no resolution was provided as is host assisted him with the resolution.
This problem doesn't seem to show for me on my local installation. What other Mods do you have installed, and has this problem always occurred since you installed the ARS?

I've since disabled ARS as it does not function due to the above error.  The regular Karma system worked fine prior to the installation.  Below is a list of my installed packages:

Mod Name Version 
1. SMF Trader System 1.1 
2. Auto Embed Video Clips 1.3 
3. Fix Message Empty Error For Embed Video Mods 1.0 
4. SMF 1.1.4 Search "brd" Bug Fix (1.0.1) 1.0.1 
5. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0
6. SMF 1.0.14 / 1.1.6 Update 1.0
7. SMF 1.0.15 / 1.1.7 Update 1.0 
8. SMF 1.0.16 / 1.1.8 Update 1.0 
9. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0
10. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.1 
11. SMF 1.0.19 / 1.1.11 Update 1.0
12. Ignore Another User 1.1
13. Bot Buster 1.1
14. SMF 1.0.20 / 1.1.12 Update 1.0
15. Move Topic Notification 1.2
16. Advanced Reputation System 0.1.5

Thanks for the assist.

kidtienk

Can this mod installed on 2.0 rc4 ? or we must wait next release?

gisfreak

still confuse bout this warning

(you can see at the first post)

QuoteOne More Thing!

To install this modification in any theme other than Default, please click the box next to "Install in Other Themes" at the bottom of this page and check the applicable themes.

so where is the ""box next to "install in other themes" at the bottom of this page"", i can't find it ?

thanx
Me fail English? That's unpossible.

Spoogs

Quote from: gisfreak on January 10, 2011, 11:44:56 AM
still confuse bout this warning

(you can see at the first post)

QuoteOne More Thing!

To install this modification in any theme other than Default, please click the box next to "Install in Other Themes" at the bottom of this page and check the applicable themes.

so where is the ""box next to "install in other themes" at the bottom of this page"", i can't find it ?

thanx
What version of SMF are you using... the option to install in other themes are a 2.0 feature, if using RC4 the additional themes are expanded by default so you see the other themes... (note the only other theme you will see is Core unless you have installed other themes).

IlyZor

QuotePlease attach the files which failed tests; also, please let me know the Mods that you currently have installed.

Here's what I got:

1.    Downloads System    1.3.5    
2.    Anonym.to All External Links    1.2    
3.    Hide Post    1.1    
4.    Cavecost Captcha    1.0    
5.    SMF 1.0.19 / 1.1.11 Update    1.0    
6.    SMF 1.0.20 / 1.1.12 Update    1.0    
7.    SMF Staff Page    1.7    

Senkusha

Hi, I must be incompetent or something.  I've installed the mod (2.0RC4), I did get one error about Personal Messages, but everything else passed.  I see the green / red lights for reputation, but nowhere do I see any way to add reputation to anybody, even as the administrator.  I've gone into the permissions and enabled the + and - reputation for the Regular Members too.  I've refreshed my forum cache and my browser cache.  No difference.  Oh, and I've also enabled the Reputation mod too.

Help?
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

4LP3RUZ1

#2157
there are tiny differences in the RC4 templates (a bunch of border="0" additions) which results in this mod failing to apply. Because the changes to these template files are set to skip it looks like the mod is installed even though it actually hasnt.

I've corrected these template changes, you can try uninstalling and installing the version I attached below.

There were a few errors in the Turkish translations too so I changed those. Havent tested the UTF8 conversion though.

Please post the edits for the changes made instead of packing it as a modification. (F.L.A.M.E.R) was here.

edit:

Ok here it is, didn't have the package saved so had to do a diff from scratch :D :P

To a clean display.template.php of 2.0 RC4 do these to get the reputation divider to display:

note: 1 or maybe 2 of these operations should have been applied already when you installed the mod, so make sure you are not applying the modification twice!

after <a id="top"></a>add <span id="reputation_menu" style="visibility: hidden; display: none;">
<div class="windowbg2">
<strong>', $txt['karma_add_to'], ': <span id="reputation_name">&nbsp;</span></strong>
<fieldset>
<legend>', $txt['karma_your_opinion'], '</legend>
<form id="reputation_form" name="reputation_form" action="', $scripturl, '?action=modifykarma" method="post" accept-charset="', $context['character_set'], '" class="reputation_form" onsubmit="aReputation[0].sendRep(); return false;">
<input type="radio" name="type" value="agree"', !$context['can_pos_rep'] ? ' disabled="disabled"' : ' checked="checked"', ' /> ', $txt['karma_agree'], '
<input type="radio" name="type" value="disagree"', !$context['can_neg_rep'] ? ' disabled="disabled"' : !$context['can_pos_rep'] ? ' checked="checked"' : '', ' /> ', $txt['karma_disagree'], '
<span id="reputation_fields">&nbsp;</span>
<br />
', $txt['comment'], ': <input type="text" name="reputation_comment" /><br />
<br />
<input type="submit" value="', $txt['submit'], '" />
<input type="hidden" name="topic" value="', $context['current_topic'], '.', $context['start'], '" />
<input type="hidden" id="sessionid" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</fieldset>
<script language="JavaScript" type="text/javascript"><!-- // -->
// Ajaxify that reputation box!
if (typeof(window.XMLHttpRequest) != "undefined")
{
aReputation[0] = new Reputation({
sBackReference: "aReputation[0]",
sScriptUrl: "', $scripturl, '"
});
}
</script>
</div>
</span>


change thisif ($modSettings['karmaMode'] == '1')
echo '
<li class="karma">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
elseif ($modSettings['karmaMode'] == '2')
echo '
<li class="karma">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<li class="karma_allow">
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a>
</li>';
to thisif ($modSettings['karmaMode'] != '0')
{
echo '
<li class="karma">', $txt['karma_power'], ': ', $message['member']['karma']['power'], '</li>
<li class="karma_allow repbars">
';
foreach($message['member']['karma']['bars'] as $karma_bar)
echo '<img src="', $settings['images_url'], '/karma_', $karma_bar['type'], '.gif" title="', $message['member']['name'], ' ', $karma_bar['desc'], '" alt="', $message['member']['name'], ' ', $karma_bar['desc'], '" />';

echo '
</li>';
}


add before// Since we know this person isn't a guest, you *can* message them.this
// Is this user allowed to modify this member's karma?
if (($context['can_pos_rep'] || $context['can_neg_rep']) && $message['can_send_karma'] && ($user_info['id'] != $message['member']['id']))
echo '
<span style="visibility: hidden; display: none;" id="reputation_form_', $message['id'], '">
<input type="hidden" name="uid" value="', $message['member']['id'], '" />
<input type="hidden" name="m" value="', $message['id'], '" />
</span>
<li><a id="repicon" onclick="reputationForm(\'reputation_form_', $message['id'], '\', \'', $message['member']['name'], '\', this, event); return false;" href="', $scripturl, '?action=reputation;uid=', $message['member']['id'], ';m=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '"><img src="', $settings['images_url'], '/karma.gif" alt="', $txt['add_karma'], '" title="', $txt['add_karma'], '" /></a></li>';
Frozen frogs are back :(

Quexinos

#2158
Quote from: Senkusha on January 15, 2011, 12:41:04 PM
Hi, I must be incompetent or something.  I've installed the mod (2.0RC4), I did get one error about Personal Messages, but everything else passed.  I see the green / red lights for reputation, but nowhere do I see any way to add reputation to anybody, even as the administrator.  I've gone into the permissions and enabled the + and - reputation for the Regular Members too.  I've refreshed my forum cache and my browser cache.  No difference.  Oh, and I've also enabled the Reputation mod too.

Help?

Yeah I had the same problem XD

For some reason it skips a step.  You have to do this one:

Find:


// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" border="0" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';


Add Before:



// Is this user allowed to modify this member's karma?
if (($context['can_pos_rep'] || $context['can_neg_rep']) && $message['can_send_karma'] && ($user_info['id'] != $message['member']['id']))
echo '
<span style="visibility: hidden; display: none;" id="reputation_form_', $message['id'], '">
<input type="hidden" name="uid" value="', $message['member']['id'], '" />
<input type="hidden" name="m" value="', $message['id'], '" />
</span>
<li><a id="repicon" onclick="reputationForm(\'reputation_form_', $message['id'], '\', \'', $message['member']['name'], '\', this, event); return false;" href="', $scripturl, '?action=reputation;uid=', $message['member']['id'], ';m=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '"><img src="', $settings['images_url'], '/karma.gif" alt="', $txt['add_karma'], '" title="', $txt['add_karma'], '" /></a></li>';



and you should be good to go ^_^

I can't get it to work properly on any of my square skins though... anyone had any luck with that?  When I click on the heart to rep the user, the options appear at the top of the topic and you have to scroll up.. it's weird XD

EDIT
HEY I fixed it... for anyone else with the same problem all you have to do is change

<span id="reputation_menu" style="visibility: hidden; display: none;">

to
<span id="reputation_menu" style="visibility: hidden; display: none; position: absolute">

and it should work just fine.

XiFiCt69

Hi all people of SMF,

First of all sorry about my English, but I'm from Spain, so I will do my best.

I didn't find any spanish topic about that. What you did for install this mod on SMF 2.0 RC4? I need to install this mod on my website inmediately cause the people gets Karma positive/negative without any reason.

Thank you in advance. :)

Advertisement: