Welcome, Guest. Please Login or Register.
November 05, 2024, 03:53:45 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.3] Maximum Images per Post « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Beta 1.5.3] Maximum Images per Post  (Read 1470 times)
Grudge
Global Moderator
Full Member
*****
Posts: 178


Damn llama's don't like me :(

[Beta 1.5.3] Maximum Images per Post
« on: June 14, 2003, 11:35:41 PM »
Reply with quote

Hi, this is my first mod I've written completly on my own so bear this is mind if it's not efficient code etc :)

Anyway - I couldn't find a mod that does this so I decided to make one. Basically - this mod allows the admin to set the maximum amount of images allowed in a post on the forums. I wanted to be able to stop people from posting a post with 50 smilies in etc so I made this. It counts all images used (including smilies) and if it is greater than the maximum amount throws the user an error telling them to reduce the image count.

The maximum amount of images allowed can be set in the mod settings screen on the admin panel. I have only tested it on 1.5.3 so if using anything else I can't *guarantee* it will work but it doesn't modify much of the code so it should be OK

NOTE: You MUST install the db file in the archive for this to work (obviously!)

http://www.p0stwh0res.com/bins/imagelimit.zip

Sorry - I don't have time to support my old mods on YABB SE as I'm tied up in SMF development. I have already ported this to SMF so if you wish to use it I recommend waiting until SMF becomes public and install it when you upgrade.
« Last Edit: February 24, 2004, 04:21:16 PM by Grudge » Logged
Lucky
Noobie
*
Posts: 7


I'm a llama!

Re:[Beta 1.5.3] Maximum Images per Post
« Reply #1 on: June 18, 2003, 04:41:11 AM »
Reply with quote

would something like this dissallow those huge files sizes of images too,or can it be changed so people would not be able to post an image of 300,000 kb???
Logged
Grudge
Global Moderator
Full Member
*****
Posts: 178


Damn llama's don't like me :(

Re:[Beta 1.5.3] Maximum Images per Post
« Reply #2 on: June 18, 2003, 12:12:03 PM »
Reply with quote

Afraid not lucky. It can only limit the amount of images - nothing to limit the actual physical size of the pictures I'm afirad. Basically - it just stops someone putting 10,000 smilies in a post etc.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.3] Maximum Images per Post « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.032 seconds with 20 queries.