HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
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?
If there was a way to block a person from posting any links because they don't use the proper protocol, via permissions, that would help. A plugin that prevents users from posting links. Then when they ask why they can't post links, the moderator can inform them that they are not trusted to follow protocol. -
Re: Post Validation - Stop Long URLs from Body Text?
Thanks for that, @vrijvlinder. However, I am looking for a solution that would not allow the user to "Post Comment" with a long URL present. So, the solution would have to involve some elements: 1) the ability to recognize a typed URL 2) the ability to determine the length of a typed URL 3) the ability for the forum admin… -
Re: Post Validation - Stop Long URLs from Body Text?
Only for the iPhone ? or for everything ? that already happens on post and it is the browser that recognizes it's a link because it has http Since you get an error when the length is too long, it already detects the length on post, even on preview. There probably is a mechanism to change the allotted length of a link and… -
Re: Post Validation - Stop Long URLs from Body Text?
Look at this link: Post Validation - Stop Long URLs fro... It has the correct address, but the text, which seems to be intentionally different then the link, is cut. But look at the title which appears when you hover over the link: it holds the complete text. If you loop over all links in posts and if they are too long,… -
Re: Post Validation - Stop Long URLs from Body Text?
-
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()… -
Re: Post Validation - Stop Long URLs from Body Text?
Thanks@R_J, I now see the complexity in the linksCallback function and its support of embedding etc. I would, however, raise the question of urls where the visible link text is long but different than the url itself. In such cases I suggest not to trim the url as it is clear that the intention was to display the different… -
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…
13 results