MyBB Community Forums

Full Version: Have forum behave like portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to put side items on the forum page, i.e. {$welcome}, {$latestthreads}, {$pms}, {$search}, {$stats}, {$whosonline}.

Or put {forum} instead of portal announcements on the portal.

On 1.8.3
Simple template edits. Here's my modified index template from Revolution for example:

<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>
</head>
<body id="forums">
{$header}
<div class="side" style="float: right; width: 23%">
  
 
  <script type="text/javascript">
	jQuery(function(){
		jQuery(".latestthreads").load("{$mybb->settings['bburl']}/portal.php .latestthreads_portal");
	});
	</script>
  
  
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div class="float_left"><strong>Latest activity</strong></div> 
</td>
</tr>
<tr>
<td class="trow1">
				<div class="latestthreads float_left"></div>
		</td>
</tr>
</table>
  
  <br />
  
{$teamonline}
{$boardstats}
  
  
  
  
</div>
<div class="forum" style="float: left; width: 76%;">{$forums}</div>
<br class="clear" />
{$footer}
</body>
</html>

I'll post the CSS classes as soon as I can find them.
I tried adding the following:

{$welcome}
{$pms}
{$stats}
{$latestthreads}

They don't show up. I tried adding {$forums} to portal in place of {$announcements} but no go. Any other suggestions?
I explained this; you need to modify the index template and global.css.

Also, the portal can't access {$forums} because it isn't meant to be used there. That's why it comes up blank. To display latest threads on the forums, just yank the first bit of my modified sidebar code:


<div id="side" style="float: left; width: 23%">
  <script type="text/javascript">
    jQuery(function(){
        jQuery(".latestthreads").load("{$mybb->settings['bburl']}/portal.php .latestthreads_portal");
    });
    </script>
</div>

Then enclose {$forums} in another DIV like this:

<div id="forums" style="float: right; width: 76%">
{$forums}
</div>

To make this a bit easier, could you paste your index template here?
Here is my index template 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>
</head>
<body>
{$header}
{$forums}
{$boardstats}


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

Thanks!
Any news? Help?
I would take a look at this : http://community.mybb.com/thread-126607.html

Also, there are a lot of different approaches to this, I would recommend doing a forum search for "make portal homepage" to find the threads. It really is going to depend on you which way you'd like to accomplish it.
That is a tutorial on how to set portal as the home page, not to change it's layout or structure.
Ah, sorry I misunderstood what it is you wanted.

Try taking a look at this thread:
http://community.mybb.com/thread-24943.html


You can really change the layout any way you want with HTML, but you need to include the template includes.

I think the ones below are the main ones for the portal page.

{$headerinclude}
{$header}
{$footer}


But to add the widgets to the forum index page, I believe the widgets need to be defined in the index.php page as they are in the portal.php page.