![]() |
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:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|