 |
 |
 |
 |
#282861 - 01/04/05 08:05 AM
Beta-[6.4-6.5] Restrict Images 2.0
|
Code Monkey
Registered: 05/23/01
Posts: 562
Loc: Austria
|
***~~~ Version 1.0 ~~~*** Download <br /> <br /> ***~~~ Version 2.0 ~~~*** Download <br /> <br />In version 2.0, if an image is to large you are redirected back to the post preview page and a red border arround the image that is too large is displayed. <br /> <br /> Mod Name / Version: Restrict Images 2.0 <br /> <br /> Description: The mod checks the images contained within the image tags in a post for width, height, filesize and image count. <br /> <br />The admin can specify the maximum amount of images per post, the maximum image width, height and size. <br /> <br />If one of the criteria is not within the limits, an error message is displayed, example: <br />[]http://img148.exs.cx/img148/4148/clipboard017ys.gif[/] <br /> <br /> Working Under: UBB.Threads 6.4-6.5 <br /> <br /> Mod Status: Beta <br /> <br /> Any pre-requisites: none <br /> <br /> Author(s): Anno <br /> <br /> Date: 01/04/05 <br /> <br /> Credits: <br /> <br /> Files Altered: <br />addpost.php <br />modifypost.php <br /> <br /> New Files: <br />checkimages.php <br /> <br /> Datebase Altered: no <br /> <br /> Info/Instructions: Instructions within the checkimages.php file. <br /> <br />In order for the getimagesizes() function to work on remote files, the PHP version has to be > 4.0.5 . <br /> <br /> <br /> Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
124272-checkimages1.0.zip (41 downloads)
Edited by Anno (01/06/05 03:40 AM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#282867 - 01/10/05 01:12 PM
Re: Beta-[6.4-6.5] Restrict Images 1.0
[Re: domain123]
|
Code Monkey
Registered: 06/17/02
Posts: 682
Loc: CA, USA
|
I have a question, Anno. I am having my site redone, and I am going to use this mod so that the new layout, which includes graphics on the right side of the page, doesn't get stretched. The maximum allowable width would be about 740 pixels.<br /><br />My question is, what if I have a user puts two, let's say 500 pixel-wide, images in a post without using a linebreak in between. Will this mod split them up, putting them on different lines, so that they don't break up the layout?
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#282870 - 01/11/05 01:21 AM
Re: Beta-[6.4-6.5] Restrict Images 1.0
[Re: luan]
|
Code Monkey
Registered: 05/23/01
Posts: 562
Loc: Austria
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|