Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Template cond for forum ids
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #11
RE: Template cond for forum ids
Post your entire code please.

My Blog
12-02-2010 09:47 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #12
RE: Template cond for forum ids

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
<tr>	
        <td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.png" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><if in_array($thread['fid'], array(142,157,158)) then>
{$GLOBALS['threadfields']['timg']['value']}
<else>
<a href="{$forumurl_q}filterxt_icon={$thread['icon']}">{$icon}</a><a href="{$forumurl_q}filterxt_prefix={$thread['prefix']}">{$thread['threadprefix']}</a></if></td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>                        
			<span>{$prefix}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
<if $GLOBALS['mybb']->user['usergroup'] != 1 then>{$thread['multipage']}</if></span>
                        <span class="smalltext"><br />{$threadfields['desc']}</span>
                        <if !in_array($GLOBALS['mybb']->user['usergroup'], array(1,5,7)) then><span class="author smalltext"><br />By: {$thread['profilelink']}</span></if>                                              
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}
                <if !in_array($GLOBALS['mybb']->user['usergroup'], array(1,5,7)) then><br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
                </if>
	</td>
{$modbit}
</tr>

12-03-2010 01:34 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #13
RE: Template cond for forum ids
I get no such error with that code.

My Blog
12-03-2010 08:34 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #14
RE: Template cond for forum ids
yep, missed the end tag in of the conditional line. my bad.
its working.
like this can we make use of reputation in particular forums only?
12-03-2010 09:00 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #15
RE: Template cond for forum ids
(12-03-2010 09:00 AM)1master1 Wrote:  yep, missed the end tag in of the conditional line. my bad.
its working.
Would you be able to, next time, please say this before hand?
Cause it saves me from staring at the code for 5 minutes wondering why it wouldn't work, then spending another 5 minutes setting up a testing environment to see what the problem is, just to find no problem.
It would be great if you spent that extra 1 minute confirming that what you posted works, since you obviously fixed it yourself.  After all, it's you who's asking for help, not me.
Thanks.

My Blog
12-03-2010 09:04 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #16
RE: Template cond for forum ids
yep, sorry for that.
12-03-2010 09:31 AM
Find all posts by this user Quote this message in a reply
Gypaete Offline
Member
***
Posts: 82
Joined: Aug 2010
Post: #17
RE: Template cond for forum ids
Proof:
ACP -> Forums -> Select your forum -> Edit -> And the template prefix put "proof_" and go to master template and new template:
proof_forumdisplay_thread and ready.

[Image: selenab.png]
05-16-2011 12:46 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: