[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.
Locked
denis4o
Registered User
Posts: 80
Joined: Fri Dec 23, 2005 10:38 am
Location: Sofia, Bulgaria
Contact:

Re: [DEV] Reputation System

Post by denis4o » Thu Nov 06, 2014 1:55 pm

Thanks a lot. Haven't thought about that. Maybe you should include that in the first post.

Keep up the great work. Best ext ever!!!!

User avatar
JupiterGPL
Registered User
Posts: 126
Joined: Thu Jun 08, 2006 4:52 pm
Contact:

Re: [DEV] Reputation System

Post by JupiterGPL » Thu Nov 06, 2014 2:46 pm

So.... I love how these extensions work in 3.1. Very easy to install and test. But once Pico puts out a new version, how do you update it? I can't seem to find out how to update extensions. My best guess would be to disable it, upload the new folder to replace the old one and then enable it again. Is that how it is done?

denis4o
Registered User
Posts: 80
Joined: Fri Dec 23, 2005 10:38 am
Location: Sofia, Bulgaria
Contact:

Re: [DEV] Reputation System

Post by denis4o » Thu Nov 06, 2014 3:11 pm

Just like every other extension:
  1. Disable the ext
  2. Delete the ext folder in the file system
  3. Upload the new folder
  4. Enable the ext

denis4o
Registered User
Posts: 80
Joined: Fri Dec 23, 2005 10:38 am
Location: Sofia, Bulgaria
Contact:

Re: [DEV] Reputation System

Post by denis4o » Thu Nov 06, 2014 3:31 pm

When a user is logged in he sees the reputation counter of a post this way:
Image

But when the user is not logged he sees it this way:
Image

Would you be able to make a guest see the counter as a logged in user?
Last edited by denis4o on Thu Nov 06, 2014 4:02 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 » Thu Nov 06, 2014 3:58 pm

denis4o wrote:When a user is logged in he sees the reputation counter of a post this way:
Image

But when the user is not logged he sees it this way:
Image

Would you be able to make a guest see the counter as a logged in user?
Images don't work.
Please do not PM me for support.

denis4o
Registered User
Posts: 80
Joined: Fri Dec 23, 2005 10:38 am
Location: Sofia, Bulgaria
Contact:

Re: [DEV] Reputation System

Post by denis4o » Thu Nov 06, 2014 4:02 pm

Apologies. How about now?

rrbailey89
Registered User
Posts: 248
Joined: Fri Oct 24, 2014 3:00 pm

Re: [DEV] Reputation System

Post by rrbailey89 » Thu Nov 06, 2014 4:55 pm

When I try to rate a post this is the error that I get

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 'AND rep_to = 48 AND post_id != 0 AND time > 1415289161' at line 4 [1064]

SQL

SELECT COUNT(rep_id) AS rep_per_day FROM jcp_reputations WHERE rep_from = AND rep_to = 48 AND post_id != 0 AND time > 1415289161

BACKTRACE

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

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

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

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysql->sql_query()

FILE: [ROOT]/ext/pico/reputation/controller/rating_controller.php
LINE: 266
CALL: phpbb\db\driver\factory->sql_query()

FILE: (not given by php)
LINE: (not given by php)
CALL: pico\reputation\controller\rating_controller->post()

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: 33
CALL: Symfony\Component\HttpKernel\HttpKernel->handle()
Do I have something set up wrong?

User avatar
JupiterGPL
Registered User
Posts: 126
Joined: Thu Jun 08, 2006 4:52 pm
Contact:

Re: [DEV] Reputation System

Post by JupiterGPL » Thu Nov 06, 2014 5:03 pm

So how does Rep actually work? I have been given 7 positive Reps, yet my total only shows 1 everywhere except for in the specific Rep are of my profile.

Image
Image
Image

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 » Thu Nov 06, 2014 5:07 pm

rrbailey89 wrote:When I try to rate a post this is the error that I get

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 'AND rep_to = 48 AND post_id != 0 AND time > 1415289161' at line 4 [1064]

SQL

SELECT COUNT(rep_id) AS rep_per_day FROM jcp_reputations WHERE rep_from = AND rep_to = 48 AND post_id != 0 AND time > 1415289161

BACKTRACE

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

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

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

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysql->sql_query()

FILE: [ROOT]/ext/pico/reputation/controller/rating_controller.php
LINE: 266
CALL: phpbb\db\driver\factory->sql_query()

FILE: (not given by php)
LINE: (not given by php)
CALL: pico\reputation\controller\rating_controller->post()

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: 33
CALL: Symfony\Component\HttpKernel\HttpKernel->handle()
Do I have something set up wrong?
You reported it twice.
I fixed it in latest commit.

Here I want to say that the procedure for updating that extension is not working.
To upload ext at this stage (until beta stage) you need to disable it and delete its data, delete all files, upload new and install it again.
When the ext reaches beta stage, it can be updated like other extensions.
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

Re: [DEV] Reputation System

Post by Pico88 » Thu Nov 06, 2014 5:10 pm

JupiterGPL wrote:So how does Rep actually work? I have been given 7 positive Reps, yet my total only shows 1 everywhere except for in the specific Rep are of my profile.

Image
Image
Image
Did you set up max reputation to 1? I don't mean max reputation power. Check your settings.
Please do not PM me for support.

User avatar
JupiterGPL
Registered User
Posts: 126
Joined: Thu Jun 08, 2006 4:52 pm
Contact:

Re: [DEV] Reputation System

Post by JupiterGPL » Thu Nov 06, 2014 5:14 pm

It is set to 0 to disable it.

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 » Thu Nov 06, 2014 9:29 pm

I cannot reproduce your issue. Can you post screenshot of your ACP reputation settings?
Please do not PM me for support.

denis4o
Registered User
Posts: 80
Joined: Fri Dec 23, 2005 10:38 am
Location: Sofia, Bulgaria
Contact:

Re: [DEV] Reputation System

Post by denis4o » Thu Nov 06, 2014 9:39 pm

Hi Pico, who was that addressed to?

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 » Thu Nov 06, 2014 9:44 pm

denis4o wrote:Hi Pico, who was that addressed to?
I'm talking to JupiterGLP.

Your problem with guest view was fixed.
Please do not PM me for support.

User avatar
JupiterGPL
Registered User
Posts: 126
Joined: Thu Jun 08, 2006 4:52 pm
Contact:

Re: [DEV] Reputation System

Post by JupiterGPL » Thu Nov 06, 2014 9:45 pm

Pico88 wrote:I cannot reproduce your issue. Can you post screenshot of your ACP reputation settings?
Do you just want a screen shot of the top of the options? I ask because I can't fit all of it in one screenshot.

Locked

Return to “Abandoned Extensions”