Keyword

Found a way to add .mp3 files!

More
14 years 10 months ago #75091 by hleen
Found a way to add .mp3 files! was created by hleen
Hi all,
When the allVideos plugin is installed, you can add mp3 support to K2 (version 2.1) by changing a single file:
In
administrator\components\com_k2\models\items.php
change line 380
to
if ($videotype == 'flv' || $videotype == 'swf' || $videotype == 'wmv' || $videotype == 'mov' || $videotype == 'mp4' || $videotype == '3gp' || $videotype == 'divx' || $videotype == 'mp3') {

Be aware that you have to set the video path in AllVideos to the path of K2:
media/k2/videos

Success!

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #75092 by Alyanna Allah
Replied by Alyanna Allah on topic Found a way to add .mp3 files!
Thank you so much for this information! Very helpful!

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #75093 by Shea Dawson
Replied by Shea Dawson on topic Found a way to add .mp3 files!
Fantastic. This is a great alternative to attaching mp3 files with the attachments option of the k2 item... which seems to upload any file but mp3s. bug?

Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #75094 by FeSys
Replied by FeSys on topic Found a way to add .mp3 files!
WAWO..
I love you "hleen"
I am asking for this method long time ago Here.. Thank you so much.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #75095 by FeSys
Replied by FeSys on topic Found a way to add .mp3 files!
Just one more thing "hleen"
Have you tied to make the same above hack work for downloads too
I did play the mp3 files remotely and via upload too using your method above.
Thanks again.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #75096 by hleen
Replied by hleen on topic Found a way to add .mp3 files!
Hi Followeyes,

I do not see a problem with upload/download. I can upload an mp3 as attachment, it is the shown in the item and I can download it. Of course, as attachment you do not get the mp3 player in the item. Could you explain what you mean?

hleen

Followeyes said:Just one more thing "hleen" Have you tied to make the same above hack work for downloads too
I did play the mp3 files remotely and via upload too using your method above.
Thanks again.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #75097 by Manny Santos
Replied by Manny Santos on topic Found a way to add .mp3 files!
Edited the file but still got errors " Not a valid video file" when choosing the "Upload video" method on the video tab.
I guess some other file.php which deals with uploading probably has to changed to allow mp3 files as a valid upload.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #75098 by FeSys
Replied by FeSys on topic Found a way to add .mp3 files!
Thank you "hleen" for your reply..
I mean that, you make it easy with your nice hack above to put any mp3 file to work remotely too (not only as uploaded method).. hence, would be nice to add little hack(s) to allow those remotely attached mp3 files to be downloaded as play at the same time. This will create a super multimedia for video/Audio with downloading features too.
Thanks

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #75099 by hleen
Replied by hleen on topic Found a way to add .mp3 files!
Hi Manukat,

you might need to add the following settings to your global site config:
Legal Extensions (File Types) - add ,mp3,MP3
Legal Image Extensions (File Types) - add ,mp3 (just to be sure :-)
Check MIME Types; set to No (just to be sure)
Legal MIME Types: add ,audio/mp3

Have luck!

Manukat said:Edited the file but still got errors " Not a valid video file" when choosing the "Upload video" method on the video tab. I guess some other file.php which deals with uploading probably has to changed to allow mp3 files as a valid upload.

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #75100 by Stéphane Herby
Replied by Stéphane Herby on topic Found a way to add .mp3 files!
hi hleen,
I have made all modification you have mentionned.
Except the fact that in K2 2.2, there's two lines to change (400 AND 604) - I have also change configuration as mentionned above, but I still have this "Invalid video file" when I try to upload a MP3 file. Any suggestion about that ?

Joomla 1.5.15
K2 2.2
AllVideo 3.1

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum