MyBB Hacks

Full Version: Custom Thread Style
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This is rather cool, someway to include the '{$GLOBALS['threadfields']['xtcstyle_tc']}' into 'forumbit_depth2_forum_lastpost' template?
No, thread fields aren't available on any forumbit_* template.
(12-02-2011 09:08 AM)ZiNgA BuRgA Wrote: [ -> ]No, thread fields aren't available on any forumbit_* template.

Where can we show them then? Just forumdisplay, showthread, search, and what else?

And do you plan to make them available in forumbit_* themplates?
(12-02-2011 11:25 AM)Sama34 Wrote: [ -> ]Where can we show them then? Just forumdisplay, showthread, search, and what else?
From memory, portal.

(12-02-2011 11:25 AM)Sama34 Wrote: [ -> ]And do you plan to make them available in forumbit_* themplates?
Not at the moment, no.
(12-02-2011 01:18 PM)ZiNgA BuRgA Wrote: [ -> ]
(12-02-2011 11:25 AM)Sama34 Wrote: [ -> ]Where can we show them then? Just forumdisplay, showthread, search, and what else?
From memory, portal.

(12-02-2011 11:25 AM)Sama34 Wrote: [ -> ]And do you plan to make them available in forumbit_* themplates?
Not at the moment, no.

Well, I do not use the portal, so hope you include support for more templates later.
Think these instructions are still good for 1.8 as well?
Hey all, im trying to add thread title colours to my theme I am using for 1.8. Adding However the template is different than the standard 1.8 theme and im not too sure where to put ['xtcstyle_tc'].

Experimenting as lead to weird results that breaks the layout of threads.

Again here is the 1.8 theme forumdisplay_thread template:

Code:
<tr class="inline_row">
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><span class="thread_status {$folder}" title="{$folder_label}">&nbsp;</span></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
          <span>{$prefix} {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><a href="{$thread['threadlink']}">{$thread['subject']}</a></span></span><br />
          {$threadfields['desc']}<span class="smalltext">{$lang->xstyled_startedby} {$thread['profilelink']}</span>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['multipage']}</td>
    {$rating}
	<td align="left" class="{$bgcolor}{$thread_type_class}" style="width: 70px; padding-right: 20px;">
      	<i style="font-size: 14px;" class="fa fa-comments fa-fw" title="{$lang->xstyled_replies}"></i> {$thread['replies']}</a>{$unapproved_posts}<br />
		<i style="font-size: 14px;" class="fa fa-eye fa-fw" title="{$lang->xstyled_views}"></i> {$thread['views']}
	</td>
	<td class="{$bgcolor}{$thread_type_class}" style="width: 200px; text-align: left;">
      	{$lastposterlink} <a class="effect" href="{$thread['lastpostlink']}" title="{$lang->xstyled_golastpost}"><i style="font-size: 14px;" class="fa fa-toggle-right fa-fw"></i></a><br />
      	<span class="smalltext">{$lastpostdate}</span>
	</td>
{$modbit}
</tr>

So what have you experimented with?
In your posted template you have some HTML issues.  Badly formed HTML will often not display as you expect.
Pages: 1 2
Reference URL's