[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.
Hervé
Registered User
Posts: 571
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Re: [DEV] Post Love

Post by Hervé »

2.0.0-b3
v12mike
Registered User
Posts: 589
Joined: Thu Jul 09, 2015 5:03 pm

Re: [DEV] Post Love

Post by v12mike »

Hervé wrote: Thu Apr 23, 2020 11:11 am Hi,
I would like to use PostLove for something a little bit different, can you help me to make the mod ?

Current operation
  • When you clic on the heart : it becomes transparent and the counter is incremented
  • If you click again the counter is decremented and your heart becomes full red
  • if somebody else (but not you) has clicked on the heart : you see the incremented counter but your hard is full red
Desired operation
  • When you clic on the heart : it becomes transparent and the counter is incremented (no change)
  • If you click again there is no change (you may only click once)
  • if somebody else (but not you) has clicked on the heart : you see the incremented counter and your hard is also transparent
In other words, you can only click once and the heart is transparent as soon as somebody has clicked i.e. as long as the counter is not zero.
Feasable ?

Why do I want such a modification ?
For the health of a forum each message must be read by at least one moderator.
Currently each of our 4 moderators reads each message even if it has already been read by another moderator, this is a waste of time.
I would like tu use PostLove so that, after reading, a moderator clicks on the heart so that the 3 other knows they are not obliged to read the post.
PostLove would only be visible by moderator, this is done already.

Thanks a lot in advance
Forum www.LeForumRecifal.com phpbb 3.3.0
The changes that you ask for are not trivial, as the click actions (button colour and count) are handled by javascript with an underlying php controller. I am not able to support this at present, as I have too many other things already promised.

It seems to me that you can achieve what you want without making any further changes, as the number of moderators who have read the post is reflected in the number of 'likes' regardless of the button colour.
Hervé
Registered User
Posts: 571
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Re: [DEV] Post Love

Post by Hervé »

Thank you for your reply.
I understand that all this represent a lot of work.
This is the reason why I didn't asked you to perform the modification, just to help me to do it.

The counter is indeed what I'm looking for, but not obvious enough.
I think it should be easy to show one or the other icon simply on counter basis : if zero full red heart, if not empty heart.

Can you tell me where it could be done ?
I've already replaced the hearts by other symbols.
Thanks
v12mike
Registered User
Posts: 589
Joined: Thu Jul 09, 2015 5:03 pm

Re: [DEV] Post Love

Post by v12mike »

I think that the code you are looking for is in:
anavaro\postlove\controller\ajaxify.php
and
anavaro\postlove\styles\all\template\js\lover.js
Hervé
Registered User
Posts: 571
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Re: [DEV] Post Love

Post by Hervé »

Hi,
I understand the files but I'm afraid of making a mistake.
I would just switch from the .like class to the .liked class
not whether I clicked on the button myself or not
but depending on the number of people who clicked,
in other words on the value of the counter :
class .liked as soon as it is not zero.

Could you help me doing this little thing ?
Thanks
demonwebb
Registered User
Posts: 29
Joined: Wed Jul 15, 2015 7:49 am
Name: Adam Pollard

Re: [DEV] Post Love

Post by demonwebb »

Hervé wrote: Sat Apr 25, 2020 10:49 am Hi,


Could you help me doing this little thing ?
Thanks
A bit cheeky asking for free support. Perhaps you could ask him what his hourly support rate is and pay him.
Hervé
Registered User
Posts: 571
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Re: [DEV] Post Love

Post by Hervé »

I didn't say I don't want to pay.
Meanwhile I've found another solution.
User avatar
bennybernaer
Registered User
Posts: 705
Joined: Tue Mar 22, 2011 9:53 pm

Re: [DEV] Post Love

Post by bennybernaer »

I am trying to remove that border radius, but apparently this doesn't work in css. Or I'm looking in the wrong element.

Code: Select all

/* MODALS */
.modal {
  display: none;
  width: 75%;
  height: 70%;
  background: #fff;
  padding-right: 12px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 8px;
  -o-border-radius: 8px;
  -ms-border-radius: 8px;
  border-radius: 8px;
  -webkit-box-shadow: 0 0 10px #000;
  -moz-box-shadow: 0 0 10px #000;
  -o-box-shadow: 0 0 10px #000;
  -ms-box-shadow: 0 0 10px #000;
  box-shadow: 0 0 10px #000;
  background-color: rgba(0, 0, 0, 0.5);
}
Naamloos.png
You do not have the required permissions to view the files attached to this post.
.m.
Registered User
Posts: 539
Joined: Wed Nov 04, 2009 8:39 pm

Re: [DEV] Post Love

Post by .m. »

^ you can try removing :

Code: Select all

-webkit-border-radius: 0px;
  -moz-border-radius: 8px;
  -o-border-radius: 8px;
  -ms-border-radius: 8px;
  border-radius: 8px;
User avatar
bennybernaer
Registered User
Posts: 705
Joined: Tue Mar 22, 2011 9:53 pm

Re: [DEV] Post Love

Post by bennybernaer »

.m. wrote: Thu Jul 16, 2020 2:15 pm ^ you can try removing :

Code: Select all

-webkit-border-radius: 0px;
  -moz-border-radius: 8px;
  -o-border-radius: 8px;
  -ms-border-radius: 8px;
  border-radius: 8px;

Unfortunately don't work... :(


I'm not sure, of course, but I think using the piece of code below?

Code: Select all

<tr class="tr_likedposts <!-- IF most_liked_posts.ROWCOUNT is even -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
But I can't find a css element of that


Edit:

Found it:

Code: Select all

	<li class="row <!-- IF lovelist.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF -->"style=" border-radius: 0;">{lovelist.LINE}</li>
User avatar
bennybernaer
Registered User
Posts: 705
Joined: Tue Mar 22, 2011 9:53 pm

Re: [DEV] Post Love

Post by bennybernaer »

Now there is only the problem that the text sticks to the side.
Can there be a space here?
Naamloos.png
You do not have the required permissions to view the files attached to this post.
User avatar
bennybernaer
Registered User
Posts: 705
Joined: Tue Mar 22, 2011 9:53 pm

Re: [DEV] Post Love

Post by bennybernaer »

bennybernaer wrote: Thu Jul 16, 2020 6:41 pm Now there is only the problem that the text sticks to the side.
Can there be a space here?Naamloos.png

It doesn't make any difference to add padding-left here. Has no effect. What is going wrong here.

Code: Select all

.modal {
  display: none;
  width: 75%;
  height: 70%;
  background: #fff;
  font-size: 1.2em;
  line-height: 1.8em;
  padding-right: 12px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 8px;
  -o-border-radius: 8px;
  -ms-border-radius: 8px;
  border-radius: 0px;
  -webkit-box-shadow: 0 0 10px #000;
  -moz-box-shadow: 0 0 10px #000;
  -o-box-shadow: 0 0 10px #000;
  -ms-box-shadow: 0 0 10px #000;
  box-shadow: 0 0 10px #000;
  background-color: rgba(0, 0, 0, 0.5);
}
Edit:

Fixed
In css it doesn't work, but in html it does .... :roll:

Code: Select all

"style="padding-left: 1em; border-radius: 0;">
pszyman
Registered User
Posts: 95
Joined: Tue Feb 25, 2003 10:52 am
Location: Dublin

Re: [DEV] Post Love

Post by pszyman »

Will the extension be upgraded to 3.3.x?
User avatar
Edson Quadros
Registered User
Posts: 30
Joined: Wed Sep 09, 2020 3:44 pm
Location: Brasil
Name: Edson Quadros

Re: [DEV] Post Love

Post by Edson Quadros »

pszyman wrote: Wed Dec 09, 2020 11:09 am Will the extension be upgraded to 3.3.x?
works great in my version 3.3.2
Sorry my English
pszyman
Registered User
Posts: 95
Joined: Tue Feb 25, 2003 10:52 am
Location: Dublin

Re: [DEV] Post Love

Post by pszyman »

Edson Quadros wrote: Mon Dec 14, 2020 10:22 pm works great in my version 3.3.2
Indeed. Works. Thanks!

Return to “Abandoned Extensions”