Page 1 of 12

[ABD] Reputation System

Posted: Sat Nov 09, 2013 9:03 am
by Pico88
Reputation System

An extension which adsd the full reputation system for your phpBB 3.1 board, with adjustable reputation settings. It allows forum users to rate posts or users, view rating statistics, reputation rankings. Users can write a short comment with giving reputation.

This extension is a port of my MOD from phpBB 3.0.x. Both version are not compatible together and during instalation this extension the previous version is converted automatically to the new one.

  • AJAX post rating
  • AJAX user rating
  • possibility to choose reputation power during giving a reputation point
  • lots of ACP setting such as: enable/disable the whole system, enable/disable negative points, enable/disable comment, force to write a reputation comment, reputation power settings (base on post, groups, etc.)
  • permissions system - you can adjust it to your board
  • and more
In development - do not install on live board. It is only for testing purpose.
I do not get resposibility if something goes wrong.

Repository: ... ree/master

[DEV] Reputation System - changelog

Posted: Sat Nov 23, 2013 8:46 pm
by Pico88
This post will be reserved for change log ;)

Re: [DEV] Reputation System

Posted: Wed Jan 01, 2014 2:49 pm
by wintstar
phpBB 3.1.0-a2 Build #1216
MySQL(i) 5.5.32
PHP Version 5.4.19
[DEV] Reputation System ... /extension downloaded at 31.12.2013

When I click on the profile of a user Reputation: View details


click the following error appears:
Fatal error: Call to undefined function pico88\reputation\controller\phpbb_generate_template_pagination() in C:\xampp\htdocs\1216ext\ext\pico88\reputation\controller\details.php on line 299

Re: [DEV] Reputation System

Posted: Wed Jan 01, 2014 3:13 pm
by Marc
This is probably due to a recent change to the pagination system in the phpBB develop branch.

Re: [DEV] Reputation System

Posted: Wed Jan 01, 2014 3:53 pm
by Pico88
Yes, it isn't updated to latest phpBB3.1 changes.

EDIT: Fix pagination

Re: [DEV] Reputation System

Posted: Sun Jan 05, 2014 11:57 pm
by Raul [ThE KuKa]
Spanish language complete for this Extension. ;)

Re: [DEV] Reputation System

Posted: Wed Jan 08, 2014 7:02 am
by wintstar

Re: [DEV] Reputation System

Posted: Wed Jan 08, 2014 2:48 pm
by wintstar
MySQL(i) 5.5.31-log
PHP Version 5.5.7
phpBB 3.1.0-a2-dev Build 1217

Demo User ... hp?f=8&t=4

I have found a mistake in the root path. In the popup "post details" are the paths to the user is not properly. The test forum is in a subfolder.


It is called the following URL

would be correct

Added: Affects not only the subdomain, also the path to the main domain.

Re: [DEV] Reputation System

Posted: Wed Jan 08, 2014 5:59 pm
by Pico88
It is a bug in phpBB core connected with function get_web_root_path() from path_helper.php

In other links I use the temporary fix, which checks if AJAX request is used.

I have already made a ticket with possible solution.

Re: [DEV] Reputation System

Posted: Wed Jan 08, 2014 6:03 pm
by wintstar
With update to Build 1217, it is still not resolved.

Re: [DEV] Reputation System

Posted: Wed Jan 08, 2014 6:04 pm
by Pico88

Re: [DEV] Reputation System

Posted: Thu Jan 09, 2014 12:56 am
by wintstar
In other style other than prosilver, subsilver2 not tested, style files the extension is not capitalized. Style contains all change to build # 1217. Original Event points are available. Please Login as demo user, see link previous post, and activate the Style matterhorn. Other extensions, such as [DEV] Topic Preview and [DEV] Advanced BBCode Box 3.1 works.

Re: [DEV] Reputation System

Posted: Thu Jan 09, 2014 7:58 am
by Pico88
ATM there are only prosilver files included. You haven't looked in folder tree.
I'm not going to move them from prosilver folder to all folder in styles until the extension is ready to be released, and that will not happen until phpBB3.1 is released.

