Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: smartmouse - lokakuu 04, 2007, 09:08:48 IP

Otsikko: Upload image mod
Kirjoitti: smartmouse - lokakuu 04, 2007, 09:08:48 IP
I need a plugin like upload image feature of PhpBB...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg404.imageshack.us%2Fimg404%2F9279%2Fphpbbgl4.jpg&hash=149a56e5ffb3dbff84220aefdd622af2eb5eb488) (http://imageshack.us)

That button opens a new windows where any user can upload image, and the image is saved on server.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg529.imageshack.us%2Fimg529%2F8914%2Fwindowsfk8.jpg&hash=69745c9dab04fbb919031a5914cfe9c69a1a14fd) (http://imageshack.us)

I know there is default Attachment option in SMF, but i can't choose where to put the images! For example i would like to insert an image in the middle of text.
I need a mod like that one in PhpBB.

Thank you.
Otsikko: Re: Upload image mod
Kirjoitti: karlbenson - lokakuu 04, 2007, 10:36:40 IP
hey smartmouse

I agree it would be a nice mod.

Thinking out loud here for anyone thinking of having a go at this.

It would probably be easier to enable the user to upload attachments as normal and instead add the functionality of setting placeholders.

eg add a button next to the upload field to insert [attachment1] at the cursor.

And then have

[attachment1] appear in the post and then when its viewed that is replaced by the attachment.  And then its just a case of removing the attachment from the attachments array.  so you show any remaining attachments which don't have placeholders in the usual place.
Otsikko: Re: Upload image mod
Kirjoitti: BryanShenuk - lokakuu 04, 2007, 10:55:22 IP
I'll vote X10 for inline pics.