SimplePortal

Development => Feature Requests => Topic started by: Jade Elizabeth on January 16, 2016, 02:53:47 AM

Title: Block Attachments (Inline pls!)
Post by: Jade Elizabeth on January 16, 2016, 02:53:47 AM
I wanted to upload an attachment to display or use a prexisting one.

It would be good to see attachments both like posts are and embedded more with BBC. So if you upload "thisismypicture1.jpg" you should be able to embed it as [thisismypicture1.jpg] or it will just display at the bottom of the block like a post would display an attachment :).

Also it would need to actually integrate with SMFs system, it would be hellish to have another attachment panel and it would be good to be able to use a preexisting one from the list :).
Title: Re: Block Attachments (Inline pls!)
Post by: ♦ Ninja ZX-10RR ♦ on January 16, 2016, 03:08:03 AM
Not sure if I understood you entirely but... This? http://custom.simplemachines.org/mods/index.php?mod=3770
Title: Re: Block Attachments (Inline pls!)
Post by: Jade Elizabeth on January 16, 2016, 03:10:10 AM
Yes but for the blocks and articles. I'm making a BBC block for example, it would be awesome if I could embed something I've already uploaded or attach something new to that block :).
Title: Re: Block Attachments (Inline pls!)
Post by: ♦ Ninja ZX-10RR ♦ on January 16, 2016, 03:11:59 AM
Well, there is an attachments block as well, how would you want to change it exactly? :)
Title: Re: Block Attachments (Inline pls!)
Post by: Jade Elizabeth on January 16, 2016, 03:55:49 AM
Basically I want the custom BBC block to behave similar to a post would behave, with attachments :D.
Title: Re: Block Attachments (Inline pls!)
Post by: ♦ Ninja ZX-10RR ♦ on January 16, 2016, 11:09:24 AM
Well, you could link the attachment with [url=link to attachment]title you want to use[/url]
Title: Re: Block Attachments (Inline pls!)
Post by: Jade Elizabeth on January 16, 2016, 11:35:09 AM
That's no good for images.

I just made this and it would be good to have it display in a block as an image I don't have to upload externally, or if I can use it like an attachment like I did there.
Intricate Daisy Mandala (http://www.colormeforum.com/coloring-pages/$0-99-intricate-and-charming-daisy-mandala)
Title: Re: Block Attachments (Inline pls!)
Post by: ♦ Ninja ZX-10RR ♦ on January 16, 2016, 12:05:51 PM
If you want to display the image
Code: [Select]
[url=http://www.colormeforum.com/index.php?action=dlattach;topic=169.0;attach=224;image][img]http://www.colormeforum.com/index.php?action=dlattach;topic=169.0;attach=224;image[/img][/url]
If you want to hide it
Code: [Select]
[url=http://www.colormeforum.com/index.php?action=dlattach;topic=169.0;attach=224;image]title for the image[/url]
Title: Re: Block Attachments (Inline pls!)
Post by: Jade Elizabeth on January 16, 2016, 11:57:50 PM
Hmm I was worried that might throw errors but thank you :D.
Title: Re: Block Attachments (Inline pls!)
Post by: ♦ Ninja ZX-10RR ♦ on January 17, 2016, 01:57:43 AM
Eh, if guests cannot see attachments it will, otherwise it shouldn't :)

To fix it for guests with restrictions... Gotta use php some kind of ifAllowedTo(attachments_view) or something like that, can't check right now.
SimplePortal 2.3.7 © 2008-2021, SimplePortal