attachment code

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
burak
Posts: 23
Joined: Tue Dec 28, 2010 1:03 pm

attachment code

Post by burak »

Hi,

Would you advise which code/file triggers; to run file attachment button in admin panel during entry editing?

Thanks,
Burak
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: attachment code

Post by Thorsten »

Hi,

I don't exactly understand your question... sorry! What do you want to do?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
burak
Posts: 23
Joined: Tue Dec 28, 2010 1:03 pm

Re: attachment code

Post by burak »

Hi,

I have managed to use tinymce for non logged users. However, file attachment button and function is missing.
I am trying to copy the attachment button and its function in the admin entry editing window.
Which code contains its function in which file? I suspect it is admin/record.edit.php however I could not understand it yet...

Thanks,
Burak
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: attachment code

Post by Thorsten »

Hi,

it's in admin/footer.php

Do you use this phpMyFAQ installation in the internet?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
burak
Posts: 23
Joined: Tue Dec 28, 2010 1:03 pm

Re: attachment code

Post by burak »

No, it will be completely for local usage, there will not be access from internet.

I understand there would be security risks, anyone would upload any images, but it will be completely for local usage, therefore it should not be a problem...
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: attachment code

Post by Thorsten »

Hi,

ah, okay. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
burak
Posts: 23
Joined: Tue Dec 28, 2010 1:03 pm

Re: attachment code

Post by burak »

Hi Thorsten,

Well it is not the footer.php that I was looking for.
The code is in admin/record.edit.php and in admin/attachment.php , however, the problem is I can not get the code to the template/default/add.tpl.

Templates does not use if clause right? I am really stuck this time :(
I will be so happy , if you can give a hand here...
I just want to add it above the keywords section in template/default/add.tpl
The "Attach File" button and its function...

If you think it is too insecure you can send me p.m. in the forum...

Thanks,
Burak
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: attachment code

Post by Thorsten »

Hi,

sorry, I was wrong!

You cannot fix this issue currently because with the current implementation it is not possible to add an attachment during the creation of a FAQ. We're working on this issue for the 2.7 release but it'll be a bigger change.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply