Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: ***Teh GodFather*** on January 17, 2008, 07:21:23 PM

Title: Help with mod scripting
Post by: ***Teh GodFather*** on January 17, 2008, 07:21:23 PM
Link to mod (http://custom.simplemachines.org/mods/index.php?mod=1067)

Can anyone help me to code this mode so users have option to set size of thumnail?
Title: Re: Help with mod scripting
Post by: SleePy on February 12, 2008, 10:59:00 PM
Have you looked at how other bbc like the quote bbc and even the regular image bbc which accepts width and height attributes?
You could simply apply this to a copy of the bbc (So that way the orignal way works but so so specifying widths)
Title: Re: Help with mod scripting
Post by: ***Teh GodFather*** on February 13, 2008, 03:09:35 AM
I didn't expressed myself right... I need option in admin panel to set resized image size... I tried to copy code from other mods and edit them to work with mine, but failed...
Title: Re: Help with mod scripting
Post by: Rumbaar on March 10, 2008, 02:28:05 AM
Well SMF has that ability already built in:
AdminCP->Attachments and Avatars->Attachment Settings=>
Maximum width of thumbnails:     
Maximum height of thumbnails:
Title: Re: Help with mod scripting
Post by: ***Teh GodFather*** on March 10, 2008, 05:24:34 AM
This is not for thumbnail in attachments... This is for my mod Image Thumbnail
Title: Re: Help with mod scripting
Post by: Rumbaar on March 10, 2008, 04:58:29 PM
Why don't you just use those settings defined in that section to resize the images in your mod?  Or do you want every user to be able to define their own.  Then it would be best to do it like Sleepy said and allow them at attachment time to define it on the fly.