Further Kunena Migration WOES...

Category: CjForum 8 months ago
Like it on Facebook, Tweet it or share this topic on other bookmarking websites.
  • Re: Further Kunena Migration WOES...

    by » 7 months ago


    The issue happened because the attachments are always looked in media/cjforum/attachments folder but the old kunena attachments are never moved to this folder. In fact the same old kunena attachments folder is referenced in the xxx_cjforum_attachments table.

    So the code fix needed in the file components/com_cjforum/layouts/LAYOUTNAME/attachments.php

    find

    <a href="/<?php echo CF_ATTACHMENTS_URI.'/'.$attachment->filename?>" class="thumbnail gallery" rel="nofollow">
      <img src="/<?php echo CF_ATTACHMENTS_URI.'/'.$attachment->filename?>" alt="<?php echo $attachment->filename;?>">
    </a>

    change it to

    <a href="/<?php echo $attachment->folder.'/'.$attachment->filename?>" class="thumbnail gallery" rel="nofollow">
      <img src="/<?php echo $attachment->folder.'/'.$attachment->filename?>" alt="<?php echo $attachment->filename;?>">
    </a>

    Please let me know the feedback after doing this change.


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    CjFitCjForum | Polls | Answers | Quizzes | Quotes | Surveys | GPS Tools | CjBlog


  • Re: Further Kunena Migration WOES...

    by » 7 months ago


    no change... 


You do not have permissions to reply to this topic.

Powered by CjForum

Site Search

Subscribe Newsletter