Keyword

Found a way to add .mp3 files!

More
14 years 7 months ago #75101 by hleen
Replied by hleen on topic Found a way to add .mp3 files!
Thanks Lance, I did not have time to look into the matter. Also no time to think about the question on remote files, sorry...

Lance said:I think I found a solution... In addition to the steps listed above, edit this file:
administrator\components\com_k2\models\item.php

Change line 433 from this:
$validExtensions = array('flv', 'swf', 'wmv', 'mov', 'mp4', '3gp', 'avi', 'divx');

to this:
$validExtensions = array('flv', 'swf', 'wmv', 'mov', 'mp4', '3gp', 'mp3', 'avi', 'divx');

and change line 478 from this:
if ($videotype == 'flv' || $videotype == 'swf' || $videotype == 'wmv' || $videotype == 'mov' || $videotype == 'mp4' || $videotype == '3gp' || $videotype == 'divx') {

to this:
if ($videotype == 'flv' || $videotype == 'swf' || $videotype == 'wmv' || $videotype == 'mov' || $videotype == 'mp4' || $videotype == '3gp' || $videotype == 'mp3' || $videotype == 'divx') {

I hope this helps everyone!

Lance


Stéphane Herby said: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.

More
14 years 7 months ago #75102 by FidelGonzales
Replied by FidelGonzales on topic Found a way to add .mp3 files!
Does this mean, though, that since you are using the K2 Video Tab, you cannot add audio and video in the same post in the same tab-related auto-magic way? I have a weekly blog where we post an audio and video version.

I would think it might be wise to add another audio tab. Thanks.

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

More
14 years 1 week ago #75103 by Jaime Steele
Replied by Jaime Steele on topic Found a way to add .mp3 files!
Hey guys - just wondering if anyone has got this working on K2 2.3?

Many thanks

jaime

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

More
13 years 11 months ago #75104 by odam fm
Replied by odam fm on topic Found a way to add .mp3 files!
checked, this hack continue working on v2.4

why not in the core mates?

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

More
13 years 9 months ago #75105 by LeroanZ
Replied by LeroanZ on topic Found a way to add .mp3 files!
this codes don't exist in my item.php file...

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

More
13 years 8 months ago #75106 by Brian Teeman
Replied by Brian Teeman on topic Found a way to add .mp3 files!
You also have to edit 

administrator\components\com_k2\models\item.php and that the line numbers have changed in later releases of k2

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

More
13 years 7 months ago #75107 by Farid
Replied by Farid on topic Found a way to add .mp3 files!
I urgently need to add mp3 files via "Browse server/use remote video"..
can anybody help me?!
I've done all the hacks above but still I can't see mp3 files in editor

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

More
13 years 7 months ago #75108 by odam fm
Replied by odam fm on topic Found a way to add .mp3 files!
You are not going to see mp3 files, you can upload only 1 file per item

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


Powered by Kunena Forum