[DEV] Post Love

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
EmmaL
Registered User
Posts: 21
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL » Mon Aug 14, 2017 9:30 am

Ah. It would be nice to not only link to the post in the notification, but to show the title as well. That's why I was wondering. Something for the future.

Satanasov
Registered User
Posts: 1018
Joined: Sun Jul 29, 2012 5:48 am

Re: [DEV] Post Love

Post by Satanasov » Mon Aug 14, 2017 9:36 am

Bit it does show the post title ... just not there. Please refer to the language file. There you will find the needed elements for translation.

EmmaL
Registered User
Posts: 21
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL » Mon Aug 14, 2017 11:14 am

That's my point. Most notifications, like replies or quotes, include the title of the post in the notification list. Post Love pretends it does:

Image

Don't mind the Dutch, in the English language file, it's the same:

Code: Select all

'NOTIFICATION_POSTLOVE_ADD'	=> '%s <b>liked</b> your post:'
The colon at the end kind of implies some text will follow, but I would have expected a %2$s then, and a second argument in postlove.php besides $username.

But it's no big deal, I'll try to get it in on my board, and share it with you if I succeed.

Satanasov
Registered User
Posts: 1018
Joined: Sun Jul 29, 2012 5:48 am

Re: [DEV] Post Love

Post by Satanasov » Mon Aug 14, 2017 12:02 pm

I'll check it tonight. This should not be so.

EmmaL
Registered User
Posts: 21
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL » Mon Aug 14, 2017 12:23 pm

If I uncomment get_reference, it works:

Image

User avatar
fliper4o
Registered User
Posts: 189
Joined: Wed Mar 23, 2011 8:15 pm
Contact:

just LOLD

Post by fliper4o » Mon Aug 14, 2017 1:40 pm

So far WAS so good :D
Today I checked that there is a newer version of Post L<3ve. So I happily download it for git hub...
I am on phpBB 3.2.1. Updated the ext as it's said. Then gonna try it:

1st
admin(log out), user(log in) > going on topic > liked 1st post everything okey > liked another post & an error acquired. (check below) & still 2nd post is liked after refreshing or ignoring the error.
Image

2nd
point 1
user(log out) & then, surprise !
Image
General Error

Code: Select all

SQL ERROR [ mysqli ]

Duplicate entry 'notification.type.postlove' for key 'type' [1062]

SQL

INSERT INTO phpbb_notification_types (notification_type_name, notification_type_enabled) VALUES ('notification.type.postlove', 1)

BACKTRACE

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

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

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

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

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

FILE: [ROOT]/phpbb/notification/type/base.php
LINE: 109
CALL: phpbb\notification\manager->get_notification_type_id()

FILE: [ROOT]/phpbb/notification/manager.php
LINE: 885
CALL: phpbb\notification\type\base->set_notification_manager()

FILE: [ROOT]/phpbb/notification/manager.php
LINE: 855
CALL: phpbb\notification\manager->load_object()

FILE: [ROOT]/phpbb/notification/method/board.php
LINE: 229
CALL: phpbb\notification\manager->get_item_type_class()

FILE: [ROOT]/phpbb/notification/manager.php
LINE: 123
CALL: phpbb\notification\method\board->load_notifications()

FILE: [ROOT]/includes/functions.php
LINE: 4330
CALL: phpbb\notification\manager->load_notifications()

FILE: [ROOT]/index.php
LINE: 238
CALL: page_header()
point 2
Guys I'm still a newbie on phpBB at all & in General as using & manipulating it.
So I don't know if I done it alright on this point.
After the error above > FTP Client > deleted folder Post Love (without disabling it or whatever cuz I can't enter acp)

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/class_loader.php on line 160: require(./ext/anavaro/postlove/event/main_listener.php): failed to open stream: No such file or directory

Fatal error: require(): Failed opening required './ext/anavaro/postlove/event/main_listener.php' (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd4/492/2327492/public_html/forum/phpbb/class_loader.php on line 160
P.P.
In General: I've only uploaded some pictures to the forum & some ext, this massive error I see for the 1st time, never harmed something of the core.
I've made an upgrade of the ext "External Links Open in New Window" (I think it's NOT from it).

I'm glad if I helped with something that it's not alright with the ext & if u're willing you can help me eather with my board.

Thanks!

EmmaL
Registered User
Posts: 21
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL » Mon Aug 14, 2017 1:47 pm

usually, the procedure is:

* Disable extension
* update files
* clear cache
* enable extension

What was the version you used before?

User avatar
fliper4o
Registered User
Posts: 189
Joined: Wed Mar 23, 2011 8:15 pm
Contact:

Re: [DEV] Post Love

Post by fliper4o » Mon Aug 14, 2017 1:58 pm

the 1 before that :)
Any ideas how to fix the forum for atm that can be accessible.
Thanks

