Help with mod scripting

Started by ***Teh GodFather***, January 17, 2008, 07:21:23 PM

Previous topic - Next topic

***Teh GodFather***

Link to mod

Can anyone help me to code this mode so users have option to set size of thumnail?

SleePy

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)
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

***Teh GodFather***

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...

Rumbaar

Well SMF has that ability already built in:
AdminCP->Attachments and Avatars->Attachment Settings=>
Maximum width of thumbnails:     
Maximum height of thumbnails:
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

***Teh GodFather***

This is not for thumbnail in attachments... This is for my mod Image Thumbnail

Rumbaar

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.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: