MyBB Hacks

Full Version: Template cond for forum ids
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Post your entire code please.

Code:
<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>

I get no such error with that code.
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)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.
yep, sorry for that.
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.
Pages: 1 2
Reference URL's