Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several fixes #41

Open
wants to merge 72 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
06c1074
FRENCH translation for Reputation System extension
Galixte Feb 27, 2015
fdfdca5
FRENCH translation for info_acp_reputation.php file
Galixte Feb 27, 2015
71cbf41
FRENCH translation for permissions_reputation.php file
Galixte Feb 27, 2015
88ff72c
FRENCH translation for reputation_acp.php file
Galixte Feb 27, 2015
061c0f1
FRENCH translation for reputation_common.php file
Galixte Feb 27, 2015
a36f8c3
FRENCH translation for reputation_rating.php file
Galixte Feb 27, 2015
dc21e32
FRENCH translation for reputation_system.php file
Galixte Feb 27, 2015
d97b2bf
FRENCH translation for reputation_toplist.php file
Galixte Feb 27, 2015
23599b8
FRENCH translation for reputation_warning.php file
Galixte Feb 27, 2015
4b4e728
Update for FRENCH translation for info_acp_reputation.php file
Galixte Feb 28, 2015
333f208
Update for ENGLISH translation for info_acp_reputation.php file
Galixte Feb 28, 2015
1baeaf9
Update for FRENCH translation - UTF8 FRENCH quotes
Galixte Mar 1, 2015
91e7c68
Update for ENGLISH translation for reputation_system.php file
Galixte Mar 11, 2015
d804339
Update for FRENCH translation for reputation_system.php file
Galixte Mar 11, 2015
9358359
Minor update for ENGLISH for reputation_acp.php file
Galixte Mar 11, 2015
e074d1d
Update for reputation_common.php file
Galixte Mar 11, 2015
f96aa06
Update for reputation_common.php file
Galixte Mar 11, 2015
8d1e2a6
Correct update for reputation_common.php file
Galixte Mar 11, 2015
342777d
Correct update for reputation_system.php file
Galixte Mar 11, 2015
7ae9d20
Correct update for reputation_common.php file
Galixte Mar 11, 2015
d2b261f
Add missing L_COLON keys
Galixte Jun 9, 2015
5f614f0
fix correct class
Galixte Jun 9, 2015
9f50308
Fix colors class and padding button on viewtopic
Galixte Jun 10, 2015
072723a
fix colors class and padding button on viewtopic
Galixte Jun 10, 2015
7152b54
Fix padding button on viewtopic
Galixte Jun 10, 2015
8a69f7c
Update of FRENCH translation for Reputation System extension
Galixte Sep 20, 2015
787a39d
Update of FRENCH translation for Reputation System extension
Galixte Sep 20, 2015
55ab2e8
Update of FRENCH translation for Reputation System extension
Galixte Sep 20, 2015
8fe1b83
Update of FRENCH translation for Reputation System extension
Galixte Sep 20, 2015
34dc006
Update of FRENCH translation for Reputation System extension
Galixte Sep 20, 2015
7c8a81f
Update of FRENCH translation for Reputation System extension
Galixte Sep 20, 2015
43facdf
Update of FRENCH translation for Reputation System extension
Galixte Sep 20, 2015
d091473
Update of FRENCH translation for Reputation System extension
Galixte Sep 20, 2015
aa7f535
Update of FRENCH translation for Reputation System extension
Galixte Sep 20, 2015
13e0b5b
Update padding on viewtopic buttons
Galixte Oct 15, 2015
5685617
Working code for phpBB 3.2
Jan 18, 2017
65051e8
Fixes in notifications system
WorkingWarrior Jan 18, 2017
60e7c4d
3.2 fixes: fixed parent constructor call in notifications and update …
Jan 19, 2017
a41efa9
Merge branch 'rhea_fixes' into rhea_fixes
jbreu Jan 20, 2017
2e9b694
Merge pull request #1 from WorkingWarrior/rhea_fixes
jbreu Jan 20, 2017
4709745
Minor fixes due to merging issues
jbreu Jan 21, 2017
d6b9ce8
Add German translation (not in acp)
jbreu Jan 21, 2017
935e9de
Remove icons (replaced by fontawesome icons); fix post reputation dis…
jbreu Jan 21, 2017
04a09fc
Fix buttons when post reputation is given
jbreu Jan 21, 2017
d8d6e8a
Push version to 1.1.0-dev
jbreu Jan 30, 2017
5f63e1d
Merge branch 'patch-2' of https://github.com/Galixte/phpBB-Reputation…
jbreu Jan 31, 2017
368d4ac
Update Readme.md
jbreu Jan 31, 2017
a624c7e
Update README.md
jbreu Feb 1, 2017
1b2dac8
Bad names of language keys
Galixte Feb 1, 2017
1d3c172
Bad names of language keys
Galixte Feb 1, 2017
27a7b07
Bad names of language keys
Galixte Feb 1, 2017
a61ee26
missing colon
Galixte Feb 1, 2017
2d0f4b6
missing colon
Galixte Feb 1, 2017
9e077c6
missing colon
Galixte Feb 1, 2017
26c02e6
Merge pull request #3 from Galixte/patch-3
jbreu Feb 1, 2017
f8f1796
Language fixes thanks to @Galixte ; Polish translation tbd.
Feb 2, 2017
689d427
Russian translation
KotM Mar 18, 2017
82394d5
Mistyping
KotM Mar 25, 2017
6954896
More applicable translation
KotM Mar 25, 2017
b860212
Simplified
KotM Mar 25, 2017
39b9b12
BugFix: Incorrect reputation view link from viewtopic
KotM Mar 25, 2017
7014f0d
Merge pull request #5 from KotM/Russian-translation
jbreu Jun 8, 2017
8572dca
Merge pull request #6 from KotM/Bugfixes
jbreu Jun 8, 2017
9f6d24d
Fixes to make it run on phpBB3.3
Jan 13, 2020
3d99cdd
Included comments in notifications
rbonick Mar 14, 2021
40f0cd1
Remove accidental file copy
rbonick Mar 14, 2021
fd30d0a
Fix reputation icons not showing
rbonick Mar 14, 2021
e99cc0f
Fix reputation comments not being censored
rbonick Mar 27, 2021
cfd0d2f
Merge pull request #9 from rbonick/styles
jbreu Dec 7, 2021
fabd52d
Merge pull request #10 from rbonick/censor-comments
jbreu Dec 7, 2021
b8a0aa4
Merge pull request #8 from rbonick/master
jbreu Dec 7, 2021
011544a
fix compatibility with phpBB 3.3.10
jbreu Apr 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
phpBB-Reputation-System
=======================

