Helpful Information
 
 
Category: Programming Articles
How-To: Make image attachments popup in 3.0.x

if you are using the newest versions of vb3, youll notice that when you make a new thread, and upload a attachment, and after you post that thread, and you click the attachment, its loading in the same window.

some people get confused and close the window (like me) cuz they are use to the old way, and just dont think about clicking back.

I am sure this has been posted on here numerous times, but i cant find it or just didnt look good enough.

goto: postbit_attachmentthumbnail

and basically make it look like this:

<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank"><img class="thumbnail"

your adding the target="_blank" inside the first > basically. its more HTML code, but this is to make the image popup a new window when clicked.

good idea - I have closed the window myself on more than one occasion :)

Yes, but I also should add that I installed this, and lost my file names with zip files. The icon shows, and the .zip, but not the file name. There has to be another hack interfering, but it's kind of a weird problem to say the least. Removing this code above, my file names come back.










privacy (GDPR)