Similar Threads

Similar Threads 5.3

No permission to download
You need PHP version >= 4.2.0 for mb_split()
What version do you have?

PHP 5.5.10. But I already resolved the problem with a tip from Andy. PHP has to be compiled with the option mb_string. I was using php without it.
 
For the people just like me who want to show similar threads only for guests under the last post of a thread just change the template andy_similarthreads_below_quick_reply

and then change the first line into:

Code:
<xen:if is="{$similarThreads} AND {$showBelowQuickReply} AND !{$visitor.user_id}">

This will make it only visible for guests (because you want to reduce the bounce rate for traffic coming from search engines but this is to much information for your regulars).
 
@AndyB any chance of you adding a forum whitelist instead of blacklist, ie: only in these forum IDs. I'll happily throw you a few bucks to do so.
 
@md_5 you can change it yourself also for now.

Add to the template in the first line into: AND in_array({$thread.node_id}, array(y, z)) where y and z are the nodes id's
Code:
<xen:if is="{$similarThreads} AND {$showBelowQuickReply} AND in_array({$thread.node_id}, array(y, z))">

You need to change the correct template corresponding, if you use the position under the quick reply it's andy_similarthreads_below_quick_reply
For more info see the conditional statements. If you need help and/or want to throw some bucks to me, just start a conversation with me :)
 
After update from 2.8 to 2.9 i become lots of this in my error log:

PHP:
Fehlerinformation
Zend_Db_Statement_Mysqli_Exception: 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 ') ORDER BY xf_thread.thread_id DESC LIMIT 5' at line 11 - library/Zend/Db/Statement/Mysqli.php:77
Generiert durch: Unbekanntes Benutzerkonto, Vor einem Moment
PHP:
#0 /var/www/vhosts/domain.de/httpdocs/xf/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('?????SELECT xf_...')
#1 /var/www/vhosts/domain.de/httpdocs/xf/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '?????SELECT xf_...')
#2 /var/www/vhosts/domain.de/httpdocs/xf/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('?????SELECT xf_...')
#3 /var/www/vhosts/domain.de/httpdocs/xf/library/Zend/Db/Adapter/Abstract.php(734): Zend_Db_Adapter_Abstract->query('?????SELECT xf_...', Array)
#4 /var/www/vhosts/domain.de/httpdocs/xf/library/Andy/SimilarThreads/Model.php(150): Zend_Db_Adapter_Abstract->fetchAll('?????SELECT xf_...')
#5 /var/www/vhosts/domain.de/httpdocs/xf/library/Andy/SimilarThreads/ControllerPublic/Thread.php(114): Andy_SimilarThreads_Model->getThreads('Umfrage', 'Kosten', 65, 36105)
#6 /var/www/vhosts/domain.de/httpdocs/xf/library/XenForo/FrontController.php(347): Andy_SimilarThreads_ControllerPublic_Thread->actionIndex()
#7 /var/www/vhosts/domain.de/httpdocs/xf/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /var/www/vhosts/domain.de/httpdocs/xf/index.php(13): XenForo_FrontController->run()
#9 {main}
PHP:
array(3) {
  ["url"] => string(83) "http://www.domain.de/xf/threads/umfrage-kosten-f%C3%BCr-den-teich.36105/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

When i disable the addon its all ok and bevor (with 2.8) also all ok. I have the addon updatet and not new installed - is this the problem?
 
I am getting the same error as Barbossa and I have php version 5. Any idea?

Fatal error: Call to undefined function mb_split() in /home/freefrag/public_html/library/Andy/SimilarThreads/ControllerPublic/Thread.php on line 75
 
Hi, the add-on just manages to show the similar threads under the quick reply field - not under the first post. Does anyone have a similar problem and solution? Thanks!
 
Top Bottom