User avatar
david63
Jr. Extension Validator
Posts: 12834
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [DEV] Post Love

Post by david63 » Mon Aug 14, 2017 2:02 pm

fliper4o wrote:
Mon Aug 14, 2017 1:58 pm
Any ideas how to fix the forum for atm that can be accessible.
Disable the extension - it is tagged as being DEV and, as such, should not be bing used on a live board.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email or as they will be ignored

EmmaL
Registered User
Posts: 21
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL » Mon Aug 14, 2017 2:05 pm

Three things:
  1. Get the extension files back in
  2. manually clear the cache: https://www.phpbb.com/support/docs/en/3 ... pbb-cache/
  3. Manually disable the extension 'anavaro/postlove': viewtopic.php?f=466&t=2407986

EmmaL
Registered User
Posts: 21
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL » Mon Aug 14, 2017 2:07 pm

david63 wrote:
Mon Aug 14, 2017 2:02 pm
fliper4o wrote:
Mon Aug 14, 2017 1:58 pm
Any ideas how to fix the forum for atm that can be accessible.
Disable the extension - it is tagged as being DEV and, as such, should not be bing used on a live board.
That's not really helpful if the ACP is unavailable.

User avatar
fliper4o
Registered User
Posts: 189
Joined: Wed Mar 23, 2011 8:15 pm
Contact:

Re: [DEV] Post Love

Post by fliper4o » Mon Aug 14, 2017 2:22 pm

EmmaL wrote:
Mon Aug 14, 2017 2:05 pm
Three things:
  1. Get the extension files back in Image
  2. manually clear the cache: https://www.phpbb.com/support/docs/en/3 ... pbb-cache/ Image
  3. Manually disable the extension 'anavaro/postlove': viewtopic.php?f=466&t=2407986
3rd
stevemaury wrote:
Mon Feb 06, 2017 9:46 pm
UPDATE phpbb_ext SET ext_active = 0 WHERE ext_name = 'whatever'

Code: Select all

UPDATE phpbb_ext SET ext_active = 0 anavaro/postlove ext_name = 'postlove'
How ?

//So far the forum is working again with the ext ON :D (risky)
Maybe the essential thing was.
EmmaL wrote:
Mon Aug 14, 2017 1:47 pm
usually, the procedure is:

* Disable extension
* update files
* clear cache
* enable extension
P.P. Ajax error is GONE now !!

Thank you all
Last edited by fliper4o on Mon Aug 14, 2017 2:29 pm, edited 1 time in total.

EmmaL
Registered User
Posts: 21
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL » Mon Aug 14, 2017 2:28 pm

if you have shell access, you could use mysql, the mysql client. But if your host provides phpmyadmin, that's safer.

The extension table could have a different prefix than phpbb_, or no prefix at all anyway.

But please try (1) and (2) first. You might not need (3) at all. I'm just trying to point you in the right direction, you'll have to do the dirty work yourself ;)

EmmaL
Registered User
Posts: 21
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL » Mon Aug 14, 2017 2:31 pm

And yes, if you repeat the 4 steps I gave earlier, it'll work. Just replacing an extension's files will most likely get you into trouble, with any extension. That has got nothing to do with the [DEV] label. As far as I'm concerned, this extension is rapidly approaching a 'stable' status. But I'm just an end user :)

User avatar
fliper4o
Registered User
Posts: 189
Joined: Wed Mar 23, 2011 8:15 pm
Contact:

Re: [DEV] Post Love

Post by fliper4o » Mon Aug 14, 2017 2:50 pm

EmmaL wrote:
Mon Aug 14, 2017 2:31 pm
But I'm just an end user :)
Me too.
Thanks EmmaL : )

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: BigRed01, fliper4o, jackennils, JoshyPHP, kim902, Mannix_, nou nou, pappy1961, Sophist-UK, Tbot [Bot] and 23 guests

cron