![]() |
|
I like this hack a lot but it causes funny things when used with
https://vborg.vbsupport.ru/showthread.php?t=73040 the geek gallery popup hack any chance to make it work with it ? |
what's the difference with this hack?
https://vborg.vbsupport.ru/showthrea...t=image+resize |
Awesome hack, thanks!
|
clicked install !
works fine, thanks ;) |
Quote:
This hack will still load pages slowly for the client, but the layout will be fine. It will be fast for the server, slow for the browser. That hack will still load pages slowly for the client, and the layout will be fine. But it will be slow for the server, fast for the browser. May I make a suggestion about this hack though? Perhaps another method? Instead of adding JavaScript to every IMG tag within every post, and firing that many onloads... why not just add javascript to your headinclude template that parses all images onload? Example... Put this in your headinclude... and don't bother hacking any vBulletin files: HTML Code:
<script type="text/javascript"> mh = maximum height in pixels. I've got mine set to 800 x 800, but you could put what you want in there. Any img on the page will be resized to fit that area. Of course, the end user still has to download them, but this resolves the problem with the script part going through to edits and quotes, and is also an easier install. You don't have to use this version, but it's simpler methinks. |
Quote:
Is there a chance to add a link in the resized picture to open the original version and size in a new window? |
Quote:
Ahhhhhh, finally no more table breaks. :) Chris |
Quote:
You either: 1) Add javascript onclick to each image... which breaks the WYSIWYG again. or 2) You wrap an A element around the image, but it's messy and might not work cross browser. I can look into it though, I have some old DOM tree javascript lying around and I might already have a method to convert a child element to a grandchild by creating a new parent. If I do have that and it doesn't affect image placement in the post I'll show an example of that too. |
hey i had cinq install this hack on http://www.talkweed.com/forums/ but its not working, do you know why ?
|
All times are GMT. The time now is 03:31 AM. |
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:
|