Hi :)
Here is a complete patch for adding configurable, auto-image
resizing (on upload) and thumbnail creation for the articles mod.
These added features allow a site admin to control/enforce a
standard image size for all announcements. New settings include
control over max_upload_width, max_upload_height,
max_upload_size, thumb_width, thumb_height, use resizing (yes/
no), resize_width, resize_height.
When an image is added to an announcement, a thumbnail is
created for small views, and if 'use resizing' is set to yes, the main
image is resized to the resize_width and/or resize_height.
Because it is better practice to put the new settings in the gui, than
just in a /conf/config.php file, quite a few files in the module needed
to be touched. As columns were also being added to the
mod_announce_settings table, them the full upgrade process
needed to be respected. To accomplish that, I advanced the version
number from 2.2.5 to 2.2.6.
The touched files are:
/announce/boost/install.sql
/announce/boost/update.php
/announce/class/Announcement.php
/announce/class/AnnouncementManager.php
/announce/conf/boost.php
/announce/conf/config.php
/announce/conf/help.php
/announce/lang/announce.en.lng
/announce/templates/settings.tpl
/announce/templates/view_small.tpl
I am attaching a cvs diff file to this post. If I can add a second
attachment, I'll also attach a tarball of the complete mod, so
singletrack can use what he wishes :)
have fun,
verdon
CVS diff file for announce-2.2.6
Tarball of proposed announce 2.2.6
Logged In: YES
user_id=400519
thank you. Added to cvs copy