Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Related Threads Showing Up after Author Post

This discussion is related to the SphinxSearch addon.

Using Vanilla Version 2.2b1

The Related Threads Table is showing up after the author's post not at the end of the discussion. Any idea on how I can fix this?

Comments

  • mcu_hqmcu_hq yippie ki-yay Arizona, USA ✭✭✭

    Can you provide a quick screen shot? Also, what theme are you using?

    peregrineUnderDog
  • I'm using a custom theme, but this is what it looks like in Bitter Sweet

    UnderDog
  • peregrineperegrine MVP
    edited October 2015

    not sure if this is what you want... but the change works in vanilla 2.1

    2.2b1 is for testing by developers and not recommended for live forums per announcement.

    try changing around line 458 or so in class.sphinxsearch.plugin.php

    from

    public function DiscussionController_AfterDiscussion_Handler($Sender) {

    to

    public function DiscussionController_AfterComments_Handler($Sender) {

    if you want related threads after the last comment in the discussion.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    mcu_hqUnderDoghgtonight
  • mcu_hqmcu_hq yippie ki-yay Arizona, USA ✭✭✭

    Thanks once again @peregrine ! I figured it had something to do with where that hook is placed. Apparently it changed in v2.1 to go from AfterDiscussion to AfterComments?

    peregrineUnderDog
  • Thanks... That worked! Any way to get it to show after the comment form?

    UnderDog
  • peregrineperegrine MVP
    edited October 2015

    soulstrut said: Thanks... That worked! Any way to get it to show after the comment form?

    Glad it worked for you.

    there is not always a comment form. depends if user is logged in. something to keep in mind.

    perhaps footer.

    use eventi plugin and you can find all the events to trigger off of.
    then you can put related questions where you want and you can test yourself as well, takes all the question asking out of it.

    someone put it in a panel - that seemed like the best idea to me. you can search for that discussion I suppose if you like that idea.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    UnderDogmcu_hq
Sign In or Register to comment.