View Full Version : Linked image not working
http://www.vbulletin.org/forum/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
Sorry, I dont understand what you are reporting.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
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 http://www.vbulletin.org/forum/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.
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
07 Jan 2011, 00:32
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
07 Jan 2011, 00:54
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.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.