1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Related Contents 1.5.2

Show Related Contents on threads, based on XenForo 1.5 Tags, Unlimited Content Types.

  1. Tan Tran

    Tan Tran Well-Known Member

    Tan Tran submitted a new resource:

    Related Contents - Show Related Contents on threads, based on XenForo 1.5 Tags, Unlimited Content Types supported.

    Read more about this resource...
     
    THLove and Varma like this.
  2. Tan Tran

    Tan Tran Well-Known Member

  3. Varma

    Varma Member

    Cool addon - can we modify it or style it.. like regular related topic like an image along with title and some expert of the thread?
     
  4. Tan Tran

    Tan Tran Well-Known Member

    This addon is designed to handle any addon that supports tags. With each content type, it will automatically use search_result template of that content type. You can style it but that will affect the search results page.

    For an example, you can modify these templates:
    Thread - search_result_thread
    Resource - search_result_resource
    Showcase - nflj_showcase_search_result
    Media - xengallery_search_result_media
     
    Last edited: Sep 11, 2015
    THLove and Varma like this.
  5. Maxxamillion

    Maxxamillion Active Member

    Would it be possible to be able to exclude certain tags from showing in the thread suggestions? and exclude certain forum topics from showing?
     
  6. Tan Tran

    Tan Tran Well-Known Member

    Yes, that is possible to exclude certain tags, i'm gonna add this feature in the next update.
    But about excluding thread ids/content ids, that's good one too but it's quite complicated to implement. This addon uses a single query to fetch related content ids from database and those ids are from different content types. I will see what i can do.

    Thanks.
     
    Maxxamillion likes this.
  7. Tan Tran

    Tan Tran Well-Known Member

    Gemma likes this.
  8. DerTobi75

    DerTobi75 Active Member

    When viewing a thread I get the following error:

    An exception occurred: Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND visible = 1 ORDER BY content_date DESC LIMIT 5' at line 5 in /xxxxxxx/xxxx/sites/cheerforum.de/www.cheerforum.de/library/Zend/Db/Statement/Mysqli.php on line 77

    1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
    2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
    3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
    4. Zend_Db_Adapter_Abstract->query() in RelatedContents/Model/Tag.php at line 70
    5. RelatedContents_Model_Tag->getContentIdsByTagIds() in RelatedContents/ViewPublic/ThreadView.php at line 32
    6. RelatedContents_ViewPublic_ThreadView->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 227
    7. XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 71
    8. XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 601
    9. XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
    10. XenForo_FrontController->run() in /xxxxxxx/xxxx/sites/cheerforum.de/www.cheerforum.de/index.php at line 13
     
  9. Tan Tran

    Tan Tran Well-Known Member

    @DerTobi75 , you should choose at least one content type in Admin Cp -> Options -> Content Tagging.
     
    DerTobi75 likes this.
  10. DerTobi75

    DerTobi75 Active Member

    Yes, that was the problem. By default no content type is chosen!
     
  11. Tan Tran

    Tan Tran Well-Known Member

    Tan Tran updated Related Contents with a new update entry:

    Version 1.5.1: Faster

    Read the rest of this update entry...
     
  12. DerTobi75

    DerTobi75 Active Member

    Great update!

    How can I get a complete output of $result.content?

    Just a little bit confused right now, because I am new to "coding" or template editing in xenforo!
     
  13. Brogan

    Brogan XenForo Moderator Staff Member

    If you mean in the template, use {xen:helper dump, $result.content} or {xen:helper dump, $result} to see the entire array.
     
    Tan Tran and DerTobi75 like this.
  14. DerTobi75

    DerTobi75 Active Member

    Code:
    <a href="{xen:link threads, $thread}">{xen:helper snippet, $post.message, 150, {xen:array 'term={$search.search_query}', 'emClass=highlight', 'stripQuotes=1'}}</a>
    This does not show the message of the post for me ;-(
     
  15. Tan Tran

    Tan Tran Well-Known Member

    Ahh, i can see that. I will update the addon.
     
  16. Tan Tran

    Tan Tran Well-Known Member

  17. THLove

    THLove Member

    @Tan Tran I install your addon and it's error. I install addon [bd] Widget Framework and add widget but it's not show thread in my forum ...Help me

    [​IMG]
     
  18. Tan Tran

    Tan Tran Well-Known Member

    Hey @THLove , i can see that "Content Types" option is empty, there are no content types there. Each content type must have tags to be shown up in that field. Try to add some tags to your contents.
     
  19. THLove

    THLove Member

    Thanks @Tan Tran reply my quesstion. Your addon working with tags and it's use tags show on thread with random tags
     
  20. DerTobi75

    DerTobi75 Active Member

    Is it possible to show "Related Content" below other Content Type then just threads?!
     

Share This Page