vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Attachment Viewer (https://vborg.vbsupport.ru/showthread.php?t=31983)

Admin 10-31-2001 10:00 PM

This is a nice little hack I've been meaning to release for quite some time, but for some reason I waited for v2.2.0. :)
For a demo of this just view an attached image on this forum (I'll attach an image in the next post).

Anyway, this is very easy to install. Only one template to edit and two files to change, it doesn't get any easier!

Just download the installer (attached to this post), upload to your admin folder, and run in your browser.
Again thanks Bane for the installer, and thanks JamesUS for that little copyright notice. :)

Have fun! :china:

Admin 11-01-2001 06:26 PM

For a demo click below.

snyx 11-01-2001 06:40 PM

very nice firefly, it will be on priority on my intall list!

rockergrrl 11-01-2001 06:55 PM

Cool Hack! I was hoping you would release this... :D

I'll install this tonight... :)

Thanks! Its a great enhancement!

JJR512 11-01-2001 09:28 PM

I'd prefer that when I click on an attached image, that the image shows up in the same browser window that the board was in. To get back to the board, just backup. This is the way attached images have worked up until 2.2.0; now, for some reason, they open in a new window. Why? What's wrong with the window you're already in? Opening and closing browser windows quickly hurts many non-NT-kernel versions of Windows, too.

Can anyone tell me how to get 2.2.0 to open attached images (or other files that open in a browser at all) to open in the same window?

eva2000 11-01-2001 09:37 PM

opening attachments in new window was actually my suggestion :)

to open in same window find the attachment template and change the href target from _blank to _top or remove the target part

|DarkManX| 11-01-2001 11:12 PM

it didn't create the attachmentview template for me automatically, so could someone please post the code thats in the template that is created during install....thanks

JTMON 11-02-2001 12:01 AM

Very nice Hack guys! Install was a snap with no problems!

eva2000 11-02-2001 10:51 PM

bug report in getinfo template

when you click on the Posted by username link on the attachment viewer page, it redirects you to the lost password page instead of users profile to fix

change
Code:

Posted by <a href="member.php?s=$session[sessionhash]&userid=$attachuserid">$attachusername</a>
to
Code:

Posted by <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$attachuserid">$attachusername</a>

MarkB 11-02-2001 10:53 PM

Nice :pleased:


All times are GMT. The time now is 03:08 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.01062 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete