Page 44 of 49

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Wed Jan 29, 2020 12:38 pm
by Naguissa
L&R wrote:
Wed Jan 29, 2020 12:25 pm
Does it work on 3.3.0? I just used patched files by you for TFP.
Yes. Download latest version, https://github.com/Naguissa/thanks_for_ ... tag/3.2.15

You can test it here: https://www.foroelectro.net/thanks-for-posts-tests-f30/

Remember: phpBB 3.3.0 requires PHP 7.1 at least. check this before upgrading....

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Wed Jan 29, 2020 12:54 pm
by L&R
I was asking about yml patching program, TFP works no my forum since yesterday.

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Wed Jan 29, 2020 1:02 pm
by Naguissa
L&R wrote:
Wed Jan 29, 2020 12:54 pm
I was asking about yml patching program, TFP works no my forum since yesterday.
Oh! No, it doesn't automatically patches YML files. It gives you correct text (even for disabled extensions). Then you have to copy-paste the text. After re-enabling and testing in my local machine I uploaded modified files to live server and re-enabled extensions. I had no problem in my core extensions:

Code: Select all

Extensiones habilitadas
Advanced BBCode Box 	3.2.2 	Detalles 	Deshabilitar
Advertisement Management 	2.0.2 	Detalles 	Deshabilitar
Auto Groups 	2.0.2 	Detalles 	Deshabilitar
Ban Hammer 	1.0.8 	Detalles 	Deshabilitar
External Links Open in New Window 	1.0.6 	Detalles 	Deshabilitar
Google Analytics 	1.0.5 	Detalles 	Deshabilitar
Image Upload 	1.0.2 	Detalles 	Deshabilitar
Posts merging 	2.1.0 	Detalles 	Deshabilitar
Precise Similar Topics 	1.5.2 	Detalles 	Deshabilitar
RH Topic Tags 	1.0.3 	Detalles 	Deshabilitar
Seo Meta Description 	1.0.0 	Detalles 	Deshabilitar
SEO URLs 	0.3.2 	Detalles 	Deshabilitar
Tapatalk Plugin for phpBB 3.1/3.2 	2.1.0 	Detalles 	Deshabilitar
Thanks for posts 	3.2.14 	Detalles 	Deshabilitar
Topic Restriction 	1.0.1 	Detalles 	Deshabilitar
XML Sitemap 	0.1.4 	Detalles 	Deshabilitar

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Wed Jan 29, 2020 1:14 pm
by L&R
Thank you I will test it.

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Thu Jan 30, 2020 8:25 am
by Naguissa
Released Tapatalk plugin modification supporting phpBB 3.3.x. It corresponds to plugin version 2.1.7-beta; there's no stable release supporting phpBB 3.3.x.

Tested on my forum and working like a charm.

https://github.com/Naguissa/mobiquo_tha ... /tag/2.1.7


Edit: Instructions, on 1st post:
Naguissa wrote:
Thu May 18, 2017 10:09 am
[...]


Installation:

[...]

Tapatalk:

Install regular Tapatalk plugin without enabling it; you can download it from here: https://www.tapatalk.com/download_phpbb

Overwrite "<PHPBB_ROOT>/mobiquo" content with repository one.

Note: Support for phpBB 3.3.x is available for 1st time on version 2.1.7; previous versions will fail even on the original plugin.

[...]

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Thu Jan 30, 2020 8:29 pm
by Frogmen
Hello, Is there a way to recover the previous thanks from users once you delete the ext data?

slds
Javier

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Thu Jan 30, 2020 11:34 pm
by mrx1983
i think not. only if you have a database backup somewhere. maybe you can also ask your hoster if he has a database backup from some days ago. else i think you are out of luck.

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Fri Jan 31, 2020 5:48 am
by Frogmen
Yes. I have a back up. But if I use it I’ll loose last days messages. Is there a way to do it just copying some tables from the back up?

