The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Can I bypass image resizing in specific posts?

Go down

Can I bypass image resizing in specific posts? Empty Can I bypass image resizing in specific posts?

Post by SheepEffect August 10th 2012, 6:25 pm

One of my users wants to make a fancy thread that's basically just a large image. He wants it to be 1000px wide, but the forum is set to resize things to 800px wide and, after some testing, I've decided to keep it at 800px. Is there some way for me to get around that automatic resizing for just his post? I don't want to enable HTML for everyone, but is it possible for me to put HTML into people's posts?

I know a tiny bit about Javascript—enough that it seams feasible to inset the image into his post. Can someone with more JS experience tell me what they think of that idea?


EDIT: 95% solved
Code:
#p78735 .resizebox {
    display: none;
}
#p78735 .resizebox + br{
    display: none;
}
#p78735 .resize_img {
    width: auto;
}
If only I could get rid of the <br> that comes before...
Code:
    <br>
    <span class="resizebox gensmall clearfix" style="width:800px">
    <br>


Last edited by SheepEffect on August 10th 2012, 7:43 pm; edited 1 time in total
avatar
SheepEffect
New Member

Posts : 10
Reputation : 2
Language : English

http://begonebrotherhood.forumotion.com/

Back to top Go down

Can I bypass image resizing in specific posts? Empty Re: Can I bypass image resizing in specific posts?

Post by SheepEffect August 10th 2012, 6:49 pm

Edited OP. Feel free to delete.


Last edited by SheepEffect on August 10th 2012, 7:44 pm; edited 1 time in total
avatar
SheepEffect
New Member

Posts : 10
Reputation : 2
Language : English

http://begonebrotherhood.forumotion.com/

Back to top Go down

Can I bypass image resizing in specific posts? Empty Re: Can I bypass image resizing in specific posts?

Post by SheepEffect August 10th 2012, 7:16 pm

Edited OP. Feel free to delete.


Last edited by SheepEffect on August 10th 2012, 7:44 pm; edited 1 time in total
avatar
SheepEffect
New Member

Posts : 10
Reputation : 2
Language : English

http://begonebrotherhood.forumotion.com/

Back to top Go down

Can I bypass image resizing in specific posts? Empty Re: Can I bypass image resizing in specific posts?

Post by SheepEffect August 10th 2012, 7:39 pm

Thanks, but that just targets the resizebox again.
avatar
SheepEffect
New Member

Posts : 10
Reputation : 2
Language : English

http://begonebrotherhood.forumotion.com/

Back to top Go down

Can I bypass image resizing in specific posts? Empty Re: Can I bypass image resizing in specific posts?

Post by SheepEffect August 10th 2012, 7:48 pm

Oh, forgot to mention that. Already put that in to hide the following <br>. I've edited my current code into the OP.

I'm having doubts as to whether I can remove the preceding <br> with CSS. I think Javascript would be too much of a hassle for a little <br>.
avatar
SheepEffect
New Member

Posts : 10
Reputation : 2
Language : English

http://begonebrotherhood.forumotion.com/

Back to top Go down

Can I bypass image resizing in specific posts? Empty Re: Can I bypass image resizing in specific posts?

Post by SheepEffect August 10th 2012, 8:18 pm

I think that selector would target all elements with class="resizebox" that are preceded by a <br> which is a descendant of element #p78673. I want to target <br> elements that are followed by class="resizebox", but I don't think there's any selector syntax for that.

This isn't the intended topic, just the tester I've been working on:
http://begonebrotherhood.forumotion.com/t4355-maximum-image-size#78673

The current BBCode for the post is
Code:
Alright, I've increased it to 1024px.

If you can't see the red border on the right end of this image, please let me know! If part of this image gets cut off, you'll have the same problem with all large images.
[img]http://i.imgur.com/HvR1M.gif[/img]
[img]http://i.imgur.com/HvR1M.gif[/img]
(I've since set it back to 800)

Oh and, hi Rideem! Smile
avatar
SheepEffect
New Member

Posts : 10
Reputation : 2
Language : English

http://begonebrotherhood.forumotion.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum