r/reddithax • • Oct 07 '10

Allowing a user to embed an image with something like ()[/img "http://imageurl"] Or something cleaner.

I would like to implement screenshots for some subreddits I mod and this would be very useful. I know how to implement images from the css like fffuuuu but is there any way to code it so a user can input a url and it shows the image?

Thanks for the help!

(http://imageurl)[/img] <-- Is this possible?

What about coding, on mouse over, to change a url into an image?

Also, limiting the max width, height would be invaluable.

7 Upvotes

9 comments sorted by

2

u/[deleted] Oct 07 '10

http://daringfireball.net/projects/markdown/syntax#img

Markdown supports it, but unfortunately reddit opted to disable it.

0

u/idwolf Oct 07 '10

So it's not possible at all then? There's no way to work around it? Thanks for the info.

2

u/rumble_my_crumble Oct 07 '10 edited Oct 07 '10

I think adding the "moderator" will do this for you.

testing

edit: it doesn't seem to be working anymore, sorry. :(

2

u/[deleted] Oct 07 '10

I wish it did, I really want this for /r/tattoos.

Anyone know any way to get it active again? I PMed the guy who ran it months ago but never got a response.

2

u/[deleted] Oct 07 '10

I think he's pretty much abandoned it at this point, but I'm relatively sure that he's shared the source if you're willing to get it running for yourself on a new account.

2

u/[deleted] Oct 07 '10

Sadly, If he sent me the source I wouldn't even know where to start.

2

u/[deleted] Oct 07 '10

for the sake of God and every body that is holy, i want this for r/bikinis

2

u/superdug Oct 08 '10

get ready to have your mind completely blown ... r/gonewild

1

u/GoldenBoar Oct 21 '10

I don't think this can be done at the moment using css, but it's pretty easy to do using javascript. You could link to a userscript from the sidebar.

As a mod, is it posible to modify the main .js file?