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:43:22 AM

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

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?