Can I bypass image resizing in specific posts?
Page 1 of 1
Can I bypass image resizing in specific posts?
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
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;
}
- Code:
<br>
<span class="resizebox gensmall clearfix" style="width:800px">
<br>
Last edited by SheepEffect on Fri Aug 10 2012, 20:43; edited 1 time in total
Re: Can I bypass image resizing in specific posts?
Edited OP. Feel free to delete.
Last edited by SheepEffect on Fri Aug 10 2012, 20:44; edited 1 time in total
Re: Can I bypass image resizing in specific posts?
Edited OP. Feel free to delete.
Last edited by SheepEffect on Fri Aug 10 2012, 20:44; edited 1 time in total
Re: Can I bypass image resizing in specific posts?
Thanks, but that just targets the resizebox again.
Re: Can I bypass image resizing in specific posts?
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>.
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>.
Re: Can I bypass image resizing in specific posts?
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
Oh and, hi Rideem!
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]
Oh and, hi Rideem!
Similar topics
» Image resizing in posts.
» Add a color + image to a specific group at the top of posts without JavaScript
» Bypass image resize?
» Image Resizing
» image resizing?
» Add a color + image to a specific group at the top of posts without JavaScript
» Bypass image resize?
» Image Resizing
» image resizing?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum