MyBB Community Forums

Full Version: Announcements under latest posts sidebar?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all!!

URL forum: www.foropsicologia.es (Plugin it's not activated now).

I have installed the latest posts sidebar plugin (version 5.1.1 by Daniel M, I can't find the link now).

[Image: foro.png]

I want to move forum announcements and statistics (green in img) below the latest posts (red).

How can i do it?
I have investigated and have not found it.
Googling and forum searching either.

Thank you very much to anyone who helps me, greetings to all.
(2020-12-04, 04:44 PM)Kitxi Wrote: [ -> ]Hi all!!

URL forum: www.foropsicologia.es (Plugin it's not activated now).

I have installed the latest posts sidebar plugin (version 5.1.1 by Daniel M, I can't find the link now).

[Image: foro.png]

I want to move forum announcements and statistics (green in img) below the latest posts (red).

How can i do it?
I have investigated and have not found it.
Googling and forum searching either.

Thank you very much to anyone who helps me, greetings to all.
There is probably a variable for the plugin in your index template that you can move to where you want it. Did you check there? Btw, nice theme Smile
Nothing appears in the index, I can't find any code for the latest topics. Should I look at "index" or one of its specific sections?

If I go to Styles >> My template >> latespost.css I can only configure that:

.latestpost {
padding: 2px 10px;
}

In Templates >> global templates i have Index_sidebar and index_sidebar_post

Index_sidebar:

<table border="0" class="tborder">
 <thead>
<tr>
<td class="thead">
<div><strong>{$lang->latest_posts_title}</strong></div>
</td>
</tr>
</thead>
<tbody>
{$postslist}
</tbody>
</table>



Index_sidebar_post


<tr>
 <td class="trow1 latestpost" valign="top">
<strong><a href="{$mybb->settings['bburl']}/showthread.php?tid={$tid}">{$postname}</a></strong><br>
{$lang->latest_post_by} {$lastposterlink} {$lang->latestposttime}
</td>
</tr>


It's here where I have to edit? I don't found what :/


Also an error happens when I activate the last threads plugin, the who is online under last threads, only the title but i can't solve it moves.

[Image: f2.png]

The theme is emerald modified!

Thanks for answering me so quickly and trying to help me!
(2020-12-04, 05:38 PM)Kitxi Wrote: [ -> ]Nothing appears in the index, I can't find any code for the latest topics. Should I look at "index" or one of its specific sections?

If I go to Styles >> My template >> latespost.css I can only configure that:

.latestpost {
padding: 2px 10px;
}

In Templates >> global templates i have Index_sidebar and index_sidebar_post

Index_sidebar:

<table border="0" class="tborder">
 <thead>
<tr>
<td class="thead">
<div><strong>{$lang->latest_posts_title}</strong></div>
</td>
</tr>
</thead>
<tbody>
{$postslist}
</tbody>
</table>



Index_sidebar_post


<tr>
 <td class="trow1 latestpost" valign="top">
<strong><a href="{$mybb->settings['bburl']}/showthread.php?tid={$tid}">{$postname}</a></strong><br>
{$lang->latest_post_by} {$lastposterlink} {$lang->latestposttime}
</td>
</tr>


It's here where I have to edit? I don't found what :/


Also an error happens when I activate the last threads plugin, the who is online under last threads, only the title but i can't solve it moves.

[Image: f2.png]

The theme is emerald modified!

Thanks for answering me so quickly and trying to help me!

Just checked the plugin - it's in the "index" template, not a specific one.

Go to the index template and find:
<div style="float:{$left};width: 74%;">{$forums}</div>
	<div style="float:{$right};width:25%;">{$sidebar}</div>
This is the code that it changes in that template. I would try removing all of the stuff around the variables so you are left with just {$forums} and {$sidebar}. Then try moving the {$sidebar} variable to other divs on that same page next to your original sidebar.
Thank you so much, i founded it and yes, I think it's the code that I have to edit.

I'm going to try, if I don't get it I will post again.

So much thanks!! and sorry for my bad english lol
I'm trying but I can't get it.

I found the code and I'm trying different combinations but I have issues.

Original code:



<div class="forum" style="float:left;">
	<div style="float:{$left};width: 74%;">{$forums}</div>
	<div style="float:{$right};width:25%;">{$sidebar}</div>{$boardstats}</div>


My issues:

1.
[Image: 1.png]

2.
[Image: 2.png]

1. Announcements go under latest post, I want latest post in the top.

2. Total width of my forum It is reduced, when in the code I see 74% and 25% that should occupy the entire width.

I have tried many combinations but it does not come out well.
I would like the latest post above, then announcements + statistics.

Any code suggestions?

Thank you very much for your help and patience !!