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

Re: [DEV] Post Love

Post by fliper4o » Fri Oct 20, 2017 2:05 pm

Tusky,
Rename postlove-master to postlove.
/public_html/forum/ext/anavaro
Image
Gratz

TheTinyProwler
Registered User
Posts: 2
Joined: Tue Oct 24, 2017 11:53 pm

Re: [DEV] Post Love

Post by TheTinyProwler » Wed Oct 25, 2017 12:04 am

Satanasov wrote:
Mon Oct 09, 2017 8:44 am
All my extensions are developed under prosilver. And I don't test them under other styles. Sorry but with all the styles available around - I just can't handle it.

On the question - yes it works ok with prosilver.
Godd Evening :)

Sorry i don't agree with that, just tested it with prosilver and got this message

Image

I would be glad if someone could fix this

The TinyProwler

User avatar
GoBieN
Registered User
Posts: 530
Joined: Fri Mar 05, 2004 5:22 pm
Location: Belgium
Contact:

Re: [DEV] Post Love

Post by GoBieN » Thu Oct 26, 2017 8:32 pm

Disable the extension and check if the error is still present. Might be something else that's causing it.

TheTinyProwler
Registered User
Posts: 2
Joined: Tue Oct 24, 2017 11:53 pm

Re: [DEV] Post Love

Post by TheTinyProwler » Thu Oct 26, 2017 9:17 pm

Did this before i posted the issue, it is caused by this extension.

Disabling all other Extensions also doesn't work.

The issue is definetly caused by the Extension.

Okay it is only a warning ist does not influence the functionality, but disabling the error messages is no enduring solution.

It would be very fine if this message would disappear in the next version.

my2ct

Satanasov
Registered User
Posts: 1127
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [DEV] Post Love

Post by Satanasov » Wed Nov 01, 2017 8:39 pm

I'm almost certain that the new language class is used all the way trough this extension, but I will check again.
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.

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

Re: [DEV] Post Love

Post by fliper4o » Fri Nov 10, 2017 3:34 pm

What type of icon & color are you using?
Font Awesome ? Where I can change the color of it(in all) profil filled, topic etc
IF I would like to use more pure color &/or another icon ❤️ 💙 💜 💚 by emojipedia

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

Re: [DEV] Post Love

Post by pszyman » Fri Nov 10, 2017 6:06 pm


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

Re: [DEV] Post Love

Post by fliper4o » Fri Nov 10, 2017 7:25 pm

thanks

User avatar
Binano
Registered User
Posts: 51
Joined: Thu Jun 25, 2015 9:24 am

Re: [DEV] Post Love

Post by Binano » Thu Nov 23, 2017 11:10 am

Hello,

Thanks for Extension in 3.2.x 8-)

I don't have an error during the first love. But from the second love, I have an AJAX error

Image

is it normal that there is no notification ?

Code: Select all

Erreur générale
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()
same problem as fliper4o : viewtopic.php?f=456&t=2246576&start=585#p14803926

Edit : Right after this error, I manually cleared the cache a second time and now it works

briskly the production version 8-)

Satanasov
Registered User
Posts: 1127
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [DEV] Post Love

Post by Satanasov » Tue Nov 28, 2017 3:00 am

accs-p wrote:
Fri Nov 17, 2017 5:39 am
I installed this extension into ext/anavaro/postlove. When I enabled it, it worked as expected. :)

I set the extension to not allow users to "like" their own posts.

-------------------------

Changing the icon:

I wanted to use a "Thumbs-up" icon instead of a "Heart" icon. Here's what I did:

In "styles/all/theme/default.css", I changed all instances of "f004" to "f164" (solid heart to solid thumbs-up) and "f08a" to "f16a" (hollow heart to hollow thumbs-up). This successfully changed the icon.

Due to the dark background of my style (Carbon), there was a bit of a visibility problem with the red icon. I changed the main color from ff0000 to ffcd94 in the same file (I left the mouse-over color of ff726c unchanged). This worked as well, and I believe it would work on light background.

