Similar threads

Similar threads [Paid] 8.5

No permission to buy ($35.00)
When I get down to mobile view, the horizontal lines disappear, happens with the default style also.

P3z0dAD.png
 
Hello AndyB,

I used to work with your add on in XF 1.5.9 with the option allowing to display similar threads below the first post.
It do not find this option in this new version.
Is it possible?

Thanks

David
 
Hi Andy,
Sorry to be instant, maybe I missed something but your support would be greatly appreciated.
Thanks
David
 
Hi @AndyB,

I'm using the latest version (4.6), and have a question regarding the Exclude Forums option. When I have "(None)" selected, it works fine:

192900


But when I exclude a forum, in this case Forum 2.1, and create a thread in an excluded forum, the similar threads block shows up but without any results. Shouldn't this empty block be hidden if it is excluded?

192899
 
  • Like
Reactions: CNK
Hey Andy,
Thanks for your addons. I do have a suggestion or question.. can you add a caching feature option to this addon?

  • Cache TTL (This renderer supports caching for improved performance, you can enter the number of seconds for time to live (TTL) value to suit your need. Leave it blank to let the renderer decide the TTL itself. Enter 0 will effectively disable caching.)
While displaying in a thread it adds a lot of queries so I think some caching will help.
 

Sent this in a PM but after the upgrade every new thread that pulls similar threads throws up a bunch of these in the server logs:

  • ErrorException: [E_WARNING] count(): Parameter must be an array or an object that implements Countable
  • src/addons/Andy/SimilarThreads/XF/Pub/Controller/Forum.php:69
  • Generated by: Nik
  • Feb 7, 2019 at 7:12 AM
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] cou...', '/home/nginx/dom...', 69, Array)
#1 src/addons/Andy/SimilarThreads/XF/Pub/Controller/Forum.php(69): count(NULL)
#2 src/XF/Mvc/Dispatcher.php(249): Andy\SimilarThreads\XF\Pub\Controller\Forum->actionSimilarThreads(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'Similarthreads', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(ThemeHouse\QAForums\XF\Pub\Controller\Forum), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
#6 src/XF.php(333): XF\App->run()
#7 index.php(13): XF::runApp('XF\\Pub\\App')
#8 {main}
Request state
array(4) {
["url"] => string(30) "/forums/news.30/similarthreads"
["referrer"] => string(61) "https://mysite.com/forums/news.30/post-thread"
["_GET"] => array(1) {
["/forums/news_30/similarthreads"] => string(0) ""
}
["_POST"] => array(2) {
["title"] => string(4) "coun"
["_xfToken"] => string(8) "****"
}
}
 
Suggestion: If "Same forum" is enabled/check, Forum similar block should be hidden also as it's useless.

Thanks!
 
Suggestion: Be sure to include a custom add-on icon selection in XF Options in the AdminCP.

It uses an icon by default, but will be nice to be customized to stand out from the others that have not customized them.

195073
 
After upgrading from version 4.9 -> 5.0

xf2.0.12
php5.6
elasticsearch 6

Code:
GuzzleHttp\Exception\ClientException: Client error response [url] http://http//127.0.0.1:9200/rpg/xf/_search [status code] 404 [reason phrase] Not Found src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:89

Трассировка стека

#0 src/vendor/guzzlehttp/guzzle/src/Subscriber/HttpError.php(33): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Message\Response))
#1 src/vendor/guzzlehttp/guzzle/src/Event/Emitter.php(108): GuzzleHttp\Subscriber\HttpError->onComplete(Object(GuzzleHttp\Event\CompleteEvent), 'complete')
#2 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(91): GuzzleHttp\Event\Emitter->emit('complete', Object(GuzzleHttp\Event\CompleteEvent))
#3 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(132): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#4 src/vendor/react/promise/src/FulfilledPromise.php(25): GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array)
#5 src/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
#6 src/vendor/guzzlehttp/guzzle/src/Message/FutureResponse.php(43): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
#7 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(135): GuzzleHttp\Message\FutureResponse::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
#8 src/vendor/guzzlehttp/guzzle/src/Client.php(165): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#9 src/addons/Andy/SimilarThreads/Repository/SimilarThreads.php(857): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
#10 src/addons/Andy/SimilarThreads/XF/Pub/Controller/Thread.php(60): Andy\SimilarThreads\Repository\SimilarThreads->getSimilarThreadsEnhanced(283, 12000, 'Квесты и...')
#11 src/addons/TickTackk/SignatureOnce/XF/Pub/Controller/Thread.php(24): Andy\SimilarThreads\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#12 src/addons/ThemeHouse/QAForums/XF/Pub/Controller/Thread.php(45): TickTackk\SignatureOnce\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#13 src/addons/SV/UserActivity/XF/Pub/Controller/Thread.php(15): ThemeHouse\QAForums\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#14 src/XF/Mvc/Dispatcher.php(249): SV\UserActivity\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'index', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(SV\UserActivity\XF\Pub\Controller\Thread), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
#18 src/XF.php(333): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}

UPD:
Error enabling the Enhanced Search option
2019-03-09 05_20_42-Greenshot.webp
 
Last edited:
Hi Andy,

thanks for the useful Add-on (y) Would it be possible to add an option to choose whether to display similar threads after posts and/or when starting a new thread? My background is: I want to show 20 similar threads after the thread but only 5 similar threads when starting a new thread to avoid that people need to scoll down so much especially on their smartphone.

Regards
 
Hello everyone,

We have an issue with an image of a member's avatar showing as sideways on a Similar Thread. It shows normally on normal threads. What could cause this.?
 

Attachments

  • Screen Shot 2019-02-14 at 3.28.50 PM.webp
    Screen Shot 2019-02-14 at 3.28.50 PM.webp
    34.6 KB · Views: 14
Top Bottom