View Full Version : Linked image not working
https://vborg.vbsupport.ru/misc.php?do=bbcode#imgcode
2nd example usage doesn't work due to some added custom(?) code.
example:
http://img838.imageshack.us/img838/5354/capturemz.th.jpg (http://img838.imageshack.us/i/capturemz.jpg/)
test left click and middle click
Paul M
01-06-2011, 08:53 PM
Sorry, I dont understand what you are reporting.
<a target="_blank" href="http://img838.imageshack.us/i/capturemz.jpg/">
<span title="" onclick="window.location.href='http://img838.imageshack.us/img838/5354/capturemz.th.jpg';return false" class="aimgbox">
<img border="0" class="aimg" alt="" src="http://img838.imageshack.us/img838/5354/capturemz.th.jpg">
</span>
</a>
because of the extraneous span onclick method added, clicking the image opens the image instead of the link.
Steps to reproduce:
Post an img
surround it with url
Click the image
What happens:
browser loads the image
Expected:
browser will load the url (can be an image)
It works properly in here https://vborg.vbsupport.ru/misc.php?do=bbcode#imgcode
So you have some custom code that is adding the extra span with onclick and hindering this functionality in posts.
Paul M
01-06-2011, 09:43 PM
Oh right. I see.
Thats something Joe added years ago, Off the top of my head, I'm not entirely sure what it does, but I guess we can live with it for now. Its taken this long for anyone to notice :cool:
Thanks for posting it tho. :)
TheLastSuperman
01-06-2011, 11:32 PM
Just a wild guess here.... it might have been added to prevent some sneaky members from pointing all images to their custom (commercial) scripts or their site etc however again, that was a wild guess ;).
Digital Jedi
01-06-2011, 11:54 PM
I've noticed it reacts differently depending on what forum your in. I had no problem linking an image in an article to the W3C, but if I try to link a tiny image here to something like a Superman Wikipedia article,
http://www.vbulletin.org/custompics/forum/avatars/avatar274667_6.gif (http://en.wikipedia.org/wiki/Superman)
it links to the image instead. So I guess, it's custom for each forum.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.