For other icons, the "FontAwesome" cheetsheet (http://fontawesome.io/cheatsheet/) might be of use. A quick scan found several possibilities.

So far, so good.

-------------------------

After the change to the thumbs-up style, I noticed that the "x" between the number and the icon was sometimes crowding the icon. I felt that it would look better without the "x", so I edited the files "styles/all/template/event/viewtopic_body_postrow_custom_fields_after.html" and "styles/all/template/event/viewtopic_body_postrow_post_notices_after.html", changing the "x" to " " (I wanted more space), twice in the first file and once in the second. This also worked.

Previously in this thread (viewtopic.php?f=456&t=2246576&start=555#p14788371), the suggested file to change was "styles/prosilver/template/event/viewtopic_body_postrow_post_notices_after.html", but there's only an "all" directory in the version I have. Something must have changed since July.

Still on this subject, I also noticed that the "x" was closer to the icon on my posts than it was on posts of other users. If this is fixed, the "x" will probably be far enough away. Someone might want to have a look at this minor bug.

-------------------------

As with the previous poster, I did not see a list of users who had liked the post. This was previously reported as working. Was there a change in functionality or a regression problem?

I'm using the "Carbon" style on a 3.2.1 forum.

-------------------------

Note to developer: Could you please put together a list of links to user-developed tweaks, and add it to the first post? It would make finding these MUCH easier.

Excellent extension :D

Thanks.
About the all - yes. There was little file system optimization so it can be used for all styles. As per the list I think it only works on prosilver.
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.

Satanasov
Registered User
Posts: 1127
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [DEV] Post Love

Post by Satanasov » Thu Nov 30, 2017 8:40 am

accs-p wrote:
Tue Nov 28, 2017 3:32 am
Satanasov wrote:
Tue Nov 28, 2017 3:00 am
accs-p wrote:
Fri Nov 17, 2017 5:39 am
As with the previous poster, I did not see a list of users who had liked the post. This was previously reported as working. Was there a change in functionality or a regression problem?

I'm using the "Carbon" style on a 3.2.1 forum.
As per the list I think it only works on prosilver.
The Carbon style I'm using (https://www.phpbb.com/customise/db/style/carbon_2/) is based on prosilver. Is there any way you could test this out, and possibly look into making it a bit more flexible? The list would be quite helpful to me.
I'll check it as soon as I can.
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.

Protopia
Registered User
Posts: 20
Joined: Sun Nov 14, 2004 3:27 pm

Re: [DEV] Post Love

Post by Protopia » Thu Nov 30, 2017 9:16 am

Alex-2.5 wrote:
Mon Oct 09, 2017 7:41 am

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/language/language.php on line 313: vsprintf(): Too few arguments
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
The errors on line 4516 are likely to be a result of the error on 313 sending output and finishing the header. Concentrate on line 313.

Nienke
Registered User
Posts: 2
Joined: Sat Dec 09, 2017 2:23 pm

Re: [DEV] Post Love

Post by Nienke » Sun Dec 24, 2017 2:10 pm

Dear everyone,

I just installed my new forum and wanted a simple like button, now I've found this post but where can i find the download button of the mod ?
My version is 3.2 and installed the Milk theme, i hope it is compatible???

Can someone place the link for the download?

thanks in advance.

Nienke :D

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

Re: [DEV] Post Love

Post by fliper4o » Sun Dec 24, 2017 9:26 pm

Nienke wrote:
Sun Dec 24, 2017 2:10 pm
where can i find the download button of the mod ? Can someone place the link for the download?
Satanasov wrote:
Mon Jun 09, 2014 1:11 pm
Installation:

- create $phpbb_root/ext/anavaro folder
- cd $phpbb_root/ext/anavaro
- git clone https://github.com/satanasov/postlove.git
- Go to admin panel -> customize -> extensions -> install post love
Git Clone > Clone or Download > Download ZIP
Nienke wrote:
Sun Dec 24, 2017 2:10 pm
My version is 3.2 and installed the Milk theme, i hope it is compatible???
Satanasov wrote:
Mon Jun 09, 2014 1:11 pm
Styles are deprecated for the moment.
I am using it on prosilver. Test it on your board but dunno...
Post results, maybe somebody will help.

Nienke
Registered User
Posts: 2
Joined: Sat Dec 09, 2017 2:23 pm

Re: [DEV] Post Love

Post by Nienke » Tue Dec 26, 2017 1:14 pm

I've installed it, looked like it worked but there was a prob, when i liked my own post it looked like everything was fine,
But when i liked someone else's post there was a error, something with Ajax and client......

Als the normally registered people coudn't see the web page at all, looked like it was broken.

I have 3.2.1
Milk Theme, paid version.

Best regards Nienke

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: chanlon1, Galixte de EzCom, jackennils, kustajuspin and 17 guests