View Full Version : Open thumbnail attachments into seperate "pop-up" window.
VPREATR
01-14-2005, 09:26 PM
I'm looking for a modification that will allow the user to open a thumbnail/attachment into a pop-up window (without scroll bars, centered); rather than spawing a new browser with target="_blank"
A nice option would be a closing button/icon, however the simple use of the "X" is just fine.
Thanks!
memobug
01-15-2005, 06:50 AM
I have mine opening in a new window, but to get it centered and without scrollbars, you'd need to know the image dimensions, which would mean GD calls or putting the image dimensions in the attachments database. That would be a good thing to do at the time that the image is uploaded and the thumbnail is created.
Also such a feature does require JavaScript and might interfere with people's ad blockers. So mine has reasonable fixed dimensions, and slight offset from the corner. It falls back on a simple target=BLANK type new window if there is no Javascript. Sounds like it is not nearly what you want. But it's only a template hack which means I couldn't post it here anyway :rolleyes: but feel free to PM me with an email address if it is something you can use.
(NOT CENTERED, NOT EXACT SIZE, YES RESIZEABLE - template mods only)
Regards,
Matt
Aunt Clara
06-15-2006, 12:25 AM
I am interested in exactly the same thing as vpreatr, has anyone come up with a hack for this? I am the only one who uploads pictures so they have a fixed size.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.