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)

Xelation 02-23-2002 12:05 AM

On my friends board there is something wrong with the userid or something... I found this problem... when you go to view An attachment, it says..... Posted By: but then some random user name goes here. So does anyone have any clues of whats going on here? here is what the attachmentview template looks like.

<html>
<head>
<title>$bbtitle - Attachment Viewer</title>
$headinclude</head><body>$header<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr><td><normalfont><b>$navbar > Attachment Viewer</b>
</normalfont></td></tr></table><!-- /breadcrumb --><br>
<table cellpadding="0" border="0" cellspacing="1" width="{contenttablewidth}" align="center"><tr>
<td nowrap valign="top" align="center"><normalfont>
<img src="attachment.php?s=$session[sessionhash]&attachmentid=$attachmentid">
<br>
<br>Posted by <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$attachuserid">$attachusern ame</a>
</normalfont><br><smallfont><a href="attachment.php?s=$session[sessionhash]&attachmentid=$attachmentid">
<normalfont>[</normalfont>image alone<normalfont>]</normalfont></a> <a href="$nav_url">
<normalfont>[</normalfont>back<normalfont>
</normalfont></a><br><br><br> <center>
$bbtitle takes no responsibility for the content of messages
<br>and or images linked to or displayed on $bbtitle. All uploaded<br>
material remains the property of the user who uploaded it.
</center></smallfont></td></tr></table>$footer</body></html>

Xelation 02-23-2002 06:52 PM

can anyone help me with the current problem I stated above?

neal 02-24-2002 02:46 AM

Thanks Firefly.. another good one.

Working demo at http://www.teenagedweb.com/attachmen...266&fullpage=1 (You don't need to be registered to view attachments)

Stylez 03-04-2002 09:36 PM

this works just fine, thanks :P

Crazy Mofo 05-01-2002 02:26 AM

i alos have that random name thing happening can some1 help pls? is there a fix?

also for the ppl who are just getting the white nackround Makre sure its the admin/functions you are changing and re-uploading too not root/functions

Crazy Mofo 05-01-2002 04:25 PM

[high]* Crazy Mofo gives a polite bump :([/high]

David Bott 05-01-2002 04:44 PM

Question...2.2.5 safe for install using the install script?

Dark Odin 05-01-2002 07:08 PM

How can I get this to work with attachments in PMs?

FleaBag 05-18-2002 02:13 PM

Installed on 2.2.5, excellent addition to my forums, a noticeable amount of extra posts have occured!

David Bott 05-18-2002 03:41 PM

Installed nicely in 2.2.5. Thank you.

Gary King 07-25-2002 07:06 PM

What exactly does this hack do? (Isn't 2.2.6 like this?)

Just wondering :ermm:

Elmer 10-12-2002 06:53 PM

grate hack. i'm gonna hit install ;)

dev 11-17-2002 11:29 AM

very cool hack, thx!

Dynamic One 11-20-2002 01:54 PM

Thanks you very much for this hack.

Bison 11-21-2002 03:10 AM

Will this work with attachments posted before applying this hack?

Kars10 12-31-2002 07:16 PM

Thank you. Works like a charm!! ;)

imageconstrux 01-12-2003 05:16 PM

If you don't allow attachments on your server (members must post them to their own 'free space' accounts), isn't this the default? This is how mine already works for 2.2.9.

Or is there something I'm missing that makes this more useful than the original? (I'm very new to this so that is entirely possible! :) )

Dark Blaze 01-22-2003 10:43 AM

I think you are correct imageconstrux about your speculation :)

But knowing FireFly and his knowledge of PHP, this is most certainly useful.. Btw, taking under consideration what this hack does, I will tell you this. The hack is made to instead of showing the attachment on the actual thread if it is an image, it provides you a link where you click on it and opens you a page where you can see it in full size :)

Hope this info helps :)

speedway 02-09-2003 10:43 AM

I have a strange problem under IE only. Randomly when lauching the attachment viewer, any images on the viewer page will be replaced by the attachment. Occiasionally a whole page will be replaced - for example, I sit with 1 browser open with the main site, and the other one with whos online. Randomly the online page will have the attachment displayed while still have the online.php line in the address bar.

I am attaching an image here of the result of the problem.

My users are experiencing this one as well. Mozilla if fine by the way.

Can anyone help?

FleaBag 03-31-2003 11:48 PM

irn-bru, thanks for the 'hand hack' instructions, made it far easier for me to upgrade to 2.3.0. :D

Synicide 04-24-2003 04:49 PM

Awesome hack! :D My buddies have been bugging me for this.

Okiewan 04-25-2003 03:54 PM

Anyone have any idea why the attachment would take so long to load?

Splitfyre 06-22-2003 07:24 AM

Doesn't want to install for me. I get the following when I run the install php file...

Code:

Fatal error: Call to undefined function: cpheader() in install_attachviewer.php on line 5
Looking at Line 5:

Code:

cpheader("<title>vBulletin Attachment Viewer Installer / Uninstaller</title>");
How do I get it to install?

Splitfyre 06-22-2003 07:25 AM

Doesn't want to install for me. I get the following when I run the install php file...

Code:

Fatal error: Call to undefined function: cpheader() in install_attachviewer.php on line 5
Looking at Line 5:

Code:

cpheader("<title>vBulletin Attachment Viewer Installer / Uninstaller</title>");
How do I get it to install?

Gutty 07-25-2004 04:36 AM

will this work for 2.3.0 ?

tiger 10-30-2005 05:21 PM

Any chance some one can get this to work with vb 3.5???

tiger 01-23-2007 10:23 PM

How about an update for 3.6?

tiger 02-28-2007 12:01 AM

Will someone please update this hack for 3.6.4

tiger 05-26-2007 12:25 AM

Come on someone has to have something like this.


All times are GMT. The time now is 09:04 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.01367 seconds
  • Memory Usage 1,770KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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