MyBB Hacks

Full Version: Tab Forum question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Could you post your index template here?

PHP 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 id="tab2">
{$header}


<script type="text/javascript" src="jscripts/jquery-1.3.2.min.js"></script>

<script type="text/javascript">

$.noConflict();

</script>

<script type="text/javascript">

jQuery(document).ready(function($){

$('.tab').click(function(){

$('.at').removeClass('at');

$(this).addClass('at');

$('.content').slideUp();

var catshow = $(this).attr('rel');

$('#'+ catshow).slideDown();

});

});

</script>
<table border="0" width="100%" class="tborder" cellpadding="4" cellspacing="5" style="margin-bottom: 13px;">

<tr align="center">

<td class="tcat2 tab" title="Category 1" style="cursor: pointer;"rel="cat_1">Category 1</td>

<td class="tcat2 at tab" title="Category 4" style="cursor: pointer;" rel="cat_4">Category 4</td>

<td class="tcat2 tab" title="Category 9" style="cursor: pointer;" rel="cat_6">Category 6</td>
<td class="tcat2 tab" title="Last Posts" style="cursor: pointer;" rel="LATESTPOSTSRELATION">THE NEW TABS WITH LATESTPOSTS</td>
</tr>

</table>
{$forums}


{$boardstats}

<dl class="forum_legend smalltext">
	<dt><img src="{$theme['imgdir']}/on.png" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/off.png" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->no_new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/offlock.png" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
	<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html></template>

Did you install the plugin (the latest posts plugin)?
Not in this case, bacause i only had a {$bla} but i can send the Index with the plugin included later.
Then, what's the template content of your {$bla}? You need to put the {$bla} or whatever it is to your index template.
I'm not sure, but the reference should be from the inbuild {$latestthreads} this one:

eval("\$latestthreads = \"".$templates->get("portal_latestthreads")."\";");

I'm in stuck :/

Also tried to get tha latestthreads from the plugin Pro Portal, but could not finde the reference.
You can't put all variable wherever you want, because each variable has their own working area. That's why I said you need a plugin for the latest posts in your index:

(06-01-2011 05:04 AM)RateU Wrote: [ -> ]For displaying the lasts/latest posts in your forum index (no matter whether it's inside a tab or not), you need a plugin for that. If you already have the plugin, you need to edit the template provided by the plugin (again, it depends on how your tabs works).

No matter what plugin you use for the latest post, this is an example how to add a new tabs to your tabs:

HTML Code
<td class="tcat2 tab" title="Last Posts" style="cursor: pointer;" rel="latest_posts">Latest Posts</td>


In the latest posts template, surround all codes with:

HTML Code
<div id="latest_posts" class="content">
.............
</div>


Actually, there is no rel attribute in a <td> tags (if you care about HTML validation for your site).

Thanks now I know better how to handle! Thanks so much!

One last question:

I got a plugin with latest threads and want to include the code.
But if i can't finde the latestthreads in the Template settings can i also include it with the <div>...</div> and upload it then to the server?

I made 2 screenshots.

1. The settings from global that i get
2. The Block which one I want to include
(06-05-2011 01:27 AM)bxx Wrote: [ -> ]I got a plugin with latest threads
Works in what page?

(06-05-2011 01:27 AM)bxx Wrote: [ -> ]and want to include the code.
For what page?
1. Its at the moment working in the portal (pro Portal) - screenshot included.


(06-05-2011 01:38 AM)RateU Wrote: [ -> ]
(06-05-2011 01:27 AM)bxx Wrote: [ -> ]and want to include the code.
For what page?

Not sure what you mean. I want to include it into the Tabs.
Pages: 1 2 3 4
Reference URL's