[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)
abravorus
Registered User
Posts: 8
Joined: Mon Feb 28, 2005 12:01 pm

Re: [DEV] Post Love

Post by abravorus »

One more question.
How to find the ACP page of this extension? I see only the page with information. But somewhere should be the ACP page for configuration of the extension, as I understand. For example, I would like to remove the summary block from the forum page.

v12mike
Registered User
Posts: 463
Joined: Thu Jul 09, 2015 5:03 pm

Re: [DEV] Post Love

Post by v12mike »

abravorus wrote:
Wed Jan 08, 2020 1:13 pm
Latest version of master branch of Post Love from GitHub works for me too.

The update from previous version 1.2.0 was not smooth (may be because it was done on existing installation of phpBB 3.3.0).
First attempt to switch the extension on led to infinitive "wait till the extension will be initialized" on the extension's administration page (and forum didn't work during this process).
After 10 minutes I decided to reload that page and repeat "switch on" of the extension and this was successful, it works now. Even all data were preserved.

Thanks for support.
The database migration for this upgrade does a lot of manipulation of the posts_likes table, and due to phpBB rules on database compatibility, they are not very efficient, but on my test data and server, it only took about 20 seconds to run.

How many 'likes' are in your database? How powerful is the server that it runs on?

v12mike
Registered User
Posts: 463
Joined: Thu Jul 09, 2015 5:03 pm

Re: [DEV] Post Love

Post by v12mike »

abravorus wrote:
Wed Jan 08, 2020 1:47 pm
One more question.
How to find the ACP page of this extension? I see only the page with information. But somewhere should be the ACP page for configuration of the extension, as I understand. For example, I would like to remove the summary block from the forum page.
The ACP for this extension is where it has always been... on the left hand panel of the ACP Extensions tab.

To disable the summaries on the index and forum pages, set to 0 all of the "How many ... posts to show" settings.

pszyman
Registered User
Posts: 91
Joined: Tue Feb 25, 2003 10:52 am
Location: Dublin

Re: [DEV] Post Love

Post by pszyman »

Links from the users likes page are not working? Link gets app.php before viewtopic part.

http://www.domain.com/forum/app.php/viewtopic.php?t=18183

Here is a fix.

editt the file ..\ext\anavaro\postlove\controller\lovelist.php

find

Code: Select all

				$post_link = '<a href="' . $this->root_path.($short == 1 ? '' : ($page > 1 ? '../../../' : '../')) .'viewtopic.php?p=' . $row['post_id'] . '#'. $row['post_id'] .'" target="_blank" >' . $row['post_subject'] . '</a>';
				$topic_link = '<a href="' . $this->root_path.($short == 1 ? '' : ($page > 1 ? '../../../' : '../')) .'viewtopic.php?t=' . $row['topic_id'] . '" target="_blank" class="topictitle">' . $row['topic_title'] . '</a>';
and replace with

Code: Select all

				$post_link = '<a href="' . $this->root_path.'../'.($short == 1 ? '' : ($page > 1 ? '../../../' : '../')) .'viewtopic.php?p=' . $row['post_id'] . '#'. $row['post_id'] .'" target="_blank" >' . $row['post_subject'] . '</a>';
				$topic_link = '<a href="' . $this->root_path.'../'.($short == 1 ? '' : ($page > 1 ? '../../../' : '../')) .'viewtopic.php?t=' . $row['topic_id'] . '" target="_blank" class="topictitle">' . $row['topic_title'] . '</a>';

mlankton
Registered User
Posts: 11
Joined: Tue May 01, 2018 2:05 pm

Re: [DEV] Post Love

Post by mlankton »

I changed the heart pngs to something else, but when I clear phpbb cache and clear browsing data on my browser I still see the hearts, even though they no longer exist. I feel like an idiot but I can't figure out why. Tried web browsers I normally don't use so they don't have any data cached for this extension. Someone nudge me in the right direction please

User avatar
janus_zonstraal
Registered User
Posts: 4215
Joined: Sat Aug 30, 2014 1:30 pm

Re: [DEV] Post Love

Post by janus_zonstraal »

Do you use cloudflare or other cache system?
Sorry! My English is bat ;) !!!

mlankton
Registered User
Posts: 11
Joined: Tue May 01, 2018 2:05 pm

Re: [DEV] Post Love

Post by mlankton »

janus_zonstraal wrote:
Thu Jan 16, 2020 1:54 pm
Do you use cloudflare or other cache system?
no

mlankton
Registered User
Posts: 11
Joined: Tue May 01, 2018 2:05 pm

Re: [DEV] Post Love

Post by mlankton »

I'm dumb. Changed the images but not the css. Problem solved and sorry for not giving myself an hour before posting.

mlankton
Registered User
Posts: 11
Joined: Tue May 01, 2018 2:05 pm

Re: [DEV] Post Love

Post by mlankton »

I am experiencing some issues with notifications. I am getting notifications for some, but not all.

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

Re: [DEV] Post Love

Post by EmmaL »

v12mike wrote:
Wed Jan 08, 2020 7:06 pm

The database migration for this upgrade does a lot of manipulation of the posts_likes table, and due to phpBB rules on database compatibility, they are not very efficient, but on my test data and server, it only took about 20 seconds to run.

How many 'likes' are in your database? How powerful is the server that it runs on?
Migration here took quite some time as well, some 7 minutes or so. Fortunately I run my own MariaDB so I could run mysqladmin proc stat and saw that there was a large inefficient update running.

Code: Select all

MariaDB [t_db]> select count(*) from posts_likes;
+----------+
| count(*) |
+----------+
|    60068 |
+----------+
1 row in set (0.01 sec)
And then I got bitten by the postlove_hide bug as well... what's strange is that even when hidden you still get the x on the post.

Anyway I fixed it with two simple queries:

Code: Select all

alter table profile_fields_data alter pf_postlove_hide set default 0;
and

Code: Select all

update profile_fields_data set pf_postlove_hide=0;
as it turned out that the profile field was hidden from users anyway so nobody could have set it to '1' on purpose.

Post Reply

Return to “Extensions in Development”