vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   I'm trying to create a very basic attachment viewer, but... (https://vborg.vbsupport.ru/showthread.php?t=51758)

Gutspiller 04-18-2003 03:41 AM

I'm trying to create a very basic attachment viewer, but...
 
I can't get it to work.

My postbit_attachmentimage looks like this:

Code:

<p><smallfont>$post[username] has attached this image:</smallfont><br>
<A HREF="http://www.theforumz.com/forumz/attachment_viewer.php"><IMG SRC="attachment.php?s=$session[sessionhash]&postid=$post[postid]" BORDER="0"></a>

and the attachment_viewer.php looks like this:

Code:

<? require("attachment.php"); ?><HTML>
<HEAD>
<TITLE>TheForumz.com</TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000" BACKGROUND="http://www.TheForumz.com/images/forum_background.gif">
<DIV ALIGN="CENTER"><? include("http://www.theforumz.com/includes/attachment_viewer_top_banner.htm"); ?><BR><BR><IMG SRC="attachment.php?s=$session[sessionhash]&postid=$post[postid]" BORDER="0"></DIV>
</BODY>
</HTML>

What else do I need to do to get it to show the attachment when people click on the attachment in the thread?

Can somebody please help me?

DigitalDesktops 04-18-2003 03:50 AM

so you want to put all of the attachments people have attached into one page?

Gutspiller 04-18-2003 04:40 AM

Quote:

Today at 09:50 PM DigitalDesktops said this in Post #2
so you want to put all of the attachments people have attached into one page?
No I want to display whatever attachment they clicked on to display it on a new page that doesn't have a white background. I'm going to be reworking the code for the attachments that appear in threads so they are smaller versions and I want a full version to display on a new page.

colicab-d 04-18-2003 07:17 PM

hmm just out of interest how would i saw get the last 5 attachemnts from a s pecified forum on a page?

Gutspiller 04-19-2003 07:29 AM

Bump


All times are GMT. The time now is 11:49 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.00957 seconds
  • Memory Usage 1,720KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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