TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:16:38 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 151
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 149
  • Total: 150
  • tino

Duplicate shouts

Started by Oldiesmann, June 23, 2019, 01:07:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Oldiesmann

Link to my forum: https://www.christianphotographers.com/community
SMF version: 2.1 RC2
TP version: 1.6.3
Default Forum Language: English
Theme name and version: Curve 2
Browser Name and Version: Chrome 75
Mods installed: TP, Optimus, Pretty URLs, SMF Gallery Pro
Related Error messages: None


I just added a shoutbox to the forum. I have it set up so it will submit shouts when you press enter. However, I discovered tonight that pressing enter results in the shout being submitted twice. If I don't hit enter and just click "Shout" instead, it only goes through once. I'd like to leave it as is for convenience but don't want duplicate shouts.

lurkalot

Just tested this in TP 1.6.4 beta and it doesn't do it.  Haven't tried it in TP 1.6.3 but will asap.

lurkalot

Quote from: lurkalot on June 23, 2019, 01:55:36 AM
Just tested this in TP 1.6.4 beta and it doesn't do it.  Haven't tried it in TP 1.6.3 but will asap.

Wonder if it's something do with the news fader you have running below it.

lurkalot

 :hmm: Interesting, I have mine set Submit Shout on enter key? No

But it still shouts when hitting the enter or return key. Looks like it's a bug.  You might try setting it to No, and see if it'll only shout once, until we can fix it.

lurkalot

Confirmed, still shouts pressing the enter or return key even when set to "No"

Setting to "Yes" results in the duplicate shout problem mentioned above.  Setting it back to "No" cures the duplicate shout problem, but it doesn't disable the Submit Shout on enter key as it should.

Thanks for the report.  ;)

@rjen

mmm I see the problem: I have never really tested this setting. Has it even been functional?  If so, do you recall what version of TP it was in?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

Quote from: @rjen on June 23, 2019, 08:47:24 PM
mmm I see the problem: I have never really tested this setting. Has it even been functional?  If so, do you recall what version of TP it was in?

Glad you can see the cause.  Yes it did work, when tino first added it, but I haven't tested it either in last couple of releases, so not sure when it broke. 

@rjen

It seems to be a Javascript function in Tpshout.php.

I do not have experience with Javascript, so not sure why it is not working anymore, but I think we had some javascript related issues some time ago?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

#8
Quote from: @rjen on June 23, 2019, 09:02:09 PM
It seems to be a Javascript function in Tpshout.php.

I do not have experience with Javascript, so not sure why it is not working anymore, but I think we had some javascript related issues some time ago?

Thanks.  I did create an issue for this on GitHub, hopefully tino can take a look when he has a moment. 

tino

I'm guessing Chrome has changed how it handles enter for submit boxes. Does it occur in other browsers?

lurkalot

Quote from: tino on June 24, 2019, 09:02:25 PM
I'm guessing Chrome has changed how it handles enter for submit boxes. Does it occur in other browsers?

Tino, does it in IE, Edge, Firefox, and Chrome for me.

tino

Ok, I'll look at it later this week if I can.

tino

I can't recreate this bug, is it SMF 2.1 RC2 or the latest GitHub copy?

lurkalot

Quote from: tino on June 30, 2019, 11:52:37 AM
I can't recreate this bug, is it SMF 2.1 RC2 or the latest GitHub copy?

My test site is running 2.1 RC2, don't think I've upgraded since.  It does it there.

It'll only duplicate the shouts if you enable the submit using enter key.  And turning that setting off you don't get the duplicate shouts, but you can still submit by pressing the enter key. It's almost like something's doubled up in the settings somewhere.

tino

I tried that on SMF 2.1 RC2 and TinyPortal 1.6.3 and 1.6.4 with shout on enter key enabled and disabled. No issues.

QuoteGoogle Chrome is up to date
Version 75.0.3770.100 (Official Build) (64-bit)

Firefox Quantum
67.0.4 (64-bit)


tino

I just upgraded to the latest GitHub version of SMF 2.1 and downloaded 1.6.3 from the SMF website again and installed those and have no issue here with all the settings they work as they should for me.

lurkalot

Quote from: tino on June 30, 2019, 01:09:59 PM
I just upgraded to the latest GitHub version of SMF 2.1 and downloaded 1.6.3 from the SMF website again and installed those and have no issue here with all the settings they work as they should for me.

Thanks.  Must be the official RC2 then.  I was waiting for RC3 before upgrading my live test site again. Not sure what version @rjen is running, but he said he could see the problem, so I'm assuming that's three of us so far that have experienced it.

Quote from: @rjen on June 23, 2019, 08:47:24 PM
mmm I see the problem: I have never really tested this setting. Has it even been functional?  If so, do you recall what version of TP it was in?

Quote from: @rjen on June 23, 2019, 09:02:09 PM
It seems to be a Javascript function in Tpshout.php.

I do not have experience with Javascript, so not sure why it is not working anymore, but I think we had some javascript related issues some time ago?

@rjen

I see the issue both in 2.0.15 an 2.1.
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

Quote from: @rjen on June 30, 2019, 02:03:14 PM
I see the issue both in 2.0.15 an 2.1.

Strange.  So you get the same thing here on this site? It doesn't do it here for me. Or at least it didn't. Let me try it again.

Edit:  Nope works fine for me here.

@rjen

Yep works fine here, but not on my 2.0.15 sites...

Maybe something to do with other mods...?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

Quote from: @rjen on July 02, 2019, 10:02:27 AM
Yep works fine here, but not on my 2.0.15 sites...

Maybe something to do with other mods...?

Might be the case, but for me on my 2.1 test site https://cctestsite.info/testsite3/index.php

where it does do the double shout thing, and not able to turn off the submit by enter key, that has no mods installed apart from TP 1.6.4