Tab Forum question
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #21
RE: Tab Forum question
Could you post your index template here?

06-04-2011 03:13 AM
Find all posts by this user Quote this message in a reply
bxx Offline
Junior Member
**
Posts: 23
Joined: May 2011
Post: #22
RE: Tab Forum question

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<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>

06-04-2011 03:17 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #23
RE: Tab Forum question
Did you install the plugin (the latest posts plugin)?

06-04-2011 03:23 AM
Find all posts by this user Quote this message in a reply
bxx Offline
Junior Member
**
Posts: 23
Joined: May 2011
Post: #24
RE: Tab Forum question
Not in this case, bacause i only had a {$bla} but i can send the Index with the plugin included later.
06-04-2011 03:31 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #25
RE: Tab Forum question
Then, what's the template content of your {$bla}? You need to put the {$bla} or whatever it is to your index template.

(This post was last modified: 06-04-2011 03:59 AM by RateU.)
06-04-2011 03:57 AM
Find all posts by this user Quote this message in a reply
bxx Offline
Junior Member
**
Posts: 23
Joined: May 2011
Post: #26
RE: Tab Forum question
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.
06-05-2011 12:33 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #27
RE: Tab Forum question
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).


(This post was last modified: 06-05-2011 01:35 AM by RateU.)
06-05-2011 01:12 AM
Find all posts by this user Quote this message in a reply
bxx Offline
Junior Member
**
Posts: 23
Joined: May 2011
Post: #28
RE: Tab Forum question
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


Attached File(s) Thumbnail(s)
       
06-05-2011 01:27 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #29
RE: Tab Forum question
(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?

06-05-2011 01:38 AM
Find all posts by this user Quote this message in a reply
bxx Offline
Junior Member
**
Posts: 23
Joined: May 2011
Post: #30
RE: Tab Forum question
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.


Attached File(s) Thumbnail(s)
   
(This post was last modified: 06-05-2011 01:46 AM by bxx.)
06-05-2011 01:46 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: