vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   How-To: Make image attachments popup in 3.0.x (https://vborg.vbsupport.ru/showthread.php?t=75205)

GoTTi 01-26-2005 10:00 PM

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:

Code:

<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.

yoyoyoyo 01-27-2005 03:39 AM

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

shiva 01-27-2005 05:23 AM

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.


All times are GMT. The time now is 08:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01040 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete