Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • piolon Friend
    #162781

    How can I customize my code, so users can attach other extensions like *.gp3, .*gp4, *.gp5 in JA comments?

    E-mail received from JA Staff
    <blockquote>Thank you for contacting JoomlArt!

    As of now, if you want to add those file types, you have to customize JA Comment code. Once you buy membership, we will provide you with technical support for the customization.

    Regards,
    Don
    Ticket ID: CRD-109-44796
    </blockquote>

    khoand Friend
    #386405

    Hi,
    You replace this code from <joomla url>administratorcomponentscom_jacommentviewscommentstmpldefault.php file


    $attachFileType = $jacconfig['comments']->get('attach_file_type', "doc,docx,pdf,txt,zip,rar,jpg,bmp,gif,png");

    with


    $attachFileType = $jacconfig['comments']->get('attach_file_type', "doc,docx,pdf,txt,zip,rar,jpg,bmp,gif,png,gp3,gp4,gp5");

    – Replace this code from <joomla url>administratorcomponentscom_jacommentviewsconfigstmplcomments.php file


    $listAllowUploads = array('doc', 'docx', 'pdf', 'txt','zip','rar','jpg','bmp','gif','png');

    with


    $listAllowUploads = array('doc', 'docx', 'pdf', 'txt','zip','rar','jpg','bmp','gif','png','gp3','gp4','gp5');

    piolon Friend
    #386415

    I have change the code on my computer. But when i try to upload the file with filezilla an error occurs

    Commando: DELE default.php
    Answer: 550 default.php: Permission denied

    Any idea what i have to change?

    Phill Moderator
    #386421

    That means you do not have the correct permissions to edit that file on your server. If you can change the chmod of the files then do so. If not you will probably need to speak to your host to get the ownership changed.

    When you upload a file through Joomla it may be put under a different ownership depending on your server setup. You can sometimes change that through your cpanel or other back and but on many shared hosts you cannot. I am certain however that your host can help you here.

    piolon Friend
    #386711

    Something very strange happens.. I can delete the two files from the folder without any problem. So I thing I have al the permissions. (I also can change the CMOD)
    If a upload comments.php en default.php in the right folders the size file doesn’t match. The date is correct but the filesize change automatically. What could be the problem?

    If i download the file on my computer I see the changes I made in the code but Support file type:: doc,docx,pdf,txt,zip,rar,jpg,bmp,gif,png Only still appears and I can’t upload gp3, gp4, gp5

    I see there also a folder call ja comments backup. Could that map cause the problem?

    Phill Moderator
    #386934

    Please PM me your ftp account details and an admin logon (with all links and a link to this thread). I am still certain it is a permissions problem with you uploading the files via filezilla but I can check for you.

    Phill Moderator
    #386980

    OK, I’ve taken a look and your edits are correct. You had just not ticked the boxes in the JA Comment back end. I have ticked those for you but have not tested the uploading of those file types as I have no files to test.

    piolon Friend
    #387083

    Thx Phil, Idd forget to change my settings. :-[ Sorry
    But know a other problem occurs, if a push the attach-button in JA-message and select a files through browse button. The file disappear in 1 sec, so I can’t upload any file of any kind.

    The website show no files where selected. Hopefully you could help me with that issue.

    piolon Friend
    #390017

    Could anyone help me please. Still waiting for some help 🙂

    Problem: If I press the attach-button in JA-comments I can select a files through the browsebutton, but the file disappear in 1 sec, so I can’t upload any file of any kind.

    I only can upload text without a attachment.

    What should I change? Is it a JAcomment setting or a Joomla setting.

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 3 voices, and was last updated by  piolon 13 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum