HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Post Validation - Stop Long URLs from Body Text?
Maybe we are not communicating clearly. I'll try to do better. I know that the link function exists. What I am trying to prevent is the user typing a super long URL into the message body text of a post. This user is ignorant to the link feature and is not using it. Thus, the problem I am trying to solve is: How can the… -
Re: Post Validation - Stop Long URLs from Body Text?
-
Post Validation - Stop Long URLs from Body Text?
iPhone display of forum content has issues if a user posts a long URL into post. I am wondering if there is an option or ability to detect URLs which are over a certain length and reject the post with some error text. Example of a problem URL: http://www.llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.com/ Error… -
Re: Post Validation - Stop Long URLs from Body Text?
Yes, it actually works to train people by blocking them from posting very long links . I think that first we need to check for the length of a string, that is not hard to do, but what I am stuck at is how can it determine it is a link, would need to add extra instructions , maybe if the string contains http or https , then… -
Re: Post Validation - Stop Long URLs from Body Text?
Changes couldn't/shouldn't be made in the database. Although it would be possible to change every http://long into <a href="http://long">short</a> or to (short)[http://long] that would become format agnostic. Furthermore such postings wouldn't be influenced by $Configuration['Garden']['Format']['Links'] any more. Links are… -
Re: Post Validation - Stop Long URLs from Body Text?
It would actually be quite easy: checking the text before it is saved and giving out an error message if you like to is super easy. There are numerous examples if you do a fullt text search for "beforeSave" in the plugins folder. Checking for a link can be done by looking at how Vanilla does so by looking at the link()…
6 results