MyBB Community Forums
Get a specific image. - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Get a specific image. (/thread-196879.html)



Get a specific image. - Freakout14 - 2016-08-02

Hello lads.

I have been trying to design my own portal recently. Actually re design the default mybb portal but now I have come to dead end. The thing is I want to fetch the first image from a post and display it on the portal. Now since I'm particularly new to MyBB I don't know how to do that. If someone would be kind enough to help then I'd really appreciate it Big Grin


Cheers and regards Smile


RE: Get a specific image. - MrBrechreiz - 2016-08-02

Attachment image or [img]....[/img] image?


RE: Get a specific image. - Freakout14 - 2016-08-02

Noo. You don't get it. I want to fetch the first image that I posted in a topic to my portal design, Is there any variable for that?


RE: Get a specific image. - Ashley1 - 2016-08-02

Pretty sure there's not. You're going to have to construct a query and write some code for that.


RE: Get a specific image. - katos - 2016-08-02

You would need to create something that could pull the data from an SQL or such and emit everything but [img]yourimage.com[/img]

I don't BELIEVE that there is a variable or such that would do what you're after.


RE: Get a specific image. - Freakout14 - 2016-08-02

Okay thats pretty sad. Is anyone willing to help me with making this query? I really need this.

Bump. Guys really need this..