How to add sidebar??

by Mr_Joker - 28-05-2015, 03:27 AM
YouR JuSt G4Y
Posts:
879
Joined:
Feb 2015
Likes:
32
Credits:
301
Reputation:
3
2 Years of Service
#1
OP
Posted: 28-05-2015, 03:27 AM
Hey!

Can someone tell me how can i find or add Latest Activity or Latest Post sidebar? I'm using LF theme by the way so i need help how to put a sidebar that shows Latest Posts.

Please help been searching everywhere can't find anything Meh
Closed Account
Posts:
1,383
Joined:
Jan 2015
Likes:
123
Credits:
1,276
Reputation:
30
2 Years of Service
#2
Posted: 28-05-2015, 03:33 AM
(28-05-2015, 03:27 AM)Mr_Joker Wrote: Hey!

Can someone tell me how can i find or add Latest Activity or Latest Post sidebar? I'm using LF theme by the way so i need help how to put a sidebar that shows Latest Posts.

Please help been searching everywhere can't find anything Meh
Plugin
YouR JuSt G4Y
Posts:
879
Joined:
Feb 2015
Likes:
32
Credits:
301
Reputation:
3
2 Years of Service
#3
OP
Posted: 28-05-2015, 04:13 AM
Is there any plugins for mybb 1.6 ? Which one??
Closed Account
Posts:
1,383
Joined:
Jan 2015
Likes:
123
Credits:
1,276
Reputation:
30
2 Years of Service
#4
Posted: 28-05-2015, 04:20 AM
You could edit it to show the posts instead of threads http://mods.mybb.com/view/recent-threads-forum-sidebar
YouR JuSt G4Y
Posts:
879
Joined:
Feb 2015
Likes:
32
Credits:
301
Reputation:
3
2 Years of Service
#5
OP
Posted: 28-05-2015, 04:44 AM
How can i adjust the size like thats for portal and it does work on the sidebar but i need it on index page like example i need this...

<div class="side" style="float: right; width: 19%">
<div class="forum" style="float: left; width: 80%">{$forums}</div>

But what codes do i put between?? I can't figure it out.
urrah
Prime
Posts:
162
Joined:
Jan 2015
Likes:
7
Credits:
2
Reputation:
11
2 Years of Service
#6
Posted: 30-05-2015, 07:06 PM (This post was last modified: 30-05-2015, 07:08 PM by subzr.)
here u go
this is my index template of a theme im developing
it includes a side bar and latest threads block without any plugin ;)
Code:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
   lang.no_new_posts = "{$lang->no_new_posts}";
   lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
<style type="text/css">
.buttons {
   background: url(images/arrowright.png) no-repeat;
   width: 16px;
   height: 16px;
   display: block;
   cursor: pointer;
}

.clickedbuttons {
   background: url(images/arrowleft.png) no-repeat;
   width: 16px;
   height: 16px;
   display: block;
   cursor: pointer;
}
</style>
</head>
<body>
{$header}
<a class="buttons" style="float: right;"></a>
<a class="clickedbuttons" style="float: right;"></a>
<br class="clear" />
<div class="sidebar" style="float: right;width: 19%;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead1"><strong>
Latest Threads
</strong></td>
</tr>
<tr>
<td class="trow3">
<p><div class="latestthreads float_left"></div></p>
<script type="text/javascript">
jQuery(function(){
 jQuery(".latestthreads").load("{$mybb->settings['bburl']}/portal.php .latestthreads_portal");
});
</script>
</td>
</tr>
</table>
</div>
<div style="float:left;width: 80%;">{$forums}</div>

{$boardstats}
</div>

<br class="clear" />
{$footer}
</body>
</html>

You need help on mybb???
ill help you.Post on support forums and give a live url for your forum!!
YouR JuSt G4Y
Posts:
879
Joined:
Feb 2015
Likes:
32
Credits:
301
Reputation:
3
2 Years of Service
#7
OP
Posted: 30-05-2015, 07:08 PM
(30-05-2015, 07:06 PM)subzr Wrote: here u go
this is my index template of a theme im developing
it includes a side bar and latest threads block without any plugin ;)
Code:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
<style type="text/css">
.buttons {
background: url(images/arrowright.png) no-repeat;
width: 16px;
height: 16px;
display: block;
cursor: pointer;
}

.clickedbuttons {
background: url(images/arrowleft.png) no-repeat;
width: 16px;
height: 16px;
display: block;
cursor: pointer;
}
</style>
</head>
<body>
{$header}
<a class="buttons" style="float: right;"></a>
<a class="clickedbuttons" style="float: right;"></a>
<br class="clear" />
<div class="sidebar" style="float: right;width: 19%;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead1"><strong>
Latest Threads
</strong></td>
</tr>
<tr>
<td class="trow3">
<p><div class="latestthreads float_left"></div></p>
<script type="text/javascript">
jQuery(function(){
jQuery(".latestthreads").load("{$mybb->settings['bburl']}/portal.php .latestthreads_portal");
});
</script>
</td>
</tr>
</table>
</div>
<div style="float:{$left};width: 80%;">{$forums}</div>

{$boardstats}
</div>

<br class="clear" />
{$footer}
</body>
</html>

It doesnt show latest threads though Meh
urrah
Prime
Posts:
162
Joined:
Jan 2015
Likes:
7
Credits:
2
Reputation:
11
2 Years of Service
#8
Posted: 30-05-2015, 07:11 PM
it does actually Smile

heres a preview, also on footer ;)

[Image: myiw3Eo.png]
You need help on mybb???
ill help you.Post on support forums and give a live url for your forum!!
YouR JuSt G4Y
Posts:
879
Joined:
Feb 2015
Likes:
32
Credits:
301
Reputation:
3
2 Years of Service
#9
OP
Posted: 30-05-2015, 07:13 PM
Weird like the Threads wont show for me lol Meh
urrah
Prime
Posts:
162
Joined:
Jan 2015
Likes:
7
Credits:
2
Reputation:
11
2 Years of Service
#10
Posted: 30-05-2015, 07:17 PM
(30-05-2015, 07:13 PM)Mr_Joker Wrote: Weird like the Threads wont show for me lol Meh

weird
try this
go to your templates and in portal template replace this:
PHP Code:
{$latestthreads

by this:

PHP Code:
<div style="display:none;">{$latestthreads}</div
 after go to your "portal_latestthreads_thread" template and replace all by this:

PHP Code:
<tr class="latestthreads_portal">
<
td width="230px" class="trow4">
<
class="strongest" href="{$mybb->settings['bburl']}/{$thread['threadlink']}style="color: #FFF;">{$thread['subject']}</a> <br />
<
span class="strongest2" > <span style="color: #FFF;"{$lang->by} {$lastposterlink {$lastpostdate}</span>
    <
div class="line">&nbsp;</div  
</td>
</
tr

it must work
if not ,check if theres no conflict with some plugin or js files
You need help on mybb???
ill help you.Post on support forums and give a live url for your forum!!
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)