Hey guys! It has been awhile since I have used Mybb or have done any coding for that matter. My question involved this screenshot:
http://puu.sh/o4gwj/93281139d9.jpg
Basically it is not displaying posts when I click on a thread, but it does show the thread title.
I remembering having this problem in the past but don't remember how to solve it. I think it has something to do with the theme because when I change it to mybb default the issue isn't there.
Thanks!
Most probably in your showthread template, {$post} is not present.
Find this code in your showthread template
{$thread['subject']}</strong>
</div>
</td></tr>
and replace it with
{$thread['subject']}</strong>
</div>
</td></tr>
<tr><td id="posts_container">
<div id="posts">
{$posts}
</div>
</td></tr>
It should work.
Regards
WallBB
(2016-04-03, 08:14 AM)WallBB Wrote: [ -> ]Most probably in your showthread template, {$post} is not present.
Find this code in your showthread template
{$thread['subject']}</strong>
</div>
</td></tr>
and replace it with
{$thread['subject']}</strong>
</div>
</td></tr>
<tr><td id="posts_container">
<div id="posts">
{$posts}
</div>
</td></tr>
It should work.
Regards
WallBB
Unfortunately this did not work. Here is the full code of the Show Thread template though with the edits you suggested.
<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
var quickrestore_confirm = "{$lang->quickrestore_confirm}";
var allowEditReason = "{$mybb->settings['alloweditreason']}";
lang.save_changes = "{$lang->save_changes}";
lang.cancel_edit = "{$lang->cancel_edit}";
lang.quick_edit_update_error = "{$lang->quick_edit_update_error}";
lang.quick_reply_post_error = "{$lang->quick_reply_post_error}";
lang.quick_delete_error = "{$lang->quick_delete_error}";
lang.quick_delete_success = "{$lang->quick_delete_success}";
lang.quick_delete_thread_success = "{$lang->quick_delete_thread_success}";
lang.quick_restore_error = "{$lang->quick_restore_error}";
lang.quick_restore_success = "{$lang->quick_restore_success}";
lang.editreason = "{$lang->postbit_editreason}";
// -->
</script>
<!-- jeditable (jquery) -->
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1800"></script>
<script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1800"></script>
</head>
<body id="forums">
{$header}
{$threadnotesbox}
{$pollbox}
<div class="float_left">
{$multipage}
</div>
<div class="float_right">
{$newthread}{$newreply}
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder tfixed clear">
<tr>
<td class="thead">
<div class="float_right">
<span class="smalltext"><strong><a href="javascript:;" id="thread_modes">{$lang->thread_modes}</a>{$threadnoteslink}</strong></span>
</div>
<div>
<strong>{$thread['threadprefix']}{$thread['subject']}</strong>
</div>
</td>
</tr>
<tr><td id="posts_container">
<div id="posts">
{$posts}
</div>
</td></tr>
<tr><td id="posts_container">
<div id="posts">
{$posts}
</div>
</td></tr>
<tr>
<td class="tfoot">
<div class="float_right">{$search_thread}</div>
<div style="margin-top: 4px; margin-left: 5px;" class="float_left">
<span class="smalltext"><strong>Share Thread: </strong></span>
<span class="socialicons">
<a title="Digg" href="http://digg.com/submit?url={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target="_blank">
<i style="font-size: 16px;" class="fa fa-digg fa-fw"></i> </a>
<a title="Delicious" href="http://del.icio.us/post?url={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}&title={$thread['subject']}" target="_blank"> <i style="font-size: 16px;" class="fa fa-delicious fa-fw"></i> </a>
<a title="Facebook" href="http://www.facebook.com/share.php?u={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target="_blank"> <i style="font-size: 16px;" class="fa fa-facebook fa-fw"></i> </a>
<a title="Twitter" href="http://twitter.com/home?status={$thread['subject']} - {$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target="_blank"> <i style="font-size: 16px;" class="fa fa-twitter fa-fw"></i> </a>
<a title="StumbleUpon" href="http://www.stumbleupon.com/submit?url={$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}" target="_blank"> <i style="font-size: 16px;" class="fa fa-stumbleupon fa-fw"></i> </a>
</span>
</div>
</td>
</tr>
</table>
<div class="float_left">
{$multipage}
</div>
<div style="padding-top: 4px;" class="float_right">
{$newthread}{$newreply}
</div>
<br class="clear" />
{$quickreply}
{$threadexbox}
{$similarthreads}
<br />
<div class="float_left">
<ul class="thread_tools">
<li class="printable"><i style="font-size: 14px;" class="fa fa-print fa-fw"></i> <a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
{$sendthread}
<li class="subscription_{$add_remove_subscription}"><i style="font-size: 14px;" class="fa fa-check-circle-o fa-fw"></i> <a href="usercp2.php?action={$add_remove_subscription}subscription&tid={$tid}&my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
{$addpoll}
</ul>
</div>
<div class="float_right" style="text-align: right;">
{$moderationoptions}
{$forumjump}
</div>
<br class="clear" />
{$usersbrowsing}
{$footer}
<div id="thread_modes_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="showthread.php?mode=linear&tid={$tid}&pid={$pid}#pid{$pid}" class="popup_item">{$lang->linear}</a></div><div class="popup_item_container"><a href="showthread.php?mode=threaded&tid={$tid}&pid={$pid}#pid{$pid}" class="popup_item">{$lang->threaded}</a></div></div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
$("#thread_modes").popupMenu();
}
// -->
</script>
<script type="text/javascript">
$(".author_avatar img").error(function () {
$(this).unbind("error").closest('.author_avatar').remove();
});
</script>
</body>
</html>
^ what is your forum url & which theme actually you are using ?
Oh wait I have a theory, is it possible it is not working as this theme I am using was made for an older version on mybb?
Edit: I am using a modified version of the revolution theme by iAndrew
Here is the URL -snip-
remove above added code and switch to
linear mode of the posts
admin panel >>
configuration (
Settings) >>
Show Thread Options >>
Usenet Style Thread View
--> select
No and save the settings
user control panel also has related option
user control panel >>
edit options >>
Thread View Options -->
Thread View Mode
--> select
Linear Mode and update your options
see also
related guidance
(2016-04-03, 04:57 PM).m. Wrote: [ -> ]remove above added code and switch to linear mode of the posts
admin panel >> configuration (Settings) >> Show Thread Options >> Usenet Style Thread View
--> select No and save the settings
user control panel also has related option
user control panel >> edit options >> Thread View Options --> Thread View Mode
--> select Linear Mode and update your options
see also related guidance
Thank you very much for your help! Combined with this I got it working for all new users! To get it working for my user I changed the Thread View Options and enabled classic mode if anyone is curious.