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.

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

More
15 years 3 months ago - 15 years 3 months ago #79111 by joomlauser
Hello, I installed the last update of Kunena, replaced kunena.parser.php and check if everything is going well - but is not, I mean I can't see the player. Does anybody has similar issue? Can somebody confirm that?
Last edit: 15 years 3 months ago by joomlauser.
The topic has been locked.
More
15 years 3 months ago #79755 by darksoul
Any chanche for a kunena 1.6.2 update.
For version 1.6.1 i used the hacked kunena.parser.php also if it was changed.
Please release and update!
The topic has been locked.
More
15 years 3 months ago #80064 by noozster
Hi,

I downloaded kunena 1.6.2 last night, and always wanted an mp3 player on my file uploads so thought I'd have a look to see if it was in the new update.

I stumbled across this thread and after following the instructions I noticed the kunena.parser.php file had changed in the updated kunena. There is actually a comment by the developer in there stating they've increased security to stop the end user from changing a number and accessing other user's files.

I'm no joomla developer nor a php coder but I fixed the file and attached it so you just need to replace your kunena.parser.php file with the one attached (or look to see what the changes are and make them in your own).

Here's what I changed.

In the IsMp3 function I removed $mime and the other $mime variable (I deleted it so I can't remember its name mimetype or something) because they are empty at runtime making the IsMp3 function always return false. It now only checks to see if there is actually an mp3 extension on the end of the fname variable.

Near the bottom of the "case 'file'" select statement is different in 1.6.2 and they use $fileurl variable instead of $attachment->fname so I added the necessary code and modified t to suit the new references to the filename.

Works perfectly on mine but because I'm not a programmer or joomla dev I'd wait until someone who knows what they are doing approves what I've done before you use it.

By the way, the plugin works excellent. Well worth 3USD.


File Attachment:

File Name: kunena.par...1-06.zip
File Size:14.55 KB



Best Regards,
N
The topic has been locked.
More
15 years 3 months ago - 15 years 3 months ago #80066 by darksoul
For me does not work!
Works if using my old hack version!!!!!!
Now works but i'm fearing on problems now for the old parser im using
Last edit: 15 years 3 months ago by darksoul.
The topic has been locked.
More
15 years 3 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 3 months ago - 15 years 3 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 3 months ago by marco.delpercio.
The following user(s) said Thank You: mene
The topic has been locked.
Time to create page: 0.324 seconds