A full reputation (karma) system for phpBB3.1, with adjustable reputation settings.
A full reputation (karma) system for phpBB3.3, with adjustable reputation settings.

## Features
* AJAX post rating
Expand All @@ -12,7 +12,7 @@ A full reputation (karma) system for phpBB3.1, with adjustable reputation settin
* and more

## Quick Install
You can install this on the latest copy of the develop branch ([phpBB 3.1-dev](https://github.com/phpbb/phpbb3)) by following the steps below:
You can install this on the latest copy of phpBB ([phpBB 3.3](https://github.com/phpbb/phpbb3)) by following the steps below:

1. Download the latest repository.
2. Unzip the downloaded release, and change the name of the folder to `reputation`.
Expand All @@ -38,7 +38,6 @@ You can install this on the latest copy of the develop branch ([phpBB 3.1-dev](h
- [x] Notifications
- [ ] Responsive design
- [ ] Reputation ranks
- [x] Updater from version for phpBB 3.0.x to release for phpBB 3.1.x - in progress (testing phase)

## License
[GNU General Public License v2](http://opensource.org/licenses/GPL-2.0)
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "An extension which adds reputations (karma) to your board.",
"homepage": "https://github.com/Pico88/phpBB-Reputation-System",
"version": "1.0.0-dev",
"version": "1.1.0-dev",
"license": "GPL-2.0",
"authors": [
{
Expand All @@ -13,12 +13,12 @@
}
],
"require": {
"php": ">=5.3.3"
"php": ">=7.0"
},
"extra": {
"display-name": "Reputation System",
"soft-require": {
"phpbb/phpbb": ">=3.1.0-RC2,<3.2.*@dev"
"phpbb/phpbb": ">=3.3.0"
}
}
}
54 changes: 27 additions & 27 deletions config/listeners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,61 @@ services:
pico.reputation.acp_listener:
class: pico\reputation\event\acp_listener
arguments:
- @request
- @template
- '@request'
- '@template'
tags:
- { name: event.listener }

pico.reputation.index_listener:
class: pico\reputation\event\index_listener
arguments:
- @auth
- @config
- @dbal.conn
- @controller.helper
- @template
- @user
- '@auth'
- '@config'
- '@dbal.conn'
- '@controller.helper'
- '@template'
- '@user'
tags:
- { name: event.listener }

pico.reputation.main_listener:
class: pico\reputation\event\main_listener
arguments:
- @config
- @template
- '@config'
- '@template'
tags:
- { name: event.listener }

pico.reputation.mcp_listener:
class: pico\reputation\event\mcp_listener
arguments:
- @auth
- @config
- @request
- @template
- @user
- @pico.reputation.manager
- '@auth'
- '@config'
- '@request'
- '@template'
- '@user'
- '@pico.reputation.manager'
tags:
- { name: event.listener }

pico.reputation.memberlist_listener:
class: pico\reputation\event\memberlist_listener
arguments:
- @auth
- @config
- @controller.helper
- '@auth'
- '@config'
- '@controller.helper'
tags:
- { name: event.listener }

pico.reputation.viewtopic_listener:
class: pico\reputation\event\viewtopic_listener
arguments:
- @auth
- @config
- @controller.helper
- @template
- @user
- @pico.reputation.helper
- %tables.reputations%
- '@auth'
- '@config'
- '@controller.helper'
- '@template'
- '@user'
- '@pico.reputation.helper'
- '%tables.reputations%'
tags:
- { name: event.listener }
- { name: event.listener }
66 changes: 28 additions & 38 deletions config/notifications.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,45 @@
services:
pico.reputation.notification.type.rate_post_positive:
class: pico\reputation\notification\type\rate_post_positive
scope: prototype # scope MUST be prototype for this to work!
shared: false
parent: notification.type.base
arguments:
- @user_loader
- @dbal.conn
- @cache.driver
- @user
- @auth
- @config
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- %tables.notifications%
- %tables.user_notifications%
- '@cache.driver'
- '@config'
- '%tables.notification_types%'
- '%tables.notifications%'
calls:
- [set_controller_helper, ['@controller.helper']]
- [set_user_loader, ['@user_loader']]
tags:
- { name: notification.type }

pico.reputation.notification.type.rate_post_negative:
class: pico\reputation\notification\type\rate_post_negative
scope: prototype # scope MUST be prototype for this to work!
shared: false
parent: notification.type.base
arguments:
- @user_loader
- @dbal.conn
- @cache.driver
- @user
- @auth
- @config
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- %tables.notifications%
- %tables.user_notifications%
- '@cache.driver'
- '@config'
- '%tables.notification_types%'
- '%tables.notifications%'
calls:
- [set_controller_helper, ['@controller.helper']]
- [set_user_loader, ['@user_loader']]
tags:
- { name: notification.type }

pico.reputation.notification.type.rate_user:
class: pico\reputation\notification\type\rate_user
scope: prototype # scope MUST be prototype for this to work!
shared: false
parent: notification.type.base
arguments:
- @user_loader
- @dbal.conn
- @cache.driver
- @user
- @auth
- @config
- @controller.helper
- %core.root_path%
- %core.php_ext%
- %tables.notification_types%
- %tables.notifications%
- %tables.user_notifications%
- '@cache.driver'
- '@config'
- '%tables.notification_types%'
- '%tables.notifications%'
calls:
- [set_controller_helper, ['@controller.helper']]
- [set_user_loader, ['@user_loader']]
tags:
- { name: notification.type }
- { name: notification.type }
63 changes: 39 additions & 24 deletions config/routing.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,69 @@
reputation_clear_post_controller:
pattern: /reputation/clear/post/{post_id}
defaults: { _controller: pico.reputation.action.controller:clear_post }
path: /reputation/clear/post/{post_id}
defaults:
_controller: pico.reputation.action.controller:clear_post
requirements:
post_id: \d+

reputation_clear_user_controller:
pattern: /reputation/clear/user/{uid}
defaults: { _controller: pico.reputation.action.controller:clear_user }
path: /reputation/clear/user/{uid}
defaults:
_controller: pico.reputation.action.controller:clear_user
requirements:
uid: \d+

reputation_delete_controller:
pattern: /reputation/delete/{rid}
defaults: { _controller: pico.reputation.action.controller:delete }
path: /reputation/delete/{rid}
defaults:
_controller: pico.reputation.action.controller:delete
requirements:
rid: \d+

reputation_details_controller:
pattern: /reputation/{uid}/{sort_key}/{sort_dir}/{page}
defaults: { _controller: pico.reputation.details.controller:details, sort_key: id, sort_dir: dsc, page: 1 }
path: /reputation/{uid}/{sort_key}/{sort_dir}/{page}
defaults:
_controller: pico.reputation.details.controller:details
sort_key: 'id'
sort_dir: 'dsc'
page: 1
requirements:
uid: \d+
sort_key: id|username|time|point|action
sort_dir: asc|dsc
sort_key: 'id|username|time|point|action'
sort_dir: 'asc|dsc'

reputation_post_details_controller:
pattern: /reputation/details/post/{post_id}/{sort_key}/{sort_dir}
defaults: { _controller: pico.reputation.details.controller:postdetails, sort_key: id, sort_dir: dsc }
path: /reputation/details/post/{post_id}/{sort_key}/{sort_dir}
defaults:
_controller: pico.reputation.details.controller:postdetails
sort_key: 'id'
sort_dir: 'dsc'
requirements:
post_id: \d+
sort_key: id|username|time|point
sort_dir: asc|dsc
sort_key: 'id|username|time|point'
sort_dir: 'asc|dsc'

reputation_post_rating_controller:
pattern: /reputation/rate/post/{mode}/{post_id}
defaults: { _controller: pico.reputation.rating.controller:post }
path: /reputation/rate/post/{mode}/{post_id}
defaults:
_controller: pico.reputation.rating.controller:post
requirements:
mode: positive|negative
mode: 'positive|negative'
post_id: \d+

reputation_user_details_controller:
pattern: /reputation/details/user/{uid}/{sort_key}/{sort_dir}
defaults: { _controller: pico.reputation.details.controller:userdetails, sort_key: id, sort_dir: dsc }
path: /reputation/details/user/{uid}/{sort_key}/{sort_dir}
defaults:
_controller: pico.reputation.details.controller:userdetails
sort_key: 'id'
sort_dir: 'dsc'
requirements:
uid: \d+
sort_key: id|username|time|point|action
sort_dir: asc|dsc
sort_key: 'id|username|time|point|action'
sort_dir: 'asc|dsc'

reputation_user_rating_controller:
pattern: /reputation/rate/user/{uid}
defaults: { _controller: pico.reputation.rating.controller:user }
path: /reputation/rate/user/{uid}
defaults:
_controller: pico.reputation.rating.controller:user
requirements:
uid: \d+
uid: \d+
Loading