![]() |
I can't find that in 2.0.3 either.
Any ideas? |
The hack seemed simple enough.. :D but it looks like nothing changed (it just opens attachments like it used to.)
|
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!
|
a polite bump
Quote:
|
That line isn't in <2.2.0 versions, so just ignore it and put it in the line above. :)
|
The line above? sorry ...I don't mean to be a pest...can you give me an anchor. thanks.
|
Of course, what was I thinking. :)
Here: Code:
$idname='attachment'; |
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']); |
Weird.
Try this one: Code:
if ($noshutdownfunc) { |
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 ? |
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 |
Good hack!
|
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!!!! |
Are you sure you uploaded the new functions.php?
|
yep!!, 100% sure, it has been uploaded. :)
|
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. |
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!!!! :) |
Sorry pal, I can't find anything wrong with what you sent me. :(
|
o.k. No prolem, thanks for your help. At least the attachment viewer works. A excellent hack.
Tahnks for all your help FireFly :D |
For the people who can't get it working. This is what it should look like in the posbit_attachment template.
PHP Code:
|
Excellent work FireFly!
--James |
wow.. another seemless install.. vB2.2.1 and vBP pr8..
much appreciated.. great job.. |
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? |
hack doesn't seem to work for me ... images still displayed on the post page ... any ideas ?
|
Just installed this works GREAT thanx
|
Thanks. Easy. :)
|
Quote:
|
Is there no support being offered for this hack ? cos if there isn't I gotta remove what I've done ...
|
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? |
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?
|
Turn off the option to show attachments in posts.
|
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? |
another great hack firefly!
|
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. |
Xelation, make sure you don't have any linefeeds or spaces after ?> at the end of functions.php.
|
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?
|
Ah, found out my problem finally!!! Great hack! works awsome!!!
|
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. |
wicked hack firefly thanks.
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|