-
AuthorPosts
-
April 14, 2011 at 11:22 am #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 Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 14, 2011 at 5:59 pm #386405Hi,
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');1 user says Thank You to khoand for this useful post
April 14, 2011 at 6:55 pm #386415I 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 deniedAny idea what i have to change?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
April 14, 2011 at 7:24 pm #386421That 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.
1 user says Thank You to Phill for this useful post
April 17, 2011 at 7:18 am #386711Something 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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
April 18, 2011 at 1:58 pm #386934Please 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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
April 18, 2011 at 7:20 pm #386980OK, 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.
April 19, 2011 at 11:52 am #387083Thx 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.
May 5, 2011 at 7:10 pm #390017Could 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.
-
AuthorPosts
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