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:

JTMON 11-02-2001 11:31 PM

Where exactly do you make that code change?

eva2000 11-02-2001 11:47 PM

Quote:

Originally posted by JTMON
Where exactly do you make that code change?
in getinfo template

JTMON 11-03-2001 12:14 AM

I've searched the getinfo template and cannot find that code anywhere. I even modified it to match my php3 vbulletin but still no luck finding it:(

eva2000 11-03-2001 12:16 AM

Quote:

Originally posted by JTMON
I've searched the getinfo template and cannot find that code anywhere. I even modified it to match my php3 vbulletin but still no luck finding it:(
the code is from the modified getinfo templates from the first post in this thread

JTMON 11-03-2001 12:21 AM

I installed using the instructions but it only said to modify the postbit_attachment template. I've looked both places but can't find the code?

JTMON 11-03-2001 12:23 AM

I did a search for the string using the Admin CP, it shows in the attachmentview template.

JTMON 11-03-2001 12:29 AM

Yup Yup, I made the changes in the attachmentview template and it works correctly now.:D:D:D:D

eva2000 11-03-2001 01:18 AM

Quote:

Originally posted by JTMON
Yup Yup, I made the changes in the attachmentview template and it works correctly now.:D:D:D:D
:cool: :D :)

Goldfinger 11-03-2001 06:46 AM

FireFly always makes the coolest hacks :). Good work bro.

Admin 11-03-2001 07:19 AM

Thakns everyone! :pleased:

Thanks eva, I fixed the file now. :)

eva2000 11-03-2001 08:02 PM

no probs :D

|DarkManX| 11-03-2001 08:52 PM

could someone please post the attachmentview code for me....it didn't work for me for some reason...thanks

|DarkManX| 11-04-2001 04:24 PM

ok got it!!

thanks

eva2000 11-04-2001 06:39 PM

Quote:

Originally posted by |DarkManX|
ok got it!!


thanks

:D

LuBi 11-12-2001 09:47 PM

Little test

http://www.suprascene.com/temp/error.jpg

squawell 11-12-2001 11:07 PM

it's a nice hack !!

thanks FireFly~~~

pestilence 11-14-2001 12:55 AM

superb hack keeps my forum tables looking neat again for some of my users who cant comprehend resize the image first....another cracking hack firefly :)

Horizon 11-27-2001 03:32 AM

I dont think it worked for me, when I tried to attach something to a post it told me to resize the image, but I did all the changes....is there something I am missing?

DarkReaper 11-28-2001 01:20 AM

Swank :D

Installed :)

Pady 11-28-2001 02:46 PM

thanx Firefly, this one works like a treat

DarkReaper 11-30-2001 12:26 AM

Bug:

http://www.unrealtournament.org/foru...367&fullpage=1

User's name shows up as "Fatal_Exception&lt;LSD&gt;" when it should be "Fatal_Exception<LSD>"

Admin 11-30-2001 11:25 AM

Ok, try this fix.
In attachment.php, replace this:
Code:

  $attachusername=$getuser[username];
with this:
Code:

  $attachusername=unhtmlspecialchars($getuser[username]);

DarkReaper 12-01-2001 02:49 AM

Worked :)

DarkReaper 12-01-2001 06:43 PM

You might want to update the zip with that fix.. ;)

Nam 12-02-2001 01:16 AM

Quote:

Originally posted by JTMON
I installed using the instructions but it only said to modify the postbit_attachment template. I've looked both places but can't find the code?
Me too, I don't know what else should I need to edit or create? How come the install file didn't create it for me? Anyway, the hack didn't work for me, it says:
Quote:

No attachment specified. If you followed a valid link, please notify the webmaster
Help please?

Sinecure 12-10-2001 10:47 PM

Just installed it, great hack, no flaws :) I mofied the navbar so that is suited the customizing i have done with mine already and I changed the template around a bit to suit my needs, but other then that it was easier then Pie on a sunday night :)

Thanks Firefly for the hack and Bane for the installer portion :)

Bimma Boy 12-11-2001 04:45 PM

Wow, what a cool hack, installed in minutes! :)

You guys make wicked hacks - bring them on!

Bimma Boy

VirtueTech 12-14-2001 04:10 AM

Will this work with 2.0.3?

Admin 12-14-2001 05:48 AM

I think it was initially written for 2.0.3, but I waited until 2.2.0 was out. So I think it would work, yeah. :)

fixer 12-14-2001 04:28 PM

Hi

I cant not find
PHP Code:

updateuserforum($getforuminfo['forumid']); 

in the root/attachment.php for vb2.0.3

help please


All times are GMT. The time now is 01:37 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.01568 seconds
  • Memory Usage 1,790KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_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
  • (40)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