Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: darren9682 - heinäkuu 20, 2014, 08:40:07 AP

Otsikko: No Minimum Characters Help
Kirjoitti: darren9682 - heinäkuu 20, 2014, 08:40:07 AP
Hi.

I was wondering if there was any coding or mods that allowed for posts to be made without any characters in?

I tried this mod - http://custom.simplemachines.org/mods/index.php?mod=1528 but despite setting it to 0 words and 0 characters as minimum it still comes up with.

"The following error or errors occurred while posting this message:
The message body was left empty."

Message when I try to post.

For those wondering why someone would want to be able to post a blank post it's mainly for those times when the title and the photo attachments are enough.

Example "Photos of my car" and inside are attachments of a car.  No message body text would be needed and I find people often type just one word like "enjoy!" or something just to get past the limits.

Any help would be nice. thanks.
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Arantor - heinäkuu 20, 2014, 08:42:16 AP
No there isn't, because it requires several changes throughout SMF and it's really not recommended to do that.
Otsikko: Re: No Minimum Characters Help
Kirjoitti: darren9682 - heinäkuu 20, 2014, 09:41:47 AP
Lainaus käyttäjältä: ‽ - heinäkuu 20, 2014, 08:42:16 AP
No there isn't, because it requires several changes throughout SMF and it's really not recommended to do that.

That's a shame. Ok thanks anyway.
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Ninja ZX-10RR - heinäkuu 20, 2014, 04:44:34 IP
No wonder that mod author... I would never install such a thing. But Arantor what should it require? :)
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Arantor - heinäkuu 20, 2014, 10:37:03 IP
The mod isn't designed to patch around no-content, it's designed to work around not-enough content.

Forcing SMF not to have post content means careful surgery on the post code in multiple places, and perhaps even a tweak of the display and save code. It's honestly not worth the effort.
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Ninja ZX-10RR - heinäkuu 20, 2014, 10:40:09 IP
I have seen it in other forums, along the way, though. Thanks for the reply as always even if today you are being a bit more depressed than usual :(
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Jade Elizabeth - heinäkuu 21, 2014, 08:51:06 AP
Why don't you try getting around it with some empty BBC? There's an image in the themes that's a 1px blank pixel, you could link to that ha ha. Or just a ":)".

Also maybe you should get a gallery for photos? :D
http://custom.simplemachines.org/mods/?mod=977
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Ninja ZX-10RR - heinäkuu 21, 2014, 09:50:38 AP
I don't get the reason why he should do that xD he asked for a minimum character limit and you tell him to add a 1px image... LOL? What for?
Otsikko: Re: No Minimum Characters Help
Kirjoitti: margarett - heinäkuu 21, 2014, 10:38:55 AP
So that he can do what he wants to (ie a post without body), not having to mess with a bunch of SMF's code in the process ;)

Imagination, man ;D
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Ninja ZX-10RR - heinäkuu 21, 2014, 10:44:42 AP
A white dot? A white dot with the font next to the arrow? (1pt) --> [color=white][size=1pt].[/size][/color]
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Illori - heinäkuu 21, 2014, 10:46:08 AP
if the theme color is not white that will not work.
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Ninja ZX-10RR - heinäkuu 21, 2014, 10:47:46 AP
Yeah and I dare you to see a dot of that size ;) on my forum the background is not white but I can't see a thing :) if you want to get perfection you can actually get the color from the color picker or from inspect element in your browser, but it's not necessary, seriously.
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Illori - heinäkuu 21, 2014, 10:51:18 AP
if you have a dark theme then yes you could easily see it.
Otsikko: Re: No Minimum Characters Help
Kirjoitti: margarett - heinäkuu 21, 2014, 10:54:51 AP
The point is *not* to see it ;)
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Illori - heinäkuu 21, 2014, 10:56:51 AP
Lainaus käyttäjältä: margarett - heinäkuu 21, 2014, 10:54:51 AP
The point is *not* to see it ;)

oh i know ;) it just seems too complicated to be useful.
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Justyne - heinäkuu 21, 2014, 11:06:15 AP
It kinda misses the point though. I think it was all about the convenience of not having to enter anything into the post box at all rather than the cosmetics of the issue. If you write "enjoy" or click "[b][/b]" doesn't make much odds in terms of effort. Mind you, I am not sure why typing "enjoy" is an issue in the first place. It's just five letters to get through.  O:)
Otsikko: Re: No Minimum Characters Help
Kirjoitti: Ninja ZX-10RR - heinäkuu 21, 2014, 11:09:23 AP
Meh... I think it will be that little that will look more like a broken pixel on the monitor... anyway he can use the [ nobbc ] tags and that's it :)
EDIT: I was replying to Illori but I had been busy xD