Skip to main content
Topic: Testing ILA permissions. (Read 3656 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Testing ILA permissions.

This attachment is posted in a restricted board:
X

Do you see anything?
I hope not. :P

What would you expect to see?
Bugs creator.
Features destroyer.
Template killer.

Re: Testing ILA permissions.

Reply #1

I see no attachment.

Re: Testing ILA permissions.

Reply #2

Cool, then it works! :P
Bugs creator.
Features destroyer.
Template killer.

Re: Testing ILA permissions.

Reply #3

And I see it  :D

Re: Testing ILA permissions.

Reply #4

I wonder if it should show a default image along the lines "you don't have permissions to see this image" (created on-the-fly for localization).
Bugs creator.
Features destroyer.
Template killer.

Re: Testing ILA permissions.

Reply #5

Quote from: emanuele – I wonder if it should show a default image along the lines "you don't have permissions to see this image" (created on-the-fly for localization).

Would be nicer then just looking like a broken image.
Thank you,
LordRT

Re: Testing ILA permissions.

Reply #6

What about " if you can't use it, you can't see it " theory ?

Re: Testing ILA permissions.

Reply #7

I think one of those new facebook emoji might just be the ticket as a default, nope should work fine :P 

Probably just the old red circle / slash combo ?

Just to note, but I'll forget, when I did a preview on this post, I got the Circumflex character after the smiley.


Re: Testing ILA permissions.

Reply #9

Quote from: meetdilip – What about " if you can't use it, you can't see it " theory ?
That doesn't really work for a picture in a post you can see. Consider:

QuoteHey, look at this picture!

crickets

Isn't it awesome?

Re: Testing ILA permissions.

Reply #10

Testing an inline text file.

custom_besocial.css

How about actually displaying it for the user? Basically the HTML from server would be a download link (like now) but a script would replace it in a similar vein to the video autoembed.

Code: [Select]
Attachment blabla.css(this is a link):
html {
background-color: #666;
}


PS I'm not saying someone not me should write this. I'm just tossing the idea out there and I suppose I'm effectively volunteering.

Re: Testing ILA permissions.

Reply #11

Rather interesting idea!
I wonder about a couple of things, though:
1) txt is kind of easy, but if you provide txt then others will ask for pdf "at least", is there anything for them?
2) ... hmmm... no, okay, security should not be such a huge problem, provided the text is htmlspecialchar'ed, right?
Bugs creator.
Features destroyer.
Template killer.

Re: Testing ILA permissions.

Reply #12

Quote from: emanuele – 1) txt is kind of easy, but if you provide txt then others will ask for pdf "at least", is there anything for them?
Blergh. PDF in browsers ftl. That being said, seems like premade solutions exist. But that would be a lot less lightweight than just simple text. Maybe it could be loaded optionally only when encountering a PDF attachment or something.

Quote2) ... hmmm... no, okay, security should not be such a huge problem, provided the text is htmlspecialchar'ed, right?
Right, except I see no reason to do it in PHP. Just do something like string.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;') in JS (possibly quotes too like in PHP, but there should be no reason to). I mean this purely as a JS enhancement without changing anything anywhere.[1]
Except maybe a little classname hook in the ATTACH BBC, which should be there for styling purposes as well anyway.
Last Edit: April 19, 2016, 06:49:10 am by Frenzie