| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| Prevent Posted Images from Stretching Board | |
|---|---|
| Tweet Topic Started: Jul 3 2010, 02:56 PM (6,466 Views) | |
| Reid | Jul 3 2010, 02:56 PM Post #1 |
![]()
È una trappola!
![]()
|
Place this in Admin CP -> Board Template -> Below the Board: It will make the maximum width of images the same as post widths. Note that unlike other codes, this code scales based on resolution. To link all resized images to their source, use this code instead, same placement:
|
![]() |
|
| Pando | Jul 3 2010, 03:18 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The code is awesome! Thanks! Question though, what about if there is a giant piece of text that stretches it, what will happen to the images then? Unfortunately it goes past the blockquotes though. |
![]() |
|
| Reid | Jul 3 2010, 03:47 PM Post #3 |
![]()
È una trappola!
![]()
|
The code does exactly what it says: images will not stretch the board. Other types of stretching the board, such as long pieces of text, are not covered by this code.
|
![]() |
|
| Jameswgw | Jul 3 2010, 07:06 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Awesome code, works like a charm. Thanks Reid. |
![]() |
|
| Pando | Jul 3 2010, 08:02 PM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I removed it, because it is super glitchy. When I added it, every page I visited had the page stretched. I removed it, and every new page I visited didn't stretch anymore. |
![]() |
|
| IF User (P) | Jul 4 2010, 05:19 AM Post #6 |
|
Member
![]() ![]() ![]()
|
I love this one! Thanks Reid
|
![]() |
|
| Nicolas-ZNR | Jul 4 2010, 08:47 AM Post #7 |
![]()
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Any chance that can work with images in spoilers, too?
|
![]() |
|
| justifin | Jul 5 2010, 10:04 PM Post #8 |
|
Member
![]() ![]() ![]() ![]()
|
same issue as him |
![]() |
|
| Reid | Jul 5 2010, 10:53 PM Post #9 |
![]()
È una trappola!
![]()
|
Which code were you using - first or second? The second was added as an afterthought and not tested extensively. |
![]() |
|
| Pando | Jul 5 2010, 11:31 PM Post #10 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The first code. |
![]() |
|
| justifin | Jul 6 2010, 12:08 AM Post #11 |
|
Member
![]() ![]() ![]() ![]()
|
also the first code |
![]() |
|
| Deleted User | Sep 26 2010, 06:41 AM Post #12 |
|
Deleted User
|
Any chance of getting this code fixed? It's really handy but as the other guys said, when you view a topic you haven't viewed before the theme is stretched. If you refresh the page then it works fine, however refreshing each page you visit so it looks as it should cost a lot of clicks when you have ad-removal. Not sure how i got this, but it seems to work with the code on this page, to me they seem to do the same. Though when i remove either of them, nothing happens at all goes to javascript. Why doesn't ZB have this function by default anyway? I don't know anyone who would want their theme to be stretched in a ugly manner.
|
|
|
| Nyokou | Mar 12 2011, 08:54 AM Post #13 |
|
Member
![]() ![]() ![]()
|
Works perfectly for me but just one issue, it doesn't provide a link to the actual sized image. |
![]() |
|
| Skrew | Mar 17 2011, 02:10 PM Post #14 |
|
Member
![]() ![]() ![]() ![]()
|
needs to do this, otherwise its perfect |
![]() |
|
| Luck Gandor | Mar 28 2011, 08:09 PM Post #15 |
![]()
Member
![]() ![]() ![]()
|
It works perfectly for me. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · ZetaBoards Codes & Modifications · Next Topic » |
- Pages:
- 1
- 2
| Track Topic · E-mail Topic |
4:33 AM Jul 11
|








![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)
Thanks Reid


4:33 AM Jul 11