![]() |
Replace large images in posts with links to the images
No longer supported by the author.
|
First post reserved for notes, etc as I know some of you surf with the hacks collapsed.
|
Excellent! Thanks for the hack!
|
Has vb.org got something weird in it that turns double spaces into tabs? My beautifully indented code comes out all strange.
|
Not sure but if you put the intructions in a txt file and zip up both the instructions and the php file, it will aleviate that.
Will also make it easier for end users as they now have a neatly packaged hack stored locally. ;) |
One question what about un-registered users? Do they see the link or a large image?
|
the JACKPOT hack will be when someone makes a "resize if >500px hack" or something
good try tho. |
Quote:
The JavaScript will fire, but the script web service that I have that services that JavaScript won't change the post when a guest calls it. I should note that in nearly all cases this means they see the link... because the moment a post is posted the author is returned to it, and it is they that trigger the conversion from [url] to [img]. So anyone who manages to see the post is usually just going to see a link. The exception to the above are historical posts, which require a registered user to go view for the conversion to occur. |
Quote:
Yes CSS and HTML can be written to re-format the size, create scroll bars on it or resize the image dimensions in JavaScript. However every user still ends up having to download that 1.7mb image for the CSS and/JavaScript to resize it. My idea of a jackpot hack for oversized images is to not have those users download the images in the first place. Of giving them the choice to download it. And as a result retain the perception that my forum is fast. This means converting inline images to links, which my hack does. So I guess whether you like this hack or not depends on point of view, whether you agree with my design decision that not having users download large images unawares is important, or whether you feel that the layout of the page is more important than the download experience for users. |
Quote:
|
All times are GMT. The time now is 11:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|