[ABD] Reputation System

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

[ABD] Reputation System

Post by Pico88 »

Reputation System

Description:
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.

Features:
  • 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
Status:
In development - do not install on live board. It is only for testing purpose.
I do not get resposibility if something goes wrong.

Repository:
https://github.com/Pico/phpBB-Reputatio ... ree/master
Last edited by Pico88 on Sun Jul 27, 2014 10:10 am, edited 14 times in total.
Please do not PM me for support.
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

[DEV] Reputation System - changelog

Post by Pico88 »

This post will be reserved for change log ;)
Last edited by Pico88 on Sat May 17, 2014 2:18 pm, edited 2 times in total.
Please do not PM me for support.
User avatar
wintstar
Registered User
Posts: 358
Joined: Sat Mar 07, 2009 12:39 pm
Location: Central Hessen, close to the "heart of nature", Germany

Re: [DEV] Reputation System

Post by wintstar »

phpBB 3.1.0-a2 Build #1216
MySQL(i) 5.5.32
PHP Version 5.4.19
[DEV] Reputation System https://github.com/Pico88/phpBB-Reputat ... /extension downloaded at 31.12.2013

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

Image

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
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5723
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc

Re: [DEV] Reputation System

Post by Marc »

This is probably due to a recent change to the pagination system in the phpBB develop branch.
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [DEV] Reputation System

Post by Pico88 »

Yes, it isn't updated to latest phpBB3.1 changes.

EDIT: Fix pagination
Please do not PM me for support.
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11138
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo

Re: [DEV] Reputation System

Post by Raul [ThE KuKa] »

Spanish language complete for this Extension. ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
wintstar
Registered User
Posts: 358
Joined: Sat Mar 07, 2009 12:39 pm
Location: Central Hessen, close to the "heart of nature", Germany

Re: [DEV] Reputation System

Post by wintstar »

User avatar
wintstar
Registered User
Posts: 358
Joined: Sat Mar 07, 2009 12:39 pm
Location: Central Hessen, close to the "heart of nature", Germany

Re: [DEV] Reputation System

Post by wintstar »

MySQL(i) 5.5.31-log
PHP Version 5.5.7
phpBB 3.1.0-a2-dev Build 1217

Testforum http://area52.wintstar.de/phpBBext/
Demo User http://area52.wintstar.de/phpBBext/view ... 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.

Image

It is called the following URL

area52.wintstar.de/memberlist.php?mode=viewprofile&u

would be correct

area52.wintstar.de/subfolder/memberlist.php?mode=viewprofile&u

Added: Affects not only the subdomain, also the path to the main domain.
Last edited by wintstar on Wed Jan 08, 2014 11:01 pm, edited 1 time in total.
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [DEV] Reputation System

Post 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.
Please do not PM me for support.
User avatar
wintstar
Registered User
Posts: 358
Joined: Sat Mar 07, 2009 12:39 pm
Location: Central Hessen, close to the "heart of nature", Germany

Re: [DEV] Reputation System

Post by wintstar »

With update to Build 1217, it is still not resolved.
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [DEV] Reputation System

Post by Pico88 »

Please do not PM me for support.
User avatar
wintstar
Registered User
Posts: 358
Joined: Sat Mar 07, 2009 12:39 pm
Location: Central Hessen, close to the "heart of nature", Germany

Re: [DEV] Reputation System

Post 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.
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [DEV] Reputation System

Post 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.
Please do not PM me for support.
User avatar
wintstar
Registered User
Posts: 358
Joined: Sat Mar 07, 2009 12:39 pm
Location: Central Hessen, close to the "heart of nature", Germany

Re: [DEV] Reputation System

Post 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 :)
leschek
Registered User
Posts: 858
Joined: Tue Jul 18, 2006 12:49 pm

Re: [DEV] Reputation System

Post 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]

SQL

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

BACKTRACE

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'
	),
	'RS_DELETE_POINTS_CONFIRM'	=> array(
		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

RS_LOSE_POWER_WARN:

Return to “Abandoned Extensions”