MyBB Community Forums

Full Version: Latest Posts On Index Sidebar [New Build 03-24-17]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13
i seemed to have encountered a random issue where the sorting is off, would anyone know how to fix this by chance?

also realized that i put 'How many posts to show: 8', but it shows 9 posts.

[Image: mlAEUof.png]

here is my index_sidebar_post:
<tr>
	<td style="background-color: #252525;border-top:1px solid #202020" class="sidebartext"><img src="{$latestpostav}" style="width: 35px; height: 35px; border-radius:50%;"></td>
	<td style="background-color: #252525;border-top:1px solid #202020" class="sidebartext"><a href="{$mybb->settings['bburl']}/showthread.php?tid={$tid}">{$postname}</a><br>{$lastposterlink}<span style="color:#898989;font-size:12px;">{$lang->posttime}</span></td>
</tr>

and my index_sidebar:
<div class="responsivehide" style="background-color: #252525 !important;border-radius: calc(var(--default-border-radius) * 2 / 4);border: 1px solid #1d1d1d;">
<div style="display: flex;align-items: center;padding: 12px;background-color: #272727;border-radius: 1em;">
<img class="welcomeavatar" src="{$mybb->user['avatar']}" onerror="this.src='https://ogusers.com/images/ogusers/ogusers_default.png';" style="width: 40px;height: 40px;border-radius: 50px;">
<div style="margin-left: 12px;"><div style="font-size: 17px;font-weight: 600;color: #7b7b7b;"><a href="/kuya" style="font-size: 17px;font-weight: 600;color: #7b7b7b !important;">{$mybb->user['username']}</a></div>
<div style="font-size: 12px;color: #5a5a5a;font-weight: 600;">{$mybb->user['usertitle']}</div>
</div>
<div class="welcomebox" style="margin-left: auto;font-weight: 600;color: #9c8542;background-color: #2d2d2d;border-radius: 2px;display: flex;box-shadow: 0px 0px 8px #232323;align-items: center;">
<i class="fa fa-coins user-icon" style="font-size: 17px;color: #9c8542;margin-right: 5px;padding: 6px 25px 6px 10px;text-align: center;background-color: #2f2f2f;"></i>
<span style="padding: 0px 6px;"><a href="/newpoints.php" style="color:#9c8542">{$mybb->user['newpoints']}</a></span>
</div>
</div>
<div style="display: flex;padding: 14px 12px 12px;text-align: center;">
<div style="flex: 1;"><strong style="font-size: 17px;font-weight: 600 !important;"><a style="color:green" href="reputation.php?uid={$mybb->user['uid']}">{$mybb->user['reputation']}</a></strong>
<div style="font-size: 12px;font-weight: 600;margin-top: 5px;color: #5a5a5a;">Reputation</div>
</div>
<div style="flex: 1;"><strong style="font-size: 17px;color: rgb(137,137,137);font-weight: 600 !important;">{$mybb->user['tyl_unumrcvtyls_fmt']}</strong><div style="font-size: 12px;font-weight: 600;margin-top: 5px;color: #5a5a5a;">Likes</div></div>
</div>
<div style="display: flex;padding: 12px;text-align: center;">
<div style="display: flex;flex: 1;background-color: #272727;border-radius: 2px;box-shadow: 0px 0px 8px #1f1f1f;font-weight: 600;align-items: center;font-size: 12px;color: #5a5a5a;"><i class="fas fa-globe user-icon" style="font-size: 16px;color: #5a5a5a;padding: 10px;width: auto;background-color: #2d2d2d;border-radius: 2px;"></i>&nbsp; Users Online<span class="ml-auto" style="color: green;margin-left: 12px;float:right;"><strong style="margin-right: auto;">6{$lang->online_note}</strong><br></span></div></div>
</div>
<br>
<table class="tborderside" border="0" cellpadding="5" cellspacing="0" style="width:100%;">
<thead>
<tr>
<td class="thead" colspan="3" style="border-bottom: none; background-color: rgb(37, 37, 37) !important; color: #fff;background-image: none !important;font-weight: 600 !important;font-size: 16.3px !important;">
<center>Latest Activity</center>
</td>
</tr>
</thead>
<colgroup>
       <col span="1" style="width: 17%;">
       <col span="1" style="width: 85%;">
    </colgroup>
    <tbody>
	<tr>
	 <td style="background-color: #252525;border-top:1px solid #202020"><img src="{$latestpostav}" style="width: 35px; height: 35px; border-radius:50%;"></td>
	 <td style="background-color: #252525;border-top:1px solid #202020"><a href="{$mybb->settings['bburl']}/showthread.php?tid={$tid}">{$postname}</a><br>{$lastposterlink}{$lang->posttime}</td>
	</tr>
	{$postslist}
    </tbody>
</table>

edit: realized my own mistake regarding it showing 9 posts instead of 8, it's because it included an extra row in the sidebar. but i'm still seeing an older post above a newer one.
This may be the wrong place? I want the latest posts on my index, but not on the side. I can't find a new plugin. I found an older one and it works, but it's not giving me any options in the admin to select which threads I want the posts to display, and I don't know PHP enough to fix that option. Any help?
(2021-03-06, 03:28 AM)fromdecember Wrote: [ -> ]This may be the wrong place?  I want the latest posts on my index, but not on the side.  I can't find a new plugin.  I found an older one and it works, but it's not giving me any options in the admin to select which threads I want the posts to display, and I don't know PHP enough to fix that option.  Any help?

You could try mine. https://community.mybb.com/thread-159857.html
How can I make thread prefixes show on the sidebar?
(2015-10-27, 01:09 PM)SvePu Wrote: [ -> ]I rebuild this plugin, the old one has some security and coding issues.

Try the new version:

Uninstall the old version, replace all old plugin files on server and reinstall plugin in ACP

Hi there i just use your version and it broke my template Dark Emerald since after uninstalled, the layout was change and i had to revert to latest snapshot on my server to fix my theme.

Using the original author version didn't brake my theme so please just revise the change you made so this does not happen to other people, my board user's are mad at me because they lost one day of posting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13