Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3

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
13 years 3 months ago #41 by marco.delpercio
1pixelout author here

Could someone explain me what's going on please?
The topic has been locked.
More
13 years 3 months ago - 13 years 3 months ago #42 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: 13 years 3 months ago by marco.delpercio.
The following user(s) said Thank You: mene
The topic has been locked.
More
13 years 3 months ago #43 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
13 years 3 weeks ago - 13 years 3 weeks ago #44 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: 13 years 3 weeks ago by nguyenbetac.
The topic has been locked.
More
13 years 3 weeks ago #45 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
13 years 3 weeks ago #46 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.
More
13 years 3 weeks ago - 13 years 3 weeks ago #47 by nguyenbetac
Hi Marco

I got the 1pixel player plugin v2.2, installed, but it still doesn't work, Firebug shows
Code:
AudioPlayer.embed("onepixeloutaudioplayer_4d91cc1a91c94", {autostart:"no",loop:"no",animation:"yes",remaining:"yes",noinfo:"no",initialvolume:60,buffer:5,width:290,transparentpagebg:"yes",bg:"E5E5E5",leftbg:"CCCCCC",lefticon:"333333",voltrack:"F2F2F2",volslider:"666666",rightbg:"B4B4B4",rightbghover:"999999",righticon:"333333",righticonhover:"FFFFFF",loader:"009900",track:"FFFFFF",tracker:"DDDDDD",border:"CCCCCC",skip:"666666",text:"333333", soundFile:"www.opendrive.com/files/20113890_qTY64/B...hoVaEm_ThuPhuong.mp3"});

the sound file is wrong, it should be:
Code:
http://www.opendrive.com/files/20113890_qTY64/BienNoiNhoVaEm_ThuPhuong.mp3

It seems that there is a plugin somewhere mucking up the mp3 URL.
Where should I look at?
Please help
Last edit: 13 years 3 weeks ago by nguyenbetac.
The topic has been locked.
More
13 years 3 weeks ago #48 by marco.delpercio
Please give me a public URL to check or I cannot understand what's going on with your installation.

I also suggest to delete last posts and you contact me in private since this is a personal issue, the topic about kunena integration is complete and working by long time.
The topic has been locked.
More
13 years 3 weeks ago #49 by marco.delpercio
Just to let other users know it...

In some cases it seems that kunena is shortening mp3 urls putting "..." of course that causes mp3 playback failing because of "File not found"

I am not a kunena expert so I ask confirmation to more advanced users but maybe there's an option to avoid such behaviour. (I hope so)
Alternatively, try shortening the url by yourself (there're several ways to accomplish this)
The topic has been locked.
More
13 years 3 weeks ago #50 by checksum
Hello Marco,

Where can I download version 2.2 of the plugin? I only see 2.0 on your site.

Thanks
The topic has been locked.
Time to create page: 0.680 seconds