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)

VirtueTech 12-14-2001 10:22 PM

I can't find that in 2.0.3 either.

Any ideas?

nafae 12-14-2001 11:02 PM

The hack seemed simple enough.. :D but it looks like nothing changed (it just opens attachments like it used to.)

nafae 12-14-2001 11:04 PM

I got it working, when you said "next" i thought you ment outside of the quotes (for the last step) so i put it right NEXT to the line and it now works like a charm :) thanks firefly!

VirtueTech 12-16-2001 04:41 AM

a polite bump
Quote:

Originally posted by fixer
Hi

I cant not find
PHP Code:

updateuserforum($getforuminfo['forumid']); 

in the root/attachment.php for vb2.0.3

help please


Admin 12-16-2001 11:30 AM

That line isn't in <2.2.0 versions, so just ignore it and put it in the line above. :)

VirtueTech 12-16-2001 06:48 PM

The line above? sorry ...I don't mean to be a pest...can you give me an anchor. thanks.

Admin 12-17-2001 05:30 AM

Of course, what was I thinking. :)

Here:
Code:

  $idname='attachment';
  eval("standarderror(\"".gettemplate('error_invalidid')."\");");
  exit;
}


VirtueTech 12-17-2001 05:39 AM

That code is not in attachment.php

I do see something of that sort in functions.php

Remember I am using 2.0.3 and trying to get through step2 for attachment.php

I don't have this line:

updateuserforum($getforuminfo['forumid']);

Admin 12-17-2001 06:09 AM

Weird.
Try this one:
Code:

if ($noshutdownfunc) {

dotagious 12-22-2001 09:01 PM

Four things:

1. Great hack

2. Anyway to make it open up in the same window

OR

3. Open up in a seperate window, but then open up the next image in that same new window.

4. Anyway to upgrade this to show a thumbnail image, that when clicked, opened to a full size in the same manner as this hack allows?

OH! and does this work on 2.2.1 ?

Linus 12-27-2001 05:40 PM

need help ... this din work for me ...
instead it caused the attachment not to appear at all ...
I checked and redid the changes as necessary
using v2.2.1

Lucky 12-31-2001 02:01 PM

Good hack!

5861king 01-01-2002 02:15 AM

I have a problem for some reason the varible $newpagelink is not being parsed through onto the postbit_attachment

i have this in my admin/functions.php
$newpagelink='&fullpage=1';

and in my template postbit_attachment i have the following code

<p><normalfont><img src="{imagesfolder}/attach/$post[attachmentextension].gif" width="16" height="16" border="0" alt="">Attachment: <a href="attachment.php?s=$session[sessionhash]&postid=$post[postid]$newpagelink" target="_blank">$post[filename]</a></normalfont><br>
<smallfont>This has been downloaded $post[counter] time(s).</smallfont></p>

so to work around this i have done this in my postbit_attachment
$post[postid]&fullpage=1

which works fine, but want i want to know is why the $newpagelink varible does not work.

Thanks for your help in advance!!!!

Admin 01-01-2002 12:19 PM

Are you sure you uploaded the new functions.php?

5861king 01-01-2002 02:28 PM

yep!!, 100% sure, it has been uploaded. :)

Admin 01-01-2002 02:59 PM

Umm, I really don't know what to tell you.
Are you sure you pasted it in the right place?

E-mail me your functions.php file and I'll take a look.

5861king 01-01-2002 06:29 PM

o.k. i have sent u part of my functions.php where u describe about puting in the varible in. let me know if u want all of my functions.php and i'll sent it 2 u.


Thanks Firefly for your help!!!! :)

Admin 01-02-2002 10:51 AM

Sorry pal, I can't find anything wrong with what you sent me. :(

5861king 01-03-2002 07:16 AM

o.k. No prolem, thanks for your help. At least the attachment viewer works. A excellent hack.

Tahnks for all your help FireFly :D

Scrub 01-07-2002 08:03 AM

For the people who can't get it working. This is what it should look like in the posbit_attachment template.

PHP Code:

<p><normalfont><img src="{imagesfolder}/attach/$post[attachmentextension].gif" width="16" height="16" border="0" alt="">Attachment: <a href="attachment.php?s=$session[sessionhash]&postid=$post[postid]=$newpagelinktarget="_blank">$post[filename]</a></normalfont><br>
<
smallfont>This has been downloaded $post[countertime(s).</smallfont></p

This should help clear up some confusion. Take out the target="_blank" if you want it to open in the same window. :)

WildWayz 01-07-2002 12:02 PM

Excellent work FireFly!

--James

mSoul01 01-07-2002 10:02 PM

wow.. another seemless install.. vB2.2.1 and vBP pr8..

much appreciated.. great job..

afterlab 01-12-2002 04:00 AM

I have had this hack installed awhile back but now whenever someone posts an attachment it gives me a "No Permission" page. And I checked over and over, in PHP files and templates and it has yet to see a problem. Although my first attachment DID work. It somehow worked and all the rest (new ones) don't work.

Any 411?

Linus 01-14-2002 12:14 PM

hack doesn't seem to work for me ... images still displayed on the post page ... any ideas ?

tweak 01-14-2002 06:27 PM

Just installed this works GREAT thanx

Erwin 01-14-2002 11:27 PM

Thanks. Easy. :)

afterlab 01-15-2002 04:26 AM

Quote:

Originally posted by afterlab
I have had this hack installed awhile back but now whenever someone posts an attachment it gives me a "No Permission" page. And I checked over and over, in PHP files and templates and it has yet to see a problem. Although my first attachment DID work. It somehow worked and all the rest (new ones) don't work.

Any 411?

Bump.

Linus 01-15-2002 02:08 PM

Is there no support being offered for this hack ? cos if there isn't I gotta remove what I've done ...

Xelation 01-20-2002 04:45 PM

Warning: Cannot add header information - headers already sent by (output started at /home/xelation/public_html/forum/admin/functions.php:2233) in /home/xelation/public_html/forum/admin/functions.php on line 1501


Does anyone know what would be the matter? I tried installing it twice now.... :confused: So can anyone tell me please?

Xelation 01-20-2002 04:54 PM

I dont have that problem anymore... Although now I don't know how to get my images in the viewer.... the images will go into the thread instead of the viewer... does anyone know how to fix this problem?

Admin 01-21-2002 08:03 AM

Turn off the option to show attachments in posts.

Xelation 01-21-2002 01:45 PM

nope, nope I was wrong, I still get this message when I go into the thread with the attached file.....

Warning: Cannot add header information - headers already sent by (output started at /home/xelation/public_html/forum/admin/functions.php:2233) in /home/xelation/public_html/forum/admin/functions.php on line 1501

anyone know what the problem is?

Shenlong 01-21-2002 02:44 PM

another great hack firefly!

Xelation 01-21-2002 09:12 PM

I'm still having this problem after a whole day of trying to get it fixed.... Can anyone help me please... I can't do anything else until I get this fixed... here is the problem....

Warning: Cannot add header information - headers already sent by (output started at /home/xelation/public_html/forum/admin/functions.php:2233) in /home/xelation/public_html/forum/admin/functions.php on line 1501

So can anyone help me please? Thank you.

Admin 01-22-2002 08:13 AM

Xelation, make sure you don't have any linefeeds or spaces after ?> at the end of functions.php.

Xelation 01-23-2002 03:57 PM

Hey chen, I am still having troubles with the attachment viewer... I installed it perfectly and it won't work, there's no errors, and I also turned off the option of viewing images in a thread... After all is said and done... I still just get a plan old white background with an image... do you know what would be the problem?

Xelation 01-23-2002 05:18 PM

Ah, found out my problem finally!!! Great hack! works awsome!!!

irn-bru 02-12-2002 11:42 PM

I had some problems with the installer so I hand hacked it myself
I see a few posts that it didnt install the hack or template to anything that was true in my case.

This might help you the hack worked for me when I hand hacked it.

mondaynightmike 02-15-2002 05:34 PM

wicked hack firefly thanks.

69-FLy-gUy 02-22-2002 06:54 AM

Mine shows it on the white background. what have i done wrong?


All times are GMT. The time now is 12:10 PM.

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.01409 seconds
  • Memory Usage 1,796KB
  • 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
  • (2)bbcode_php_printable
  • (2)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