Re: [DEV] Reputation System

Posted: Thu Jan 09, 2014 8:02 am
by wintstar
Matterhorn based on prosilver. Changes occurred only in the overall_header.html. Ok. Yes, now I understand why. Do not rush. Was referring only to possibly a bug in close.

EDIT: I have found the solution. Was quite easy. Thanks for the tip :)

Re: [DEV] Reputation System

Posted: Thu Jan 23, 2014 9:43 pm
by leschek
I was testing your extension a bit and here is a feedback:

When I try to give reputation points to user in ACP I get this error:

Code: Select all

Fatal error: Call to undefined method pico88\reputation\core\manager::give_point() in /home/xxxxxxx/yyyyyyyy/forum/ext/pico88/reputation/acp/reputation_module.php on line 779
When I click on user's profile I can't go to "Rate user" page and when I try to "View Details" I get this error:

Code: Select all

General Error
SQL ERROR [ mysql4 ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int 182 AND (action = 1 OR action = 2) AND time > 1390500991' at line 3 [1064]


SELECT point FROM phpbb3_reputations WHERE rep_from = int 182 AND (action = 1 OR action = 2) AND time > 1390500991


FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 803
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysql.php
LINE: 184
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/ext/pico88/reputation/core/power.php
LINE: 148
CALL: phpbb\db\driver\mysql->sql_query()

FILE: [ROOT]/ext/pico88/reputation/controller/details.php
LINE: 273
CALL: pico88\reputation\core\power->used()

FILE: (not given by php)
LINE: (not given by php)
CALL: pico88\reputation\controller\details->main()

FILE: [ROOT]/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
LINE: 117
CALL: call_user_func_array()

FILE: [ROOT]/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
LINE: 61
CALL: Symfony\Component\HttpKernel\HttpKernel->handleRaw()

FILE: [ROOT]/app.php
LINE: 29
CALL: Symfony\Component\HttpKernel\HttpKernel->handle()
I'm also not able to rate post of user but I can see the thumbs)

I'm using latest (2014-01-22) phpBB 3.1 a2 from here.

Some possible language issues:

in language/en/info_acp_reputation.php (missing words on the end of second sentence?)

Code: Select all

'RS_USER_RATING_GAP_EXPLAIN'	=> 'Time period a user must wait before they can give another rating to a user they have already rated. Setting the value to 0 disables this behaviour and users can rate other users once each.',
Plurals in language/en/reputation_system.php

I think these strings should be plurals:

Code: Select all

'RS_COMMENT_TOO_LONG'		=> 'Your comment contains %1$s characters and is too long.<br />The maximum allowed characters: %2$s.',

Code: Select all

'RS_SAME_POST'				=> 'You have already rated this post.<br />You gave %s reputation points.',

Code: Select all

'RS_VOTE_POWER_LEFT_OF_MAX'		=> '%1$d reputation power points left of %2$d.<br />Maximum per vote: %3$d',
I'm not sure about the following. If it shows that user can try it again in xy minutes/hours/days it should be in plurals:

Code: Select all

'RS_USER_GAP'					=> 'You cannot rate the same user so soon. You can try again in %s.',
I think this can be one plural (array):

Code: Select all

'RS_NEW_REP'					=> 'You received <strong>1 new</strong> reputation comment',
'RS_NEW_REPS'					=> 'You received <strong>%s new</strong> reputation comments',
It probably doesn't matter, but the following strings doesn't have to be plurals (in arrays), because there are not specified numbers (what i mean is that it always will be for example 'Delete points' and doesn't matter how many points is deleted.)

Code: Select all

'RS_DELETE_POINTS'			=> array(
		1	=> 'Delete point',
		2	=> 'Delete points'
		1	=> 'Do you really want to delete this reputation point?',
		2	=> 'Do you really want to delete these reputation points?',
	'RS_POINTS_DELETED'			=> array(
		1	=> 'The reputation point has been deleted.',
		2	=> 'The reputation points have been deleted.',
In ACP settings on Reputation Power tab is missing language string:

Code: Select all