MyBB Community Forums

Full Version: Show similar posts like wordpress [Inside First Post Bottom]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

[Image: similarthreads.png]

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.
No sir, it didnt work, gave php error

I installed plugin from here http://mybbhacks.zingaburga.com/showthread.php?tid=464
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