@panayot
Related Threads - display similar threads
https://community.mybb.com/thread-93395.html
I could not run this plugin in this theme.Can you help.
The plugin adds this code to the theme
<tr id="relatedThreadsRow" style="display:none;"><td class="trow2" valign="top"><strong>{$lang->relatedThreadsTitle}</strong></td><td class="trow2" id="relatedThreads">{$relatedThreads}</td></tr>
works fine in default theme
![[Image: attachment.php?aid=32580]](https://camo.mybb.com/892d952b4b02c672c1c440f3fbda14504e6f082c/68747470733a2f2f636f6d6d756e6974792e6d7962622e636f6d2f6174746163686d656e742e7068703f6169643d3332353830)
BootBB does not use tables, you need edit newthread template and replace the above plugin code with something like this:
<div class="trow1 rowbit" id="relatedThreadsRow" style="display:none;">
<div class="formbit_label col-sm-2 strong">{$lang->relatedThreadsTitle}</div>
<div class="formbit_field col-sm-10" id="relatedThreads">{$relatedThreads}</div>
</div>
Hope it works, I have not tested it.
It worked now.
The side is empty as in the picture.
![[Image: fbeSze.png]](https://camo.mybb.com/122be06aad8ca962ec04e709b500b48f1a937d7a/68747470733a2f2f692e726573696d79756b6c652e78797a2f666265537a652e706e67)
Maybe you did not insert the code in the correct place. Could you show me your newthread template from line 20 to line 50
Thank you for your help
I solved the problem.
It was great to make a setting in the file of the plugin.(Google translate)
jscript/relatedThreads.js
Find;
display: function(request)
{
if (request.responseText != "")
{
$('#relatedThreadsRow').css("display", "table-row");
$('#relatedThreads').html(request.responseText);
}
else
{
$('#relatedThreadsRow').css("display", "none");
$('#relatedThreads').html("");
}
}
};
change with this;
display: function(request)
{
if (request.responseText != "")
{
$('#relatedThreadsRow').css("display", "");
$('#relatedThreads').html(request.responseText);
}
else
{
$('#relatedThreadsRow').css("display", "none");
$('#relatedThreads').html("");
}
}
};
Hello Sir
first thank you so much for this amazing theme
i have two problems for my theme :
1- there is a problem with post new or reply , it didn't work such as this picture
[
attachment=42633]
2- how i can add new button to the panel1 to be as yours check this picture please
[
attachment=42634]
i am using mybb 1.8.15
thanks in advance
^
1] browse to
BootBB theme properties through
themes section of
forum admin panel
forum admin panel >>
Templates & Styles >>
Themes >>
BootBB
-->
scroll down for
theme properties -->
Editor style
change editor style to another one & save theme properties.
check if the issue resolves.
2] replied at your related thread [
Link]
Version of BootBB needs to match version of MyBB.
1.8.15 is so old that I do not even know which version of BootBB will run with it. When downloading a build of BootBB, it says in the description which version of MyBB should be used.
buttons should be made with following code:
<a href="{$mybb->settings['bburl']}/usercp.php" class="btn btn-xs btn-success" style="color: #fff;" data-toggle="tooltip" data-placement="bottom" title="some title"><i class="fa fa-user"></i><span class="hidden-xs"> some text</span></a>
to change the icon, you can choose from
https://fontawesome.com/v4.7.0/icons/ and replace:
<i class="fa fa-user">
with the new code.
Background color of button is determined by:
btn-success
Here are the possibilities, but they are for the newer version of Bootstrap, so some colors may not be available in the theme.
https://getbootstrap.com/docs/4.0/components/buttons/
(2020-03-04, 03:53 PM).m. Wrote: [ -> ]^
1] browse to BootBB theme properties through themes section of forum admin panel
forum admin panel >> Templates & Styles >> Themes >> BootBB
--> scroll down for theme properties --> Editor style
change editor style to another one & save theme properties.
check if the issue resolves.
2] replied at your related thread [Link]
Hi sir
thank you so much for your help
it didn't work
See my post above.
You need to use BootBB 2.5 if your version of MyBB is so old. I believe this will fix the editor problem.