11-21-2011, 04:36 PM
(11-21-2011 04:02 AM)RateU Wrote: [ -> ]You can use div float right and div float left for that, replacing this code from the pf_forumdisplay_threadlist template:
Code:
{$threads}{$nullthreads}
and remove the description on the right from your pf_forumdisplay_thread template.
Here is an example for that:
pf_forumdisplay_threadlist:
HTML Code
<div class="float_left"> {$multipage} </div> <div class="float_right"> {$newthread} </div> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;"> <tr> <td class="thead" colspan="{$colspan}"> <div align="center"> <strong>{$foruminfo['name']}</strong> </div> </td> </tr> <tr> <td class="tcat smalltext" width="100%" colspan="2"> <span class="float_left"> <strong>Sort By: <a href="{$sorturl}&sortby=subject&order=asc">{$lang->thread}</a> {$orderarrow['subject']} | <a href="{$sorturl}&sortby=starter&order=asc">{$lang->author}</a> {$orderarrow['starter']} | <a href="{$sorturl}&sortby=replies&order=desc">{$lang->replies}</a> {$orderarrow['replies']} | <a href="{$sorturl}&sortby=views&order=desc">{$lang->views}</a> {$orderarrow['views']} {$ratingcol} | <a href="{$sorturl}&sortby=lastpost&order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong> </span> <span class="float_right"> <strong><a href="misc.php?action=markread&fid={$fid}{$post_code_string}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&type=forum&fid={$fid}&my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong> </span> </td> {$inlinemodcol} </tr> {$selectall} </table> <br class="clear" /> <div class="float_right" style="width: 20%;"> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td class="thead"> <div align="center"> <strong>Category</strong> </div> </td> </tr> <tr> <td class="trow1 {$filters_set['__all']['nullactive']}"> <strong><a href="{$forumurl}">All</a> </td> </tr> <tr> <td class="trow1 {$filters_set['pfcat']['active']['Software']}"> <strong><a href="{$forumurl_q}filtertf_pfcat=Software">Software</a> </td> </tr> <tr> <td class="trow1 {$filters_set['pfcat']['active']['Hardware']}"> <strong><a href="{$forumurl_q}filtertf_pfcat=Hardware">Hardware</a> </td> </tr> <tr> <td class="trow1 {$filters_set['pfcat']['active']['Other']}"> <strong><a href="{$forumurl_q}filtertf_pfcat=Other">Other</a> </td> </tr> </table> </div> <div class="float_left" style="width: 78%;"> {$threads}{$nullthreads} </div> <br class="clear" /><br /> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;"> <tr> <td class="tcat" colspan="{$colspan}"> <span class="float_left"> <form action="forumdisplay.php" method="get"> <input type="hidden" name="fid" value="{$fid}" /> <select name="sortby"> <option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option> <option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option> <option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option> <option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option> {$ratingsort} <option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option> <option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option> </select> <select name="order"> <option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option> <option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option> </select> <select name="datecut"> <option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option> <option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option> <option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option> <option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option> <option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option> <option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option> <option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option> <option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option> <option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option> </select> {$gobutton} </form> </span> <span class="float_right"> {$forumjump} </span> </td> </tr> <tr> <td class="tfoot" align="center" colspan="{$colspan}"> <strong><a href="http://mybbhacks.zingaburga.com/shwothread.php?tid=288">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a></strong> </td> </tr> </table> <div class="float_left"> {$multipage} </div> <div class="float_right" style="margin-top: 4px;"> {$newthread} </div> <br style="clear: both;" /> <br /> <div class="float_left"> <div class="float_left"> <dl class="thread_legend smalltext"> <dd><img src="{$theme['imgdir']}/newfolder.gif" alt="{$lang->new_thread}" title="{$lang->new_thread}" /> {$lang->new_thread}</dd> <dd><img src="{$theme['imgdir']}/newhotfolder.gif" alt="{$lang->new_hot_thread}" title="{$lang->new_hot_thread}" /> {$lang->new_hot_thread}</dd> <dd><img src="{$theme['imgdir']}/hotfolder.gif" alt="{$lang->hot_thread}" title="{$lang->hot_thread}" /> {$lang->hot_thread}</dd> </dl> </div> <div class="float_left"> <dl class="thread_legend smalltext"> <dd><img src="{$theme['imgdir']}/folder.gif" alt="{$lang->no_new_thread}" title="{$lang->no_new_thread}" /> {$lang->no_new_thread}</dd> <dd><img src="{$theme['imgdir']}/dot_folder.gif" alt="{$lang->posts_by_you}" title="{$lang->posts_by_you}" /> {$lang->posts_by_you}</dd> <dd><img src="{$theme['imgdir']}/lockfolder.gif" alt="{$lang->locked_thread}" title="{$lang->locked_thread}" /> {$lang->locked_thread}</dd> </dl> </div> <br style="clear: both" /> </div> <div class="float_right" style="text-align: right;"> {$searchforum} {$inlinemod} </div> <br style="clear: both" /> {$inline_edit_js}
pf_forumdisplay_thread:
HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td class="thead" align="center" colspan="{$colspan}"> <div><strong><a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a></strong></div> </td> </tr> <tr> <td class="{$bgcolor}" width="1"> <div align="center"> <img src="{$GLOBALS['threadfields']['pfpic']['thumbs']['320x240']['url']}" alt="{$thread['subject']} Screenshot" title="{$thread['subject']} Screenshot" width="{$GLOBALS['threadfields']['pfpic']['thumbs']['320x240']['w']}" height="{$GLOBALS['threadfields']['pfpic']['thumbs']['320x240']['h']}" /> </div> </td> <td class="{$bgcolor}" width="100%"> <table border="0" width="100%"> <tr> <td valign="top" width="120">Product Name</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfname']}</td> </tr> <tr> <td valign="top">Developer</td> <td width="1" valign="top">:</td> <td valign="top"><a href="{$GLOBALS['threadfields']['pfdevurl']}">{$GLOBALS['threadfields']['pfdev']}</a></td> </tr> <tr> <td valign="top">Version</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfversion']}</td> </tr> <tr> <td valign="top">Release (Year)</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfrelease']}</td> </tr> <tr> <td valign="top">Category</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfcat']}</td> </tr> {$rating} <tr> <td valign="top">{$lang->author}</td> <td width="1" valign="top">:</td> <td valign="top">{$thread['profilelink']}</td> </tr> <tr> <td valign="top">{$lang->views}</td> <td width="1" valign="top">:</td> <td valign="top">{$thread['views']}</td> </tr> <tr> <td valign="top">{$lang->replies}</td> <td width="1" valign="top">:</td> <td valign="top"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td> </tr> </table> </td> {$modbit} </tr> </table> <br />
Create .filtertf_active css class if you don't have it yet.
wow, that looks great, rateu! thanks a bunch for that!!!
what does the new css class do?