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)

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


All times are GMT. The time now is 10:14 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.01337 seconds
  • Memory Usage 1,736KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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