Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: evillair - tammikuu 18, 2006, 06:42:00 IP

Otsikko: grab an image from a post
Kirjoitti: evillair - tammikuu 18, 2006, 06:42:00 IP
I hope I'm posting in the right area... :)

Like the title says, is there a way grab image from a post and post it elsewhere?
I'd like to be able to grab the first image from a certain board's topics and post that image elsewhere.

Ideally it should be both using the [img] tags and uploaded directly to the forum.

Thanks
Otsikko: Re: grab an image from a post
Kirjoitti: JayBachatero - tammikuu 18, 2006, 06:50:07 IP
You mean this http://www.simplemachines.org/community/index.php?topic=66535

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=66535.0;attach=12950;image)
Otsikko: Re: grab an image from a post
Kirjoitti: evillair - tammikuu 18, 2006, 07:05:21 IP
yes!  :D

Tell me how you did it?
Otsikko: Re: grab an image from a post
Kirjoitti: JayBachatero - tammikuu 18, 2006, 07:07:30 IP
You just upload the image to the post and just link to it using [img][/img] tag.  Remember attachments must be enabled.

[img]http://www.simplemachines.org/community/index.php?action=dlattach;topic=66535.0;attach=12950;image[/img]

-JayBachatero
Otsikko: Re: grab an image from a post
Kirjoitti: evillair - tammikuu 18, 2006, 07:35:17 IP
That's cool, thanks   :)

Is there a way to have the topic id and attach id generated based on the latest post?

Here what I looking to have: http://www.pixolator.com/zbc/forumdisplay.php?f=2
At the top there's 2 rows, the bottom row (is what I would like to have) displays the latest image that was posted in a board and links to it.

thanks
Otsikko: Re: grab an image from a post
Kirjoitti: JayBachatero - tammikuu 18, 2006, 07:44:38 IP
Yea it can be done.  I'm not much of a coder so I don't really know how to do this exactly.  You can always request a mod for it at Mod Requests (http://www.simplemachines.org/community/index.php?board=79.0) board :P

-JayBachatero
Otsikko: Re: grab an image from a post
Kirjoitti: evillair - tammikuu 18, 2006, 08:11:20 IP
Thanks, done.