![]() |
Screenshots for those who need such things now attached.
I've used this image as an example: http://miam-miam.viabloga.com/images...ufs%20durs.jpg Because it's 1024 pixels wide, it gets replaced by a link after the first view. |
Would be great if it does what promiced :) I've editted an already placed oversized image that whas reduced with the 3.xx BIMG tags but it did not turn into a link. Maybe it will only work with new posted images.
|
Quote:
The only thing it won't work with is pure HTML. But no-one allows users to post HTML because of security risks, right? Anyhow, so long as you have a DOM capable browser that supports XmlHttp and either element.parentElement (IE6) or element.parentNode (Mozilla and the others, this is the W3C implementation)... then it will call the script. Oh, but if you have edited your templates from the vb default and nuked the following from the postbit templates, then you will prevent the hack from working: Code:
<div id="post_message_$post[postid]">$post[message]</div> |
And if you're sure it's not working, just say and I'll add some trace/debug stuff to it so that you can optionally see it working before you switch it to run silently.
|
Quote:
With the hack installed you don't need to edit anything :D You just view them. Order of events:
So you don't need to edit anything. Just CTRL+F5 to ensure your browser has the latest version of vbulletin_global.js, and then view the thread. Once viewed, click CTRL+F5 again to refresh the page and the image should be gone. |
I had to refresh the page a few times to see the link without the pic. Not sure what that was, but it seems to work now. Great hack.
|
Refreshed several times, logged in and logged out etc. but the image stays large. I've looked into the js and the url to trimOversizedImages.php is correct. I'll check the
Code:
<div id="post_message_$post[postid]">$post[message]</div> |
I'll add a debugging option for you... that way you can see what happens... via the wonder of JavaScript alerts ;)
It will be off by default, but you can enable and disable debugging and if enabled it will give you popup messages from the web service saying what happened. Give me 10 minutes for this :) |
I've added debugging capabilities, and updated the file to upload and the JavaScript to run.
Simply update by uploading the new .php file over the old one, and replace the JavaScript with the new version in the zip file. Debugging will give you JavaScript alerts whenever it does stuff, so you will be able to 'see' things happening. |
<a href="http://www.cyberty.nl/forums/showthread.php?t=8987" target="_blank">http://www.cyberty.nl/forums/showthread.php?t=8987</a> look at the size (should be 500 - 500 when conversion to link must work) ... it shows no alert, no reducing.
|
All times are GMT. The time now is 09:42 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:
|