Kunena 7.0.8 Released

The Kunena team has announce the arrival of Kunena 7.0.8 [K 7.0.8] 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 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Solved Kunena BBCode parse no [img size=

More
13 years 11 months ago - 13 years 11 months ago #131956 by sozzled

Niels85 wrote: And copy the tables into the new cms.

That may not work.

J! 1.0 user tables are different to J! 1.5 user tables and J! 1.5 user tables are different to J! 2.5 user tables. You need to "convert" J! 1.5 user tables to J! 2.5 user tables. Use jUpgrade to do the J! 1.5 -> J 2.5 migration and then copy the J! 2.5 user tables over. We discussed this in [Merged topic] How to move my Kunena forum from one site to another (among many other places on this forum).
Last edit: 13 years 11 months ago by sozzled.

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

More
13 years 11 months ago - 13 years 11 months ago #131962 by Niels85

sozzled wrote: Use jUpgrade to do the J! 1.5 -> J 2.5 migration and then copy the J! 2.5 user tables over.


i update the forum not merge two forum to one.

i upload the forum on my server

the message #6014 is an message from fireboard the and the message #6080 i from today in the updated forum.
Last edit: 13 years 11 months ago by Niels85.

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

More
13 years 11 months ago #131965 by sozzled
Even though the topic [Merged topic] How to move my Kunena forum from one site to another does mention (in passing) merging one forum into another - and that's a very tricky operation - the main focus of the topic is about what things you need to copy to move a forum (on one site) to another site.

I have discussed this situation many times before. For example, you may like to read I want to migrate my forum to Kunena ...

It is beyond the scope of a self-help forum to go into all the specific details involved and the task is not a trivial one. Indeed, it can take anywhere from two hours to several days to complete this task.

When we recently migrated this website from J! 1.5 to J! 2.5, the task involved several weeks of intense planning and decision-making, testing and verification of the process before we actually performed the task. The task was not without problems and we had to abandon one attempt before we found a workaround. When we actually did the work, this site was offline for 4 hours while 3 or 4 of us were actively engaged, behind the scenes, working through it. This task is still not 100% completed (even now) but we've made a lot of changes since we began this "migrate-from-J! 1.5-to-J! 2.5" project nearly 2 years ago.

The only things I can do for you, in the context of a community-driven, self-help forum, is to point you to where we've had similar discussions that may help answer a few questions. On the other hand, if you would like some professional, one-on-one, support and you are happy to pay for an expert to assist you, I can put you in touch with people I know who can probably do this job for you. Would that help?

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

More
13 years 11 months ago #131972 by Niels85
Thanks, i know what work it is.
I work with phpstrom/xdebug/profiler and i search for a solution.
When i have found a solution i will tell it here.

Crazy, it doesn't work when the message has a attachment. if i change the mesid in #_kunena_attachments the picture is displayed. Sorry for my poor english

or when i change the line in bbcode.php
Code:
- return "<div class=\"kmsgimage\">{$attachment->imagelink}</div>"; + return "<div class=\"kmsgimage\">{$attachment->_imagelink}</div>";

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

More
13 years 11 months ago - 13 years 11 months ago #131975 by Niels85
So i found the Problem.
Kunena check the message in
administrator/components/com_kunena/libraries/bbcode/bbcode.php line 1478
Code:
// Legacy attachments support (mostly used to remove image from attachments list), but also fixes broken links if (isset ( $bbcode->parent->attachments ) && strpos ( $fileurl, '/media/kunena/attachments/legacy/images/' )) { // Make sure that filename does not contain path or URL $filename = basename($fileurl); // Remove attachment from the attachments list and show it if it exists $attachments = &$bbcode->parent->attachments; $attachment = null; foreach ( $attachments as $att ) { if ($att->filename == $filename && $att->folder == 'media/kunena/attachments/legacy/images') { $attachment = $att; unset ( $attachments [$att->id] ); $bbcode->parent->inline_attachments [$attachment->id] = $attachment; return "<div class=\"kmsgimage\">{$attachment->imagelink}</div>"; } } // No match -- assume that we have normal img tag }
when the message has bbcode img what match with the attachment it will delete/unset the attachment and return a div with img tag from the attachment->imagelink.

But the object $attachment->imagelink doesn't exist. the name ist $attachment->_imagelink .
To see the $attachment array, you can print it out.
Code:
// Legacy attachments support (mostly used to remove image from attachments list), but also fixes broken links if (isset ( $bbcode->parent->attachments ) && strpos ( $fileurl, '/media/kunena/attachments/legacy/images/' )) { // Make sure that filename does not contain path or URL $filename = basename($fileurl); // Remove attachment from the attachments list and show it if it exists $attachments = &$bbcode->parent->attachments; $attachment = null; foreach ( $attachments as $att ) { if ($att->filename == $filename && $att->folder == 'media/kunena/attachments/legacy/images') { $attachment = $att; //PRINT THE ATTACHMENT return print_r($attachment); unset ( $attachments [$att->id] ); $bbcode->parent->inline_attachments [$attachment->id] = $attachment; return "<div class=\"kmsgimage\">{$attachment->imagelink}</div>"; } } // No match -- assume that we have normal img tag }

So you can comment out the unset and the return = Attachment and Image displayed
or you cann comment out the return = The image displayed normal with/without the lightbox and the attachment is unset
or you can change the $attachment->imagelink into $attachment->_imagelink = the image displayed but with a link direct to the image.
Last edit: 13 years 11 months ago by Niels85.

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

More
13 years 11 months ago #131976 by sozzled
Good for you. Perhaps your solution will help others.

A quick question: did you remember to copy the attached images from the old site and put them into the new site? Did you also put the attachments into the correct folders> Each user has their own folder for attachments.

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

Time to create page: 0.235 seconds