PDA

View Full Version : Linked image not working


CvP
06 Jan 2011, 21:11
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

Paul M
06 Jan 2011, 21:53
Sorry, I dont understand what you are reporting.

CvP
06 Jan 2011, 22:21
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.

Paul M
06 Jan 2011, 22:43
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.