Page 1 of 1

Attachments for Admins Fix

Posted: Mon Feb 01, 2010 8:18 pm
by jrewolinski
/*************************************
Title:
Version: 2.1
Author:
Demo:
Download:
Website:

Short description: Admin's can't access attachments


*************************************/

For some reason, when logged in as an admin. I can't open any of the attachments to the KB articles. If I'm logged out, they open up fine. Problem is, some of my private articles have attachments. I don't rember this happening before, so I'm not sure what might have changed. I've only done a few software updates to the Ubuntu install on this set.

The attachment link, is trying to find the download_attachment.php file in the admin directory though. And that file doesn't exist.
example attachment link:
http://mydomain.com/hdesk/admin/downloa ... p?kb_att=6

Actually I believe I just fixed it. The following line, needs to be modified in the admin/knowledgebase_private.php file.

Code: Select all

echo '<img src="../img/clip.png" width="16" height="16" alt="'.$att_name.'" style="align:text-bottom" /> <a href="download_attachment.php?kb_att='.$att_id.'" rel="nofollow">'.$att_name.'</a><br />';
Just needed to add a

Code: Select all

../
in front of the download_attachment.php

Posted: Tue Feb 02, 2010 4:21 pm
by Klemen
This was a small bug in the initial release (missing "../" as you already found out), but has been corrected months ago.