Advanced Reputation System

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

Previous topic - Next topic

Sheree

Hi there thanks for this great mod, I've installed it successfully.

After installation and I hit "add reputation" I get the error

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

I have SMF 1.1.13 (fresh installed)

with the following Mods installed

Quote1.    SimplePortal    2.3.3    
2.    Anti Bot: Captcha Clock    2.2
3.    Stars And Badges    2.1    
4.    Aeva Media    1.4c
5.    Custom Action Mod    2.04    
6.    Member Color Link    3.0.8    
7.    Ad Managment    2.3.6.1    
8.    Cbox Integration    1.0    
9.    SMF 1.0.21 / 1.1.13 Update    1.0    
10.    Attachments Positioning    1.1    
11.    Popup PM Message - Uses The Same Window    
12.    Advanced Reputation System    0.1.5    
13.    AvatarSelect    1.2.1    
14.    Profile Comments    2.0.1    
15.    Referrals System    3.0.1    
16.    Add IP2Location to Track IP    1.3    
17.    Welcome Topic Mod    2.1

any help will be much appreciated.  :)

timned88

i have figured out how to get values #11-20 to be returned and re-coded stats.php to return the proper values. 

could someone please send me a piece of code to work into stats.template.php so i can have #1-10 on the left side and #11-20 on the right side?  sort of like the way top 10 topics (repies) and top 10 topics (views) is displayed?  thanks!

timned88

#2202
here is an example of what i want to do...  i don't want to lose the top 10 blocks as depicted, but want to create a new left/right block with the information as the arrows indicate.  thanks to whomever can help with this.

the way i coded this in, reputation_worst is what returns values 11-20. 

to do this, i want to remove the existing reputation blocks that take up the full width of the screen and create one new split block with 1-10 on the left and 11-20 on the right.

Nick Whetstone

If I'm understanding you correctly, try adding style="width: 49.5%; float: left;" on the one you want to be the left div, and style="width: 49.5%; float: left;" on the one you want to be on the right.
The artist formerly known as (Ha)²

Former Support Specialist

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

Aoife

Quote from: Vasya Pupkin on February 26, 2011, 02:18:22 PM
2 aoife:
I think this errors are caused by wrong lang-german-utf8.xml that contains modifications of english-utf8 language instead of german.

I would agree and that's from version 1.8.2.

timned88

Quote from: (Ha)² on February 26, 2011, 06:26:34 PM
If I'm understanding you correctly, try adding style="width: 49.5%; float: left;" on the one you want to be the left div, and style="width: 49.5%; float: left;" on the one you want to be on the right.

thanks for the tip but i was able to work out what i wanted it to look like by copying and modifying some existing code.

Dumpy

#2206
Weird one this.  The mod installs perfectly.  Reputation text and bars appear under members Avatars.  All permissions have been set as instructed.  The system is armed and active.  But no one can give Rep.  There are no links/buttons anywhere on anyone's profile info or posts to add or remove rep.  I've installed/uninstalled a couple of times (all without any errors) but it doesn't want to play.  Any suggestions?  BTW: I'm using RC5

Here's a list of other mods installed.

1. Aeva Media 2.10 
2. Enhanced PM Popup 1.0.1 
3. PM to New Members 1.2     
4. New Topic Button 1.0   
5. Contact Page 2.1.1   
6. Topic Note 0.9.1     
7. Downloads System 1.3.6   
8. SimplePortal 2.3.3     
9. Country Flags 1.1.2     
10. [BBCode] Dotted Underline 1.0     
11. Tabbed smileys 0.3.1     
12. Downloads System 1.3.7    (upgrade)
13. AvatarSelect 1.2.1     
14. Countdown BBCode 1.3     
15. Default Avatar 2.0   
16. SmileyLimit 1.1   
17. Uncensored Boards 1.5   
18. BBCode with style 1.3   
19. Relative Dates 1.1   
20. VB Style Board Index 1.1   
21. Separate Replies and Views Column 1.8     
22. Activity Reminder 1.0     
23. Page Management 1.4     
24. E-Arcade (this was installed AFTER trying the Rep mod)

With thanks  :)

Aoife

#2207
Quote from: Vasya Pupkin on February 26, 2011, 02:18:22 PM
2 aoife:
I think this errors are caused by wrong lang-german-utf8.xml that contains modifications of english-utf8 language instead of german.

I would agree and that's from version 1.8.2.

I'm at a loss. I went ahead and installed the package on my a test site just to see what would happen and when I went to the Reputation settings, everything was in German.  I don't need German on my site, I'm wondering if I can just do a manual install to get around this somehow....

UPDATE: I extracted the files in v1.8.2 and then uploaded only the files I needed (i.e., left out the non-english language .xml files) into a folder I made under Packages. I then went to the Package browser in my forums and installed. I got error messages for the missing language files but those languages aren't available in our forums anyway, so I went ahead with the install - and it worked!  We can even give rep again, for the first time in a long time!




Nick Whetstone

@Dumpy: On my phone right now, but are you using Curve? Any errors in the error log?

