[ABD] [DEV] Post Love

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
EmmaL
Registered User
Posts: 22
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL »

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: 1310
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [DEV] Post Love

Post by Satanasov »

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.
For list of all my extensions go to https://github.com/satanasov
If you want custom functions in some of my products - PM me and we will discuss it.
EmmaL
Registered User
Posts: 22
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL »

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: 1310
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [DEV] Post Love

Post by Satanasov »

I'll check it tonight. This should not be so.
For list of all my extensions go to https://github.com/satanasov
If you want custom functions in some of my products - PM me and we will discuss it.
EmmaL
Registered User
Posts: 22
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL »

If I uncomment get_reference, it works:

Image
fliper4o
Registered User
Posts: 267
Joined: Wed Mar 23, 2011 8:15 pm
Contact:

just LOLD

Post by fliper4o »

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: 22
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL »

usually, the procedure is:

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

What was the version you used before?
fliper4o
Registered User
Posts: 267
Joined: Wed Mar 23, 2011 8:15 pm
Contact:

Re: [DEV] Post Love

Post by fliper4o »

the 1 before that :)
Any ideas how to fix the forum for atm that can be accessible.
Thanks
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [DEV] Post Love

Post by david63 »

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!

I now no longer support any of my extensions but they will start to become available here
EmmaL
Registered User
Posts: 22
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL »

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: 22
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL »

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.
fliper4o
Registered User
Posts: 267
Joined: Wed Mar 23, 2011 8:15 pm
Contact:

Re: [DEV] Post Love

Post by fliper4o »

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 pmUPDATE 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: 22
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL »

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: 22
Joined: Tue Feb 28, 2017 5:23 pm

Re: [DEV] Post Love

Post by EmmaL »

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 :)
fliper4o
Registered User
Posts: 267
Joined: Wed Mar 23, 2011 8:15 pm
Contact:

Re: [DEV] Post Love

Post by fliper4o »

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

Return to “Abandoned Extensions”