[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)
User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: [DEV] Post Love

Post by deepndark » Sun Mar 17, 2019 1:44 pm

canonknipser wrote:
Sat Mar 16, 2019 8:49 pm
dismiss -master
ext/anavaro/postlove/
Yeah, now it works, thank you!

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: [DEV] Post Love

Post by deepndark » Sun Mar 17, 2019 1:58 pm

One thing though, the heart icon looks weird i.e. un-symmetric, does anyone know why?

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: [DEV] Post Love

Post by deepndark » Sun Mar 17, 2019 2:22 pm

I replaced the hearts with thumbs over: ext/anavaro/postlove/images
But the icons remain hearts, not my custom thumbs, I purged the cache with no avail.

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

Re: [DEV] Post Love

Post by janus_zonstraal » Sun Mar 17, 2019 2:31 pm

Did you try a other browser?
Sorry! My English is bat ;) !!!

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: [DEV] Post Love

Post by deepndark » Sun Mar 17, 2019 2:35 pm

janus_zonstraal wrote:
Sun Mar 17, 2019 2:31 pm
Did you try a other browser?
I just tried Chrome, but the same thing there too. My primary browser is Firefox.

.m.
Registered User
Posts: 438
Joined: Wed Nov 04, 2009 8:39 pm

Re: [DEV] Post Love

Post by .m. » Sun Mar 17, 2019 2:36 pm

^ font awesome is used for showing the icons through default.css stylesheet

Code: Select all

\ext\postlove\styles\all\theme\default.css

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: [DEV] Post Love

Post by deepndark » Sun Mar 17, 2019 2:39 pm

.m. wrote:
Sun Mar 17, 2019 2:36 pm
^ font awesome is used for showing the icons through default.css stylesheet

Code: Select all

\ext\postlove\styles\all\theme\default.css
What do I need to do? I want my icons to be replaced with my own custom ones. So I uploaded new ones to my server and replaced them. Now what?

.m.
Registered User
Posts: 438
Joined: Wed Nov 04, 2009 8:39 pm

Re: [DEV] Post Love

Post by .m. » Sun Mar 17, 2019 3:05 pm

there can be a few methods for replacing font based icon with an image icon

one method
you can add background images through default.css for elements .like & .liked

and remove below style property code lines

Code: Select all

https://github.com/satanasov/postlove/blob/master/styles/all/theme/default.css#L27-L35

Code: Select all

https://github.com/satanasov/postlove/blob/master/styles/all/theme/default.css#L48-L57
another method

instead of removing above referred style code lines,
add required image url as background to those style properties [eg.]

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: [DEV] Post Love

Post by deepndark » Sun Mar 17, 2019 3:17 pm

.m. wrote:
Sun Mar 17, 2019 3:05 pm
there can be a few methods for replacing font based icon with an image icon

one method
you can add background images through default.css for elements .like & .liked

and remove below style property code lines

Code: Select all

https://github.com/satanasov/postlove/blob/master/styles/all/theme/default.css#L27-L35

Code: Select all

https://github.com/satanasov/postlove/blob/master/styles/all/theme/default.css#L48-L57
another method

instead of removing above referred style code lines,
add required image url as background to those style properties [eg.]
Ok, lets try the method1, if you can be arsed. Removing the lines you typed should not require any rocket-science skills. But the .like & .liked, what do I need to do exactly here?

.m.
Registered User
Posts: 438
Joined: Wed Nov 04, 2009 8:39 pm

Re: [DEV] Post Love

Post by .m. » Sun Mar 17, 2019 3:52 pm

^ oh, sorry. it is more than two elements. actually we should replace 4 elements
unable to devote time right now ...

ivailo95
Registered User
Posts: 704
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: [DEV] Post Love

Post by ivailo95 » Sun Mar 17, 2019 7:29 pm

Looks good through MozilaFirefox browser,but not in Opera

User avatar
deepndark
Registered User
Posts: 282
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: [DEV] Post Love

Post by deepndark » Wed Mar 20, 2019 11:30 am

One of my forum users can't see the Lovebutton and sees a X instead, he's using Chrome. Maybe the buttons should be .png and not a font?

.m.
Registered User
Posts: 438
Joined: Wed Nov 04, 2009 8:39 pm

Re: [DEV] Post Love

Post by .m. » Wed Mar 20, 2019 1:13 pm

at the bottom of earlier referred default.css style sheet
you can add style properties like below & check

Code: Select all

.like_info:before , .like:before
 {  
  content: url(image/path/of/like);
  
  }

.liked_info:before , .liked:before
 {   
   content: url(image/path/of/liked) ;
   
  }
eg. image/path/of/liked => full path of thumbs-up image
image/path/of/like => full path of another image (different of thumbs-up)

further style adjustments might be necessary
to adjust the size & the position of images

keflin
Registered User
Posts: 4
Joined: Thu Mar 21, 2019 10:41 pm

Re: [DEV] Post Love

Post by keflin » Thu Mar 21, 2019 10:52 pm

Same issue with the x.

I had it installed and it looked fine. Added a few other extensions then tested the like button and it would click, show a loading graphic, then never update the like count. I was able to move the heart icon to the bottom of posts and still had the graphic, x, and counter in alignment. It still wouldn't add to the counter, though, so I uninstalled, cleared the cache and cookies, reinstalled and only got the x at the bottom of each post even when I toggle for it to be a post button. I ended up deleting all of my extensions, clearing the cache and cookies again, then installing just postlove and still same issue. Any ideas?

ivailo95
Registered User
Posts: 704
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: [DEV] Post Love

Post by ivailo95 » Fri Mar 22, 2019 9:54 am

try to see the like button with mozila firefox,i suspect work on mozila and google chrome(im not sure for chrom) :idea:

Post Reply

Return to “Extensions in Development”