![]() |
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> |
can anyone help me with the current problem I stated above?
|
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) |
this works just fine, thanks :P
|
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 |
[high]* Crazy Mofo gives a polite bump :([/high]
|
Question...2.2.5 safe for install using the install script?
|
How can I get this to work with attachments in PMs?
|
Installed on 2.2.5, excellent addition to my forums, a noticeable amount of extra posts have occured!
|
Installed nicely in 2.2.5. Thank you.
|
What exactly does this hack do? (Isn't 2.2.6 like this?)
Just wondering :ermm: |
grate hack. i'm gonna hit install ;)
|
very cool hack, thx!
|
Thanks you very much for this hack.
|
Will this work with attachments posted before applying this hack?
|
Thank you. Works like a charm!! ;)
|
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! :) ) |
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 :) |
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? |
irn-bru, thanks for the 'hand hack' instructions, made it far easier for me to upgrade to 2.3.0. :D
|
Awesome hack! :D My buddies have been bugging me for this.
|
Anyone have any idea why the attachment would take so long to load?
|
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 Code:
cpheader("<title>vBulletin Attachment Viewer Installer / Uninstaller</title>"); |
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 Code:
cpheader("<title>vBulletin Attachment Viewer Installer / Uninstaller</title>"); |
will this work for 2.3.0 ?
|
Any chance some one can get this to work with vb 3.5???
|
How about an update for 3.6?
|
Will someone please update this hack for 3.6.4
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|