- Posts: 17
- Thank you received: 2
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.
The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.
The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.
Question [Final version] 1Pixeout Player 2.3 - Kunena 1.6 integration complete
- marco.delpercio
-
- Offline
- Junior Member
-
Less
More
15 years 7 months ago - 15 years 7 months ago #61588
by marco.delpercio
Replied by marco.delpercio on topic [Solved] 1Pixeout Player - Kunena 1.6 integration
open components/com_kunena/lib/kunena.parser.php
at the beginning for example after hyperlink function on line 75 add the following code:
next make sure to replace line 522 in the following way:
replace this:
with this code:
Now when you upload an mp3 file and your Joomla has 1pixelout plugin and it is enabled... it will automatically display both download link and mp3 player with the correct path.
You don't need to specify a base directory in 1pixelout config yet you can change colors there
at the beginning for example after hyperlink function on line 75 add the following code:
Code:
function isMp3($fname) {
$ext = strtolower(substr($fname, strrpos($fname, '.') + 1));
if((stripos($mp3mimes,$mime) !== false) && ($ext === "mp3")) {
return true;
}
else {
return false;
}
}
function isAvailable1PixeloutPlugin() {
if(file_exists( JPATH_PLUGINS . DS . "content" . DS . "1pixeloutaudioplayer" )) {
if(JPluginHelper::isEnabled( 'content', '1pixeloutaudioplayer' )) {
return true;
}
}
return false;
}
next make sure to replace line 522 in the following way:
replace this:
Code:
$tag_new = "<div class=\"kmsgattach\"><h4>" . JText::_ ( 'COM_KUNENA_FILEATTACH' ) . "</h4>" . JText::_ ( 'COM_KUNENA_FILENAME' ) . " <a href='" . $link . "' target=\"_blank\" rel=\"nofollow\">" . $attachment->filename . "</a><br />" . JText::_ ( 'COM_KUNENA_FILESIZE' ) . ' ' . $attachment->size . "</div>";
with this code:
Code:
$tag_new = "<div class=\"kmsgattach\">";
$tag_new .= "<h4>" . JText::_ ( 'COM_KUNENA_FILEATTACH' ) . "</h4>" . JText::_ ( 'COM_KUNENA_FILENAME' ) . " <a href='" . $link . "' target=\"_blank\" rel=\"nofollow\">" . $attachment->filename . "</a><br />" . JText::_ ( 'COM_KUNENA_FILESIZE' ) . ' ' . $attachment->size;
if(KunenaBBCodeInterpreter::isMp3($attachment->filename) && KunenaBBCodeInterpreter::isAvailable1PixeloutPlugin()) {
$tag_new .= "<div>{audio autostart:no}".JURI::base() . $attachment->folder . "/" . $attachment->filename."{/audio}</div>";
}
$tag_new .= "</div>";
Now when you upload an mp3 file and your Joomla has 1pixelout plugin and it is enabled... it will automatically display both download link and mp3 player with the correct path.
You don't need to specify a base directory in 1pixelout config yet you can change colors there
Last edit: 15 years 7 months ago by marco.delpercio.
The topic has been locked.
15 years 7 months ago #61894
by darksoul
Replied by darksoul on topic [Solved] 1Pixeout Player - Kunena 1.6 integration
I was busy with school... i dont forgot you!:silly:
I wake up at 4.40 am and i come back home on 4-5 pm travelling by train..
Marco, did this hack is the same of the one you sent to me?
I wake up at 4.40 am and i come back home on 4-5 pm travelling by train..
Marco, did this hack is the same of the one you sent to me?
The topic has been locked.
- joomlauser
-
- Offline
- Senior Member
-
Less
More
- Posts: 111
- Thank you received: 5
15 years 7 months ago #62101
by joomlauser
Replied by joomlauser on topic [Solved] 1Pixeout Player - Kunena 1.6 integration
Hello. Thanks for your solution marco.delpercio, but it does not seems to work in Kunena 1.6 RC3
The topic has been locked.
- marco.delpercio
-
- Offline
- Junior Member
-
Less
More
- Posts: 17
- Thank you received: 2
15 years 7 months ago #62106
by marco.delpercio
Are you sure? Since I tested it both on my localhost environment and with darksoul on his website and it worked. Check your environment.
1) Is 1pixelout player plugin installed?
2) Is 1pixelout player plugin active?
3) Did you activate content plugin support in Kunena forum config?
4) Did you try an mp3 with a simpler filename (no spaces, unerscores, dashes...)?
5) Did you try with another mp3 file?
Replied by marco.delpercio on topic [Solved] 1Pixeout Player - Kunena 1.6 integration
Hello. Thanks for your solution marco.delpercio, but it does not seems to work in Kunena 1.6 RC3
Are you sure? Since I tested it both on my localhost environment and with darksoul on his website and it worked. Check your environment.
1) Is 1pixelout player plugin installed?
2) Is 1pixelout player plugin active?
3) Did you activate content plugin support in Kunena forum config?
4) Did you try an mp3 with a simpler filename (no spaces, unerscores, dashes...)?
5) Did you try with another mp3 file?
The topic has been locked.
- joomlauser
-
- Offline
- Senior Member
-
Less
More
- Posts: 111
- Thank you received: 5
15 years 7 months ago - 15 years 7 months ago #63049
by joomlauser
Replied by joomlauser on topic [Solved] 1Pixeout Player - Kunena 1.6 integration
OK I made a small investigation
1) Is 1pixelout player plugin installed? Yes I have pixelout v1.5.2
2) Is 1pixelout player plugin active? Yes
3) Did you activate content plugin support in Kunena forum config? Yes
4) Did you try an mp3 with a simpler filename (no spaces, unerscores, dashes...)? Yes
5) Did you try with another mp3 file? Yes
What can I say? I can upload my file. It is uploaded because it is attached to the post.
The patch to the sended file is:
www.test.mysite.pl/media/kunena/attachments/62/maluch.mp3
Below you will find screen after uploading
I do not get any error statement "except message was sent correctly"
I attach my phraser file after modification (find comments: joomlauser)
1) Is 1pixelout player plugin installed? Yes I have pixelout v1.5.2
2) Is 1pixelout player plugin active? Yes
3) Did you activate content plugin support in Kunena forum config? Yes
4) Did you try an mp3 with a simpler filename (no spaces, unerscores, dashes...)? Yes
5) Did you try with another mp3 file? Yes
What can I say? I can upload my file. It is uploaded because it is attached to the post.
The patch to the sended file is:
www.test.mysite.pl/media/kunena/attachments/62/maluch.mp3
Below you will find screen after uploading
I do not get any error statement "except message was sent correctly"
I attach my phraser file after modification (find comments: joomlauser)
Last edit: 15 years 7 months ago by joomlauser.
The topic has been locked.
15 years 7 months ago - 15 years 7 months ago #63075
by darksoul
Replied by darksoul on topic [Solved] 1Pixeout Player - Kunena 1.6 integration
Last edit: 15 years 7 months ago by darksoul.
The topic has been locked.
Time to create page: 0.309 seconds