... ?

Discuss issues and requests related with the forum software
User avatar
joedf
Posts: 9000
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: ... ?

Post by joedf » 27 May 2020, 21:52

right, I know that would have worked... but I didn't bother because these cases are mostly from guest posters not paying attention.
I didn't think this is worth more javascript, but if so... I can implement it. What do you think?
:think:

I guess one argument might be impatient users could just put a space, but also nothing stops them from just putting a gibberish title... :/
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: ... ?

Post by BoBo » 28 May 2020, 00:04

gibberish title? Means you wanna set up a filter that skips all threads using the word(s) "help", "HeLp", "HELP", "please HELp" & "... qleH" !! That's really good news :mrgreen: [just kidding [well, sort of]]
Last edited by BoBo on 28 May 2020, 01:10, edited 2 times in total.
Reason: gregster's assumption written below.
gregster
Posts: 9111
Joined: 30 Sep 2013, 06:48

Re: ... ?

Post by gregster » 28 May 2020, 00:27

I just tested with my new-user test account. I could still create new topics without subject.

But I don't see the whole thing as high-priority. If it can be fixed easily, nice. If not, we will still live. :)

@BoBo: I don't think that is joedf's plan :shifty: - and I am not sure that it would make better topic titles. You can't prevent gibberish. And I don't feel like punishing newbies who can't think of a good title.

Edit: I assumed you might be joking. But I wasn't sure. ;)
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: ... ?

Post by nnnik » 28 May 2020, 01:48

You can prevent gibberish.
Just check if most words can be found inside a predefined lexicon.
Its just too much effort and the downsides are that terms that are specific to AutoHotkey might be unknown.
Recommends AHK Studio
gregster
Posts: 9111
Joined: 30 Sep 2013, 06:48

Re: ... ?

Post by gregster » 28 May 2020, 01:53

Just because words are in dictionary, it doesn't mean you can't make gibberish (or completely meaningless titles) out of them.
Example: every pitch meeting I ever attended. :D Compare BS-Bingo.

On the other hand, titles with typos or scrambled letters (or the word 'help') can be perfectly fine.

Edit:
You might need some kind of AI to determine if a title is an adequate title for the actual request in the post (and if that request makes any sense, might still be a completly different question). ergo: human moderators, giving a helping hand if possible, are the best we can do...
User avatar
joedf
Posts: 9000
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: ... ?

Post by joedf » 28 May 2020, 09:14

I'm not sure I want to get into a whack-a-mole situation. :think: As a compromise, I will implement my original proposition later tonight. :+1:
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
BNOLI
Posts: 548
Joined: 23 Mar 2020, 03:55

Re: ... ?

Post by BNOLI » 28 May 2020, 09:30

@joedf
Image

What I've heard so far, there are nastier jobs to have these days! :)
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
User avatar
joedf
Posts: 9000
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: ... ?

Post by joedf » 28 May 2020, 19:17

Updated. :+1:

for future reference:
posting_layout.html

Code: Select all

<script type="text/javascript">
function validatePostform(){
	var eSubject = document.getElementById('subject');
	if (!!eSubject) {
		var _t = eSubject.value.trim();
		var isValid = (_t.length > 1);
		if (!isValid) {
			alert('Please specify a valid subject post title.')
		}
		return isValid;
	}
	return true;
}
</script>
<form id="postform" onsubmit="return validatePostform()" method="post" ...> ... </form>
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Post Reply

Return to “Forum Issues”