Kunena 6.4.13 Released

The Kunena team has announce the arrival of Kunena 6.4.13 [6.4.13] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.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 6.0
Hint: This version is primarily intended to facilitate an upgrade if Joomla was first updated to version 6.1 before Kunena was up to dated.

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.

Question [Final version] 1Pixeout Player 2.3 - Kunena 1.6 integration complete

More
15 years 6 months ago #80082 by marco.delpercio
1pixelout author here

Could someone explain me what's going on please?
The topic has been locked.
More
15 years 6 months ago - 15 years 6 months ago #80090 by marco.delpercio
Hi

For what have I seen the hack fix logic hasn't changed... even variable names haven't changed... only line numbers have changed because of new kunena.parser version. I attach here the tested solution with latest kunena (1.6.2) but as I repeat... nothing has changed... I just wrote some minor changes to get a cleaner version of isMp3 function.

open components/com_kunena/lib/kunena.parser.php and add the following functions anywhere into the KunenaBBCodeInterpreter class... for example at line 102
Code:
function isMp3($fname) { $path_parts = pathinfo($fname); $ext = strtolower($path_parts['extension']); if($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; }

a little down at line approx. 621
Note: line 621 becomes 621 AFTER that you have added the 2 functions over here

look where you see the following piece of code:
Code:
if (is_object ( $attachment ) && is_file(JPATH_ROOT . "/{$attachment->folder}/{$attachment->filename}")) { $this->parent->inline_attachments[$attachment->id] = $attachment; $link = JURI::base () . "{$attachment->folder}/{$attachment->filename}"; if (empty($attachment->imagelink)) { $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' ) . ' ' .number_format(intval($attachment->size)/1024,0,'',',').' KB'. '</div>'; } else { $tag_new = "<div class=\"kmsgimage\">{$attachment->imagelink}</div>"; } } else { $tag_new = '<div class="kmsgattach"><h4>' . JText::sprintf ( 'COM_KUNENA_ATTACHMENT_DELETED', kunena_htmlspecialchars ($between) ) . '</h4></div>'; }

once you locate it... replace this line:
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' ) . ' ' .number_format(intval($attachment->size)/1024,0,'',',').' KB'. '</div>';

with the following 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' ) . ' ' . number_format(intval($attachment->size)/1024,0,'',',').' KB'; if(KunenaBBCodeInterpreter::isMp3($attachment->filename) && KunenaBBCodeInterpreter::isAvailable1PixeloutPlugin()) { $tag_new .= "<div>{audio autostart:no}".JURI::base() . $attachment->folder . "/" . $attachment->filename."{/audio}</div>"; } $tag_new .= "</div>";

I tested it a bit and it works...now before saying "ohhh it doesn't work for me" :-) check the following:
1) Is 1pixelout player plugin installed and activated? Check your Joomla Plugins list
2) Is Kunena plugin execution enabled? Components -> Kunena forum -> Configuration -> Frontend -> Joomla plugin support
3) Is kunena enabled to upload mp3 files? Check Components -> Kunena forum -> Configuration -> Upload
4) Are you sure your hosting is running PHP 5?
5) Are you sure you have no javascript errors preventing 1pixelout plugin to work properly?
6) Is your mp3 file successfully uploaded as attachment into media/kunena/attachments/<userID>/ ?

Hope it helps...anyway we cannot keep hacking each version. Kunena developers could simply let this hack into the core...after all it won't affects users who haven't 1pixelout player plugin.

Marco Del Percio
Last edit: 15 years 6 months ago by marco.delpercio.
The following user(s) said Thank You: mene
The topic has been locked.
More
15 years 6 months ago #80514 by darksoul
Works fine!
It has ever worked. But the problem for me was to add the code in the new parser.php
I suggest all community to donate and use 1pixelout mp3 player because work very good.
I never found a working mp3 player automated when i was using phpbb. Now this for kunena is a very good thing.
Kunena make always better with is solid community.
The topic has been locked.
More
15 years 3 months ago - 15 years 3 months ago #90658 by nguyenbetac
Hi everybody

Does this work with Kunena 1.6.3.

I am using Agora, but got problem with mp3 player, and looking for an alternative.
I am testing Kunena 1.6.3 in Joomla 1.5.22 with 1pixel player 1.5.2.
I apply the "hack" as instructed. This is the posting:
Code:
{audio}http://www.opendrive.com/files/20113890_qTY64/BienNoiNhoVaEm_ThuPhuong.mp3{/audio}
I see the player, but when I try to play it says "error opening file". This is source by Firebug:
Code:
<object id="audioplayer1" width="290" height="24" data="http://amnhac.fm/plugins/content/1pixelout/player.swf" type="application/x-shockwave-flash"> <param value="http://amnhac.fm/plugins/content/1pixelout/player.swf" name="movie"> <param rel="nofollow" target="_blank" biennoinhovaem_thuphuong.mp3"="" 20113890_qty64="" files="" www.opendrive.com="" http:="" value="bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&loop=no&playerID=1&soundFile=<a href=" name="FlashVars"> www.opendrive.com/files/20113890_qTY64/B...hoVaEm_ThuPhuong.mp3" /&gt; <param value="high" name="quality"> <param value="false" name="menu"> <param value="transparent" name="wmode"> </object>

Do I need 1pixel player 2.x to make it works?

Thanks
Last edit: 15 years 3 months ago by nguyenbetac.
The topic has been locked.
More
15 years 3 months ago #90661 by marco.delpercio
Yes the hack is intended for 1PixeloutPlayer 2.x... the 1.5.2 version is now obsolete...
The topic has been locked.
More
15 years 3 months ago #90697 by nguyenbetac
Thanks Marco
You did not mention version of 1pixelout player plugin in your checklist question number 1. I just go through all 5 pages to find this mentioned in one or two posts!
Anyway, I'll get the 1pixelout player plugin version 2.x and try it out.

Regards
N.
The topic has been locked.
Time to create page: 0.277 seconds