Thanks for posts

mobile and notify - Thanks for posts

mobile and notify

by eunaumtenhoid » Thu Jan 03, 2019 9:57 pm

I use a different style, but the thank-you button does not show on my cell phone, can you help me?
thank you notify user even after changing the author of the topic and it is possible to fix this, to notify only the current author of the topic?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
eunaumtenhoid
Registered User
Posts: 879
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: mobile and notify

by rxu » Fri Jan 04, 2019 4:06 am

What is the style?
rxu
Extensions Development Team
Posts: 2976
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: mobile and notify

by eunaumtenhoid » Fri Jan 04, 2019 2:38 pm

flatboots
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
eunaumtenhoid
Registered User
Posts: 879
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: mobile and notify

by rxu » Fri Jan 04, 2019 5:02 pm

rxu
Extensions Development Team
Posts: 2976
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: mobile and notify

by eunaumtenhoid » Fri Jan 04, 2019 7:16 pm

sure, but in the cell phone does not appear the button of the "like"
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
eunaumtenhoid
Registered User
Posts: 879
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: mobile and notify

by rxu » Sat Jan 05, 2019 3:09 pm

If you'd PM me the style I could take a look.
rxu
Extensions Development Team
Posts: 2976
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: mobile and notify

by rxu » Sun Jan 06, 2019 5:09 am

Ok, now in addition to the changes in the development support topic, try the following:
1) replace the content of /ext/gfksx/ThanksForPosts/styles/FLATBOOTS/template/event/viewtopic_body_post_buttons_after.html with the code

Code: Select all

{% if  not postrow.S_FIRST_POST_ONLY or postrow.S_ONLY_TOPICSTART %}
	{% if not postrow.S_GLOBAL_POST_THANKS and not postrow.S_POST_ANONYMOUS and S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) %}
		<div class="btn-group btn-group-sm hidden-xs visible-sm visible-md visible-lg" role="group">
			<a id='lnk_thanks_post{postrow.POST_ID}' href="{postrow.THANKS_LINK}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}"  class="btn btn-default btn-sm"  role="button">
				<i class="fa {postrow.THANKS_IMG}"></i>
			</a>
		</div>
	{% endif %}
{% endif %}
2) add new file /ext/gfksx/ThanksForPosts/styles/FLATBOOTS/template/event/viewtopic_body_post_buttons_list_after.html with the code

Code: Select all

{% if  not postrow.S_FIRST_POST_ONLY or postrow.S_ONLY_TOPICSTART %}
	{% if not postrow.S_GLOBAL_POST_THANKS and not postrow.S_POST_ANONYMOUS and S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) %}
		<li><a href="{postrow.THANKS_LINK}" title="" role="button"><i class="fa {postrow.THANKS_IMG}"></i>&nbsp;{postrow.THANK_ALT}{postrow.POST_AUTHOR}</a></li>
	{% endif %}
{% endif %}
then purge the cache.
rxu
Extensions Development Team
Posts: 2976
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: mobile and notify

by eunaumtenhoid » Sun Jan 06, 2019 12:03 pm

PERFECT! very ty dude!

and about
thank you notify user even after changing the author of the topic and it is possible to fix this, to notify only the current author of the topic? is bug?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
eunaumtenhoid
Registered User
Posts: 879
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: mobile and notify

by rxu » Sun Jan 06, 2019 1:05 pm

Please elaborate what is meant about notification bug. What is the scenario?
rxu
Extensions Development Team
Posts: 2976
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: mobile and notify

by eunaumtenhoid » Sun Jan 06, 2019 2:04 pm

I am the first author of the topic
but from now on I transferred my topic to another author (second author)
after that all the authors of the topic (first and second author) receive the notification of thanks, the correct would not only be the current author to receive this notification (second author)?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
eunaumtenhoid
Registered User
Posts: 879
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: mobile and notify

by rxu » Sun Jan 06, 2019 3:56 pm

It seems that this case is not handled at all in the extension. I'll take a look when I have enough free time, thanks.
rxu
Extensions Development Team
Posts: 2976
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: mobile and notify

by eunaumtenhoid » Sun Jan 06, 2019 3:58 pm

sure ty again!
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
eunaumtenhoid
Registered User
Posts: 879
Joined: Wed Jun 03, 2009 12:46 am
Location: ????