Slds
Javier

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Fri Jan 31, 2020 6:58 am
by Naguissa
Frogmen wrote:
Fri Jan 31, 2020 5:48 am
Yes. I have a back up. But if I use it I’ll loose last days messages. Is there a way to do it just copying some tables from the back up?

Slds
Javier
For these steps you need to change table prefix if your installation uses any other. It's the bold part of table name: phpbb_thanks

You need to execute these statments on a SQL console in your database server, selecting your phpbb installation database.

1) Disable the extension

2) Uncompress backup file and open resulting SQL file.

3) From that file, execute in your SQL console the lines after

Code: Select all

# Table: phpbb_thanks
There're three statements:

Code: Select all

DROP TABLE IF EXISTS phpbb_thanks;

Code: Select all

CREATE TABLE `phpbb_thanks` (
  `post_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `poster_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `user_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `topic_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `forum_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `thanks_time` int(11) unsigned NOT NULL DEFAULT 0,
  PRIMARY KEY (`post_id`,`user_id`),
  KEY `post_id` (`post_id`),
  KEY `topic_id` (`topic_id`),
  KEY `forum_id` (`forum_id`),
  KEY `user_id` (`user_id`),
  KEY `poster_id` (`poster_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

Code: Select all

INSERT INTO phpbb_thanks [here comes all your data]

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Fri Jan 31, 2020 9:24 am
by Tin Soldier
Naguissa wrote:
Fri Jan 31, 2020 6:58 am
Frogmen wrote:
Fri Jan 31, 2020 5:48 am
Yes. I have a back up. But if I use it I’ll loose last days messages. Is there a way to do it just copying some tables from the back up?

Slds
Javier
For these steps you need to change table prefix if your installation uses any other. It's the bold part of table name: phpbb_thanks

You need to execute these statments on a SQL console in your database server, selecting your phpbb installation database.

1) Disable the extension

2) Uncompress backup file and open resulting SQL file.

3) From that file, execute in your SQL console the lines after

Code: Select all

# Table: phpbb_thanks
There're three statements:

Code: Select all

DROP TABLE IF EXISTS phpbb_thanks;

Code: Select all

CREATE TABLE `phpbb_thanks` (
  `post_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `poster_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `user_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `topic_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `forum_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `thanks_time` int(11) unsigned NOT NULL DEFAULT 0,
  PRIMARY KEY (`post_id`,`user_id`),
  KEY `post_id` (`post_id`),
  KEY `topic_id` (`topic_id`),
  KEY `forum_id` (`forum_id`),
  KEY `user_id` (`user_id`),
  KEY `poster_id` (`poster_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

Code: Select all

INSERT INTO phpbb_thanks [here comes all your data]
Please forgive my own ignorance, but can you walk me through this from the perspective of someone who has simply disabled the previous build, and NOT deleted the ext data (yet)? Can I merge the update, or overwrite existing ext files and keep the previous thanks from before disabling it?

Thanks

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Fri Jan 31, 2020 9:35 am
by Naguissa
Tin Soldier wrote:
Fri Jan 31, 2020 9:24 am

Please forgive my own ignorance, but can you walk me through this from the perspective of someone who has simply disabled the previous build, and NOT deleted the ext data (yet)? Can I merge the update, or overwrite existing ext files and keep the previous thanks from before disabling it?

Thanks

If you didn't delete extension data and it's disabled, you can simply upload new version and enable it, it will perform any migration if needed (probably not needed, since it has been a while since database was changed).

It's valid for any extension (at least it should be, but maybe any DEV or beta extension is buggy and doesn't work properly).

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Fri Jan 31, 2020 10:05 am
by Tin Soldier
Thanks. Seems to have worked flawlessly!

So...OT, but with Extension .yml check I could fix Quickstyle as well? (I really would for it to work with 3.3)

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Fri Jan 31, 2020 10:21 am
by Naguissa
Tin Soldier wrote:
Fri Jan 31, 2020 10:05 am
Thanks. Seems to have worked flawlessly!

