Hello,
I want to show similar threads below the first post like in wordpress, at the bottom of first post and not below the editor, where it is usually is.
This is a screnshot somebody is doing it in vbulletin, so is it possible in mybb
Thankyou
First of all Install Template Conditionals Plugin:
http://community.mybb.com/thread-31860.html
Now go to: ACP > Templates > Your Theme's Templates > Showthread Templates > showthread > and find;
{$similarthreads}
and remove.
Within the same template find;
{$posts}
and add the following code just
after
that.
<if ({$postcounter} - 1) % {$mybb->settings['postsperpage']} == "0" then>
{$similarthreads}
</if>
Didn't tested but I'm sure it works.
What error it give ? Can you print out the error screen ?
Parse error: syntax error, unexpected ')' in /home/supernova/public_html/forum/showthread.php(1222) : eval()'d code on line 40
Sorry, there was an issue of non-enclosing one of parenthesis
. Do the above edits again.
Parse error: syntax error, unexpected ')' in /home/supernova/public_html/forum/showthread.php(1222) : eval()'d code on line 40
it is giving error again
Are you sure you've Installed the plugin ?
Make sure end of template comments are enabled in the server & optimisation settings in the ACP - I always used to have problems when that setting was off for some reason (or it may be the other way round...)
Yes tried either way, still giving error
Parse error: syntax error, unexpected '{' in /home/supernova/public_html/forum/showthread.php(1222) : eval()'d code on line 38