MyBB Community Forums

Full Version: "Last post by" doesn't show up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed "LightAvatars" and after that I installed "Last poster avatar on forumdisplay and index", but didn't like the style of neither of them so I uninstalled both plugins. After that, I realized the name of the last poster didn't show up:

[Image: v5uv08C.jpg]

The name of the user should be there, but there isn't. Nevertheless, the author of the post/message does appear in the sidebox in "latest threads":

[Image: EUheGhi.jpg]

I'm using NetPen Theme btw.

Any idea of what's the problem? Thanks in advance.
what is your forum url
can you post forumbit_depth2_forum_lastpost template's content of NetPen theme in php code tags

[templates guidance]
My forum is www.peskingsedition.com

This is how forumbit_depth2_forum_lastpost looks like:

[Image: LZf6av3.jpg]

Well, I used the "go back to original" function and now the name of the author does appear, but I also reverted to original these three templates (I know, I'm a complete idiot):

[Image: FEyHg8u.jpg]

And now this is how my forum looks like:

[Image: jXCnPgV.jpg]

Now three colums are missing but the author of the post is there at least  Confused
you can replace the content of the template with :
<div class="col-md-3 col-sm-2 hidden-xs pull-right" style="text-align: right;">
<span class="smalltext" style="width: 100%;">
<a class="tt" href="{$lastpost_link}" title="{$full_lastpost_subject}"><strong>{$lastpost_subject}</strong></a>
<br />{$lastpost_date}<br />{$lang->by} {$lastpost_profilelink}</span>
</div> 
<span class="visible-xs" style="font-size: 13px;"><a class="label label-info member_label" href="{$lastpost_link}" style="float: left;font-size: 11px;color:#fff;">Last Post:</a>&nbsp;{$lastpost_date} <i class="fa fa-arrow-circle-right last-post-icon"></i></span>
Just to be sure, the forumbit_depth2_forum_lastpost template?
^ yes, it is for forumbit_depth2_forum_lastpost template
Sadly there are no changes in the forum after pasting that code, index still looks like this:

[Image: N3Cu0w7.jpg]

Well actually there is a slight change but the colums are still wrong :/

The rest of the forum is perfect though
custom theme's templates backup is not stored in the database
when custom theme templates are reverted they get the original content of MyBB's Stock theme.

forumbit_depth1_cat template
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder box-shadow-bottom">
<thead>
<tr>
<td class="thead-dark{$expthead}" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="tt expander" alt="{$expaltext}" title="{$expaltext}" /></div> 
<div style="display: inline-block;">
<strong><a style="text-transform:uppercase;" href="{$forum_url}">{$forum['name']}</a></strong><br />
<span class="desc pull-left">{$forum['description']}</span>
</div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">

{$sub_forums}
</tbody>
</table>
<br />

forumbit_depth1_forum_lastpost template
<div class="col-md-3 col-sm-2 hidden-xs" style="text-align: right;">
<span class="smalltext" style="width: 100%;">
<a class="tt" href="{$lastpost_link}" title="{$full_lastpost_subject}"><strong>{$lastpost_subject}</strong></a>
<br />{$lastpost_date}<br />{$lang->by} {$lastpost_profilelink}</span>
</div> 
<span class="visible-xs" style="font-size: 13px;color: rgb(119, 119, 119);"><a href="{$lastpost_link}" style="float: left;color: rgb(119, 119, 119);">Last Post:</a>&nbsp;{$lastpost_date} <i class="fa fa-arrow-circle-right last-post-icon"></i></span>
(2017-05-21, 02:11 AM).m. Wrote: [ -> ]custom theme's templates backup is not stored in the database
when custom theme templates are reverted they get the original content of MyBB's Stock theme.
Didn't know that, I'll take it into account from now on.
I copy-pasted that code and worked perfectly, the forum structure went back to normal. Thanks a lot.