So...OT, but with Extension .yml check I could fix Quickstyle as well? (I really would for it to work with 3.3)
Yes and no:

It solves any problem and you can activate the extension without breaking your board, but in this case the quick style selector doesn't appear.

I have it in my board (even if it's not used since long time ago, as I removed any other style), and I've just tested locally:
quick style 1.png
quick style 2.png
quick style 3.png

Re: [3.2][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Fri Jan 31, 2020 11:17 am
by Hysteriaa
mrx1983 wrote:
Mon Jan 27, 2020 5:26 pm
Hysteriaa wrote:
Mon Jan 27, 2020 1:17 pm
Side-question about this extension (thanks for posts)

I'd like to hide "Given: .." from de miniprofiles.
I want the received likes to be showed at the miniprofiles, but not the givens.

Is there a way to change that? Where can I change that? With what code, or what code do I have to remove?
gfksx\ThanksForPosts\styles\prosilver\template\event\viewtopic_body_postrow_custom_fields_after.html

replace the content with this (i basically removed / out coment the first dd of this template)

Code: Select all

{% if postrow.THANKS_COUNTERS_VIEW and postrow.THANKS_POSTLIST_VIEW and (postrow.THANKS_POST_VIEW_GUESTS or not postrow.S_POST_ANONYMOUS) and (postrow.THANKS_POST_VIEW_ROBOTS or not S_IS_BOT) %}
<!--<dd class="profile-posts" data-user-give-id="{{ postrow.POSTER_ID }}">
    <strong>{{ lang('GIVEN') }}{{ lang('COLON') }}</strong>
    <a href="{{ postrow.POSTER_GIVE_COUNT_LINK }}">{% if postrow.POSTER_GIVE_COUNT %}{{ postrow.POSTER_GIVE_COUNT }}{% else %}0{% endif %}</a>
</dd>-->
<dd class="profile-posts" data-user-receive-id="{{ postrow.POSTER_ID }}">
    <strong>{{ lang('RECEIVED') }}{{ lang('COLON') }}</strong>
    <a href="{postrow.POSTER_RECEIVE_COUNT_LINK}">{% if postrow.POSTER_RECEIVE_COUNT %}{postrow.POSTER_RECEIVE_COUNT}{% else %}0{% endif %}</a>
</dd>
{% endif %}
Thanks!

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Posted: Wed Feb 05, 2020 2:48 pm
by ukautoforums
Hi,
Got this installed and working ok.
However I have an issue with the Thanks button not showing correctly. I am sure its a CSS issue but can't figure out what.
I am using a metro_blue theme.
Copied the plugin styles and rename metro_blue.

I can confirm it works fine in mobile view.
In desktop view, the icon only appears on mouseover:

No mouseover:
icons.JPG
icons.JPG (9.35 KiB) Viewed 696 times
On mouseover:
icons-mouseover.JPG
icons-mouseover.JPG (8.74 KiB) Viewed 696 times
This is the code for the buttons which display correctly:

Code: Select all

	
	<li>
							<a href="{postrow.U_REPORT}" title="{L_REPORT_POST}" class="button button-icon-only">
								<i class="icon fa-exclamation-circle fa-fw" aria-hidden="true"></i><span class="sr-only">Report</span>
							</a>
						</li>
This is the code for thanks:

Code: Select all

<li>
	<a id="lnk_thanks_post{{ postrow.POST_ID }}" href="{{ postrow.THANKS_LINK }}" title="{{ postrow.THANK_ALT }}{{ postrow.POST_AUTHOR }}" class="button button-icon-only">
		<i aria-hidden="true" class="icon fa-fw fa-thumbs-up"></i><span class="sr-only">{{ postrow.THANK_ALT_SHORT }}</span>
	</a>
</li>
As you can see the CSS is all the same, same class used. Just cannot get it to display without the mouseover.

Any ideas!

Thanks