All right, :) it's been asked before :D and I have searched the forums. But a couple of people on my new forum asked about limit smileys. We have a person putting on up to 70 smileys and yes we are going to have a :o heart to heart talk, and maybe take him to the smiley woodshed! :'( :'( :'(
Yes, it is aggravating, and I like to use the smileys, lord my moderator has put many on my server, ;D but 70 >:( is a lot.
I don't mind doing a hack and just insert the code (smiley_limit = 15; ) for example. So is there an easy way to do this? There is sort of a limit in signature, it would be okay for me to set it there and then just use the number in the posts! 8)
Looking at this post:
http://custom.simplemachines.org/mods/index.php?mod=430
You can do the edits mentioned and go for it.
http://custom.simplemachines.org/mods/index.php?mod=430
You'll probably need to change <install for="2.0.1"> to <install for="2.0.2"> and <uninstall for="2.0.1"> to <uninstall for="2.0.2"> though.
Just in case, READ MY SIG, woncha? ;)
Also, be aware that this won't stop people posting smileys from external sites...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd21.gif&hash=864fd96b46170a94a60f467f8876b9a551cb9967)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd22.gif&hash=861bb1bc3a311a43c9b6695ddb046ef36516489a)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd23.gif&hash=53bbddbdcfb6bf0c13d1ec457e4de15e966a6261)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd24.gif&hash=15fc64f294c19134d773e4b2eb48daf37f793ec8)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd25.gif&hash=64ea69db7ccb3daa9b3263ebc2b7d6af5fc43878)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd26.gif&hash=acc269467c4f5a491ec6293a5a3dd75de3f610c6)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd27.gif&hash=9d2903396550ec5338391815c1cbcee60e5bb81d)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd28.gif&hash=274a8571a075f7cbe176d62c76cf40cd443ff3d9)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd29.gif&hash=a867b9681a4d963a86fc5f05ba164490d371e123)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd30.gif&hash=52bd178a5e3d6706040493e50bfb95ed5e1f3109)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd32.gif&hash=0b7f00b052163258556c69d6433cc3d8c1c89a2a)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd33.gif&hash=cbcdd085e39036ba4dee6ea79b61c9354580adf0)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd4.gif&hash=41829ef47a654aaf219a2543345389810f761b5b)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fd6.gif&hash=81c1df44149a80b1c132481ef9136f5f1ac02f65)
Thanks Doc Writer. I looked at the parsing for SmileyLimit - Installation Instructions for 2.0 RC3 . So I am assuming I could parse it this way. 8)
If the files have the correct lines for editing, yep!
Well I got the files changed, and the field to put the number limit works okay. And I ran the update file but you can still add past the limit. So I don't know, will triple check the code to see if I left something out!
:) :) :) :) :) :)
SUCCESS 8) 8) 8) 8) 8) 8) 8)
Sorry about the smiles, but I wanted to make an impression. OK, this works in 2.0.2 ;)
What you need to be carefull is in the first file you parse. the code for post.php has the first line to parse and add after: But there are two identical lines, so add the code to parse after this snippet of code.
Quote// Prepare the message a bit for some additional testing.
$_POST['message'] = $smcFunc['htmlspecialchars']($_POST['message'], ENT_QUOTES);
Well figured!
You might want to add that to the support topic that I linked you to, to share with other users of the mod. ;)
QuoteWell figured!
You might want to add that to the support topic that I linked you to, to share with other users of the mod. ;)
Will do Doc Writer, but I don't think you gave me the support post? (See below)
Quote from: K@ on April 02, 2012, 02:16:16 PM
Looking at this post:
http://custom.simplemachines.org/mods/index.php?mod=430
You can do the edits mentioned and go for it.
http://custom.simplemachines.org/mods/index.php?mod=430
I think the top link should be to the post, but it's the same as the mod!
8)
There's a link to the Support topic on that page :)
Thanks I posted there! O:)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc014.gif&hash=f74820123053ff9301b57a2ded5672bfa96b900b)