Also, for those that want to know, I believe that the German language file is fixed on my local installation. It should be included in the next version.
The artist formerly known as (Ha)²

Former Support Specialist

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

Nick Whetstone

Advanced Reputation System v1.8.3 for SMF 2.0 RC5 has been released! :D

It makes some fairly small adjustments, and here is a quick changelog:

  • German UTF-8 language file updated (Also, I've finally credited Ryoki in the readme for his translation work; sorry that I had forgotten for so long!)
  • Now uses a few of the new integration hooks to reduce code edits
  • The package will now attempt to install on all 2.0 versions.

A quick note: I will not be around here for a while. With that in mind, I have, as mentioned in the changelog, updated the package so that, if 2.0 RC6/2.0 Final is released during my absence, it will at least *attempt* to install on all 2.0 versions until a proper update is made. So, with that being said, even though the compatibility list says RC5, feel free to try it on the next 2.0 version, since there is, I would say, at least a 99.9999999999999999764% chance it will work without having to use Version Emulate. :P

Jusque-là, au revoir, et j'espére vous aimez on. :)

(Ha)²
The artist formerly known as (Ha)²

Former Support Specialist

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

Spoogs

(Ha)² thanks for the update  8)

The images never get added to custom themes (I know that pretty easily fixed) but how about in package-info.xml
change
<require-file name="karma.gif" destination="$themedir/images" /> ...etc
to
<require-file name="karma.gif" destination="$imagesdir" /> ...etc

Nick Whetstone

Quote from: Spoogs on February 28, 2011, 11:50:49 PM
(Ha)² thanks for the update  8)

The images never get added to custom themes (I know that pretty easily fixed) but how about in package-info.xml
change
<require-file name="karma.gif" destination="$themedir/images" /> ...etc
to
<require-file name="karma.gif" destination="$imagesdir" /> ...etc
Good point. Done. :)
The artist formerly known as (Ha)²

Former Support Specialist

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

Spoogs

#2212
very cool

Edit
Thats the same package ;)

Arantor

Alternatively push it to $themes_dir/default/images and then forcibly use the default theme in the templates? :P

Dumpy

Quote from: (Ha)² on February 27, 2011, 02:04:46 PM
@Dumpy: On my phone right now, but are you using Curve? Any errors in the error log?

Also, for those that want to know, I believe that the German language file is fixed on my local installation. It should be included in the next version.

I've managed to get it work and it's running just fine now.  Can't say that I did anything different, just uninstalled it and reinstalled it and there it was - magic.

Just one very quick question - I would like to give bonus rep to members for doing something extraordinary - is there a way to do this?  For e.g. give 500 rep for recommending a new member, 1000 rep for posting something incredible, etc.

Many thanks for a great mod.  ;D

4LP3RUZ1

well, you can set their karma from their profile. Can't really do it simply with a button click unless you want to go coding yourself :)
Frozen frogs are back :(

devoetbalkantine

Is there any way I can move the heart (the icon to give reputation) to the bottom of the profile-part in messages? Now it's between all the messenger icons

knightamigo

Quote from: Dumpy on March 01, 2011, 01:46:49 PM
I've managed to get it work and it's running just fine now.  Can't say that I did anything different, just uninstalled it and reinstalled it and there it was - magic.

Just one very quick question - I would like to give bonus rep to members for doing something extraordinary - is there a way to do this?  For e.g. give 500 rep for recommending a new member, 1000 rep for posting something incredible, etc.

Many thanks for a great mod.  ;D

If you have admin controls, you can give bulk rep or karma points on the member's profile page

Modify Profile > Forum Profile Information
See bottom of the page for Reputation text boxes.
Then just click on "Change Profile" when done.




I wonder who can help this certified hottie as we have the same problem/error with this mod on our sites....
Quote from: Sheree
Session verification failed. Please try logging out and back in again, and then try again.

The Mod works properly if I manually paste/add the session id on the url.

Dumpy

Quote from: devoetbalkantine on March 01, 2011, 03:55:58 PM
Is there any way I can move the heart (the icon to give reputation) to the bottom of the profile-part in messages? Now it's between all the messenger icons

Yes!  I did this and also changed the image file too.

You need to open the display.template.php in your Themes folder for editing.

I wanted to place mine under the Gender Icon, so I looked for this:

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';


I then looked for the code that was displaying the icon, which is 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>';


I just moved the above part to sit below the Gender code so it all looked like this:

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';

// 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>';


I changed the karma.gif to the look that I wanted and uploaded to the Themes image folder and the end result is what's shown below:


Dumpy

Quote from: 4LP3RUZ1 on March 01, 2011, 01:49:16 PM
well, you can set their karma from their profile. Can't really do it simply with a button click unless you want to go coding yourself :)

Yes I saw that and it's great to be able to add rep this way.  I saw this code on the very first post:

UPDATE smf_members
SET karma_good = 1000, karma_bad = 0


What I'd like to know is that if I run this SQL query will it just put my members all to the same value and leave it at that, or will adding rep in future clicks still add rep to whatever figure I choose to use in the query?  If it does allow more to be added then I'll just run the query to give everyone some rep so they don't feel left out lol.

Advertisement: