Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
The display options under the postlist looks a littel bit cluttered. While reviewing the code in postlist.tpl I see it es not finished. There is one part of a 50% table and the rest is missing. So I go and change the code a lite bit:

in postlist.tpl go to line 211 and search for this block:
Code
<td class="tdheader">
{$lang.DISPLAY_OPTIONS}
</td>
</tr>
<tr>
<td valign="top" class="alt-1" width="50%">
<label for="o">{$lang.SHOW_P}</label>
<select name="o" id="o" class="form-select">
<option value="1" {$d1}>{$lang.ACT_1}</option>
<option value="2" {$d2}>{$lang.ACT_2}</option>
<option value="7" {$w1}>{$lang.ACT_1w}</option>
<option value="14" {$w2}>{$lang.ACT_2w}</option>
<option value="21" {$w3}>{$lang.ACT_3w}</option>
<option value="31" {$m1}>{$lang.ACT_1m}</option>
<option value="93" {$m3}>{$lang.ACT_3m}</option>
<option value="186" {$m6}>{$lang.ACT_6m}</option>
<option value="365" {$y1}>{$lang.ACT_1y}</option>
<option value="all" {$allofthem}>{$lang.ACT_all}</option>
</select>
<br />
<label for="sort">{$lang.SORT}</label>
<select name="sort" id="sort" class="form-select">
<option value="subject" {$sorter.subject.selected}>{$lang.THREAD_SUBJECT}</option>
<option value="starter" {$sorter.starter.selected}>{$lang.THREAD_STARTER}</option>
<option value="replies" {$sorter.replies.selected}>{$lang.THREAD_REPLIES}</option>
<option value="views" {$sorter.views.selected}>{$lang.THREAD_VIEWS}</option>
<option value="start" {$sorter.start.selected}>{$lang.THREAD_START}</option>
<option value="last" {$sorter.last.selected}>{$lang.LAST_POST_TIME}</option>
</select>
<select name="order" class="form-select">
<option value="asc" {if $order=="asc"}selected="selected"{/if}>{$lang.SORT_ASC}</option>
<option value="desc" {if $order=="desc"}selected="selected"{/if}>{$lang.SORT_DESC}</option>
</select>
<br />

replace the block with this:
Code
<td class="tdheader" colspan="2" align="center">
{$lang.DISPLAY_OPTIONS}
</td>
</tr>
<tr>
<td valign="top" class="alt-1" width="50%">
<label for="o">{$lang.SHOW_P}</label>
<select name="o" id="o" class="form-select">
<option value="1" {$d1}>{$lang.ACT_1}</option>
<option value="2" {$d2}>{$lang.ACT_2}</option>
<option value="7" {$w1}>{$lang.ACT_1w}</option>
<option value="14" {$w2}>{$lang.ACT_2w}</option>
<option value="21" {$w3}>{$lang.ACT_3w}</option>
<option value="31" {$m1}>{$lang.ACT_1m}</option>
<option value="93" {$m3}>{$lang.ACT_3m}</option>
<option value="186" {$m6}>{$lang.ACT_6m}</option>
<option value="365" {$y1}>{$lang.ACT_1y}</option>
<option value="all" {$allofthem}>{$lang.ACT_all}</option>
</select>
</td>
<td valign="top" class="alt-1" width="50%" align="right">
<label for="sort">{$lang.SORT}</label>
<select name="sort" id="sort" class="form-select">
<option value="subject" {$sorter.subject.selected}>{$lang.THREAD_SUBJECT}</option>
<option value="starter" {$sorter.starter.selected}>{$lang.THREAD_STARTER}</option>
<option value="replies" {$sorter.replies.selected}>{$lang.THREAD_REPLIES}</option>
<option value="views" {$sorter.views.selected}>{$lang.THREAD_VIEWS}</option>
<option value="start" {$sorter.start.selected}>{$lang.THREAD_START}</option>
<option value="last" {$sorter.last.selected}>{$lang.LAST_POST_TIME}</option>
</select>
<br />
<select name="order" class="form-select">
<option value="asc" {if $order=="asc"}selected="selected"{/if}>{$lang.SORT_ASC}</option>
<option value="desc" {if $order=="desc"}selected="selected"{/if}>{$lang.SORT_DESC}</option>
</select>
<br />
</td>
</tr>
<tr>
<td colspan="2" class="alt-1" align="center">

The result looks like this:
Attachments
display_options.jpg


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
/me likey -- i'm gonna do the same thing.. ty Zarzal!

i also redid the quickreply to handle more of the vertical space waste. it's more than just a .tpl mod though. code involved.

Linky Poo™

and put the options at the bottom too.. we do it with paging, so why not the other? wink

Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Shouldn't this be in Bugs?
If its half finished?


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
I have done another version starting line 167. Replace this block
Code
{$pagejumpers2}

<div style="clear: both"></div>

{if $inline_perms}
<div style="float: right;">
<table cellpadding="3" cellspacing="0">
<tr>
<td>
<label for="inline-do">{$lang.INLINE_MODERATION}:</label>
<select name="do" class="form-select" id="inline-do">
<optgroup label="{$lang.INLINE_MODERATION}">
{section name=op loop=$inline_perms}
{if $inline_perms[op] != "edit"}
	{assign var=key value="INLINE_MOD_`$inline_perms[op]`"}
	<option value="{$inline_perms[op]}">{$lang.$key}</option>
{/if}
{/section}
</optgroup>
</select>
<input type="submit" value="{$lang.GO}" class="form-button" />
</td></tr></table>
<script type="text/javascript">
// <![CDATA[
{if $inline_topic_js}{$inline_topic_js}{/if}

init_inline_moderation();
// ]]>
</script>
</form>

</div>
<div style="clear: both"></div>
{/if}


<br />

{if $modlist}{$lang.USER_MOD}: {$modlist}{/if}
<form method="post" action="{ubb url=""}">
<input type="hidden" name="ubb" value="postlist" />
<input type="hidden" name="Board" value="{$Board}" />
{$tbopen}
<tr>
<td class="tdheader">
{$lang.DISPLAY_OPTIONS}
</td>
</tr>
<tr>
<td valign="top" class="alt-1" width="50%">
<label for="o">{$lang.SHOW_P}</label>
<select name="o" id="o" class="form-select">
<option value="1" {$d1}>{$lang.ACT_1}</option>
<option value="2" {$d2}>{$lang.ACT_2}</option>
<option value="7" {$w1}>{$lang.ACT_1w}</option>
<option value="14" {$w2}>{$lang.ACT_2w}</option>
<option value="21" {$w3}>{$lang.ACT_3w}</option>
<option value="31" {$m1}>{$lang.ACT_1m}</option>
<option value="93" {$m3}>{$lang.ACT_3m}</option>
<option value="186" {$m6}>{$lang.ACT_6m}</option>
<option value="365" {$y1}>{$lang.ACT_1y}</option>
<option value="all" {$allofthem}>{$lang.ACT_all}</option>
</select>
<br />
<label for="sort">{$lang.SORT}</label>
<select name="sort" id="sort" class="form-select">
<option value="subject" {$sorter.subject.selected}>{$lang.THREAD_SUBJECT}</option>
<option value="starter" {$sorter.starter.selected}>{$lang.THREAD_STARTER}</option>
<option value="replies" {$sorter.replies.selected}>{$lang.THREAD_REPLIES}</option>
<option value="views" {$sorter.views.selected}>{$lang.THREAD_VIEWS}</option>
<option value="start" {$sorter.start.selected}>{$lang.THREAD_START}</option>
<option value="last" {$sorter.last.selected}>{$lang.LAST_POST_TIME}</option>
</select>
<select name="order" class="form-select">
<option value="asc" {if $order=="asc"}selected="selected"{/if}>{$lang.SORT_ASC}</option>
<option value="desc" {if $order=="desc"}selected="selected"{/if}>{$lang.SORT_DESC}</option>
</select>
<br />
<input type="submit" name="changeit" value="{$lang.CHANGE_IT}" class="form-button" />
</td>
</tr>
{$tbclose}
</form>

{if !$ishopto}
<div style="float: right">
{$jumpbox}
</div>
{/if}
with this block
Code
{$pagejumpers2}
<br /><br />
<div style="clear: both"></div>
{$tbopen}
<tr>
<td class="tdheader" colspan="2" align="right">
{if $inline_perms}
<table cellpadding="3" cellspacing="0">
<tr>
<td class="tdheader" colspan="2" align="right">
<label for="inline-do">{$lang.INLINE_MODERATION}:</label>
<select name="do" class="form-select" id="inline-do">
<optgroup label="{$lang.INLINE_MODERATION}">
{section name=op loop=$inline_perms}
{if $inline_perms[op] != "edit"}
	{assign var=key value="INLINE_MOD_`$inline_perms[op]`"}
	<option value="{$inline_perms[op]}">{$lang.$key}</option>
{/if}
{/section}
</optgroup>
</select>
<input type="submit" value="{$lang.GO}" class="form-button" />
</td></tr></table>
<script type="text/javascript">
// <![CDATA[
{if $inline_topic_js}{$inline_topic_js}{/if}

init_inline_moderation();
// ]]>
</script>
</form>

</div>
<div style="clear: both"></div>
{/if}
</td>
</tr>
<tr>
<td class="alt-1" colspan="2">
{if $modlist}{$lang.USER_MOD}: {$modlist}{/if}
</td>
</tr>
<form method="post" action="{ubb url=""}">
<input type="hidden" name="ubb" value="postlist" />
<input type="hidden" name="Board" value="{$Board}" />

<tr>
<td class="tdheader" colspan="2" align="center">
{$lang.DISPLAY_OPTIONS}
</td>
</tr>
<tr>
<td valign="top" class="alt-1" width="50%">
<label for="o">{$lang.SHOW_P}</label>
<select name="o" id="o" class="form-select">
<option value="1" {$d1}>{$lang.ACT_1}</option>
<option value="2" {$d2}>{$lang.ACT_2}</option>
<option value="7" {$w1}>{$lang.ACT_1w}</option>
<option value="14" {$w2}>{$lang.ACT_2w}</option>
<option value="21" {$w3}>{$lang.ACT_3w}</option>
<option value="31" {$m1}>{$lang.ACT_1m}</option>
<option value="93" {$m3}>{$lang.ACT_3m}</option>
<option value="186" {$m6}>{$lang.ACT_6m}</option>
<option value="365" {$y1}>{$lang.ACT_1y}</option>
<option value="all" {$allofthem}>{$lang.ACT_all}</option>
</select>
</td>
<td valign="top" class="alt-1" width="50%" align="right">
<label for="sort">{$lang.SORT}</label>
<select name="sort" id="sort" class="form-select">
<option value="subject" {$sorter.subject.selected}>{$lang.THREAD_SUBJECT}</option>
<option value="starter" {$sorter.starter.selected}>{$lang.THREAD_STARTER}</option>
<option value="replies" {$sorter.replies.selected}>{$lang.THREAD_REPLIES}</option>
<option value="views" {$sorter.views.selected}>{$lang.THREAD_VIEWS}</option>
<option value="start" {$sorter.start.selected}>{$lang.THREAD_START}</option>
<option value="last" {$sorter.last.selected}>{$lang.LAST_POST_TIME}</option>
</select>
<br />
<select name="order" class="form-select">
<option value="asc" {if $order=="asc"}selected="selected"{/if}>{$lang.SORT_ASC}</option>
<option value="desc" {if $order=="desc"}selected="selected"{/if}>{$lang.SORT_DESC}</option>
</select>
<br />
</td>
</tr>
<tr>
<td colspan="2" class="alt-1" align="center">
<input type="submit" name="changeit" value="{$lang.CHANGE_IT}" class="form-button" />
</td>
</tr>
<tr>
<td class="tdheader" colspan="2" align="right">
</form>

{if !$ishopto}
<div style="float: right">
{$jumpbox}
</div>
{/if}
</td>
</tr>
{$tbclose}
This looks like:
Attachments
display_options2.jpg


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
is it allowed to attach templates in this forum? I do postlist.tpl and gallerylist.tpl with a moderation footer.

BTW: Rick should take a look on these two files and compare it. It seems that some lines in the display option section need a little change to be equal.

I work a little bit more on it and now it show like this:

Attachments
display_options3.jpg

Last edited by Zarzal; 05/10/2008 9:21 AM. Reason: a small update

my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 3,839
Likes: 1
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,839
Likes: 1
Originally Posted by Zarzal
is it allowed to attach templates in this forum? I do postlist.tpl and gallerylist.tpl with a moderation footer.

You can only include changes in a forum, not the entire template (s).

Thanks for your inputs smile

Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
Ok, so here is the modification.
search for:
Code
{$pagejumpers2}

<div style="clear: both"></div>

{if $inline_perms}
<div style="float: right;">
<table cellpadding="3" cellspacing="0">
<tr>
<td>
<label for="inline-do">{$lang.INLINE_MODERATION}:</label>
<select name="do" class="form-select" id="inline-do">
<optgroup label="{$lang.INLINE_MODERATION}">
{section name=op loop=$inline_perms}
{if $inline_perms[op] != "edit"}
	{assign var=key value="INLINE_MOD_`$inline_perms[op]`"}
	<option value="{$inline_perms[op]}">{$lang.$key}</option>
{/if}
{/section}
</optgroup>
</select>
<input type="submit" value="{$lang.GO}" class="form-button" />
and replace with:
Code
{$pagejumpers2}
<br /><br />
<div style="clear: both"></div>
{$tbopen}
<tr>
<td class="tdheader" colspan="2" align="center">
{$lang.USER_MOD}
</td>
</tr>
<tr>
<td class="alt-1" colspan="3" align="right">
{if $inline_perms}
<div style="float: right;">
<table cellpadding="3" cellspacing="0">
<tr>
<td colspan="3" align="right" width="92%">
<label for="inline-do">{$lang.INLINE_MODERATION}:</label>
<select name="do" class="form-select" id="inline-do">
<optgroup label="{$lang.INLINE_MODERATION}">
{section name=op loop=$inline_perms}
{if $inline_perms[op] != "edit"}
	{assign var=key value="INLINE_MOD_`$inline_perms[op]`"}
	<option value="{$inline_perms[op]}">{$lang.$key}</option>
{/if}
{/section}
</optgroup>
</select>
</td>
<td valign="middle" width="8%" align="right">
<input type="submit" value="{$lang.GO}" class="form-button" />

Next search for:
Code
<div style="clear: both"></div>
{/if}


<br />

{if $modlist}{$lang.USER_MOD}: {$modlist}{/if}
<form method="post" action="{ubb url=""}">
<input type="hidden" name="ubb" value="postlist" />
<input type="hidden" name="Board" value="{$Board}" />
{$tbopen}
<tr>
<td class="tdheader">
{$lang.DISPLAY_OPTIONS}
</td>
</tr>
<tr>
<td valign="top" class="alt-1" width="50%">
<label for="o">{$lang.SHOW_P}</label>
<select name="o" id="o" class="form-select">
<option value="1" {$d1}>{$lang.ACT_1}</option>
<option value="2" {$d2}>{$lang.ACT_2}</option>
<option value="7" {$w1}>{$lang.ACT_1w}</option>
<option value="14" {$w2}>{$lang.ACT_2w}</option>
<option value="21" {$w3}>{$lang.ACT_3w}</option>
<option value="31" {$m1}>{$lang.ACT_1m}</option>
<option value="93" {$m3}>{$lang.ACT_3m}</option>
<option value="186" {$m6}>{$lang.ACT_6m}</option>
<option value="365" {$y1}>{$lang.ACT_1y}</option>
<option value="all" {$allofthem}>{$lang.ACT_all}</option>
</select>
<br />
<label for="sort">{$lang.SORT}</label>
<select name="sort" id="sort" class="form-select">
<option value="subject" {$sorter.subject.selected}>{$lang.THREAD_SUBJECT}</option>
<option value="starter" {$sorter.starter.selected}>{$lang.THREAD_STARTER}</option>
<option value="replies" {$sorter.replies.selected}>{$lang.THREAD_REPLIES}</option>
<option value="views" {$sorter.views.selected}>{$lang.THREAD_VIEWS}</option>
<option value="start" {$sorter.start.selected}>{$lang.THREAD_START}</option>
<option value="last" {$sorter.last.selected}>{$lang.LAST_POST_TIME}</option>
</select>
<select name="order" class="form-select">
<option value="asc" {if $order=="asc"}selected="selected"{/if}>{$lang.SORT_ASC}</option>
<option value="desc" {if $order=="desc"}selected="selected"{/if}>{$lang.SORT_DESC}</option>
</select>
<br />
<input type="submit" name="changeit" value="{$lang.CHANGE_IT}" class="form-button" />
</td>
</tr>
{$tbclose}
</form>

{if !$ishopto}
<div style="float: right">
{$jumpbox}
</div>
{/if}

{if $inline_perms}
and replace with
Code
<div style="clear: both"></div>
{/if}
</td>
</tr>
<tr>
<td class="alt-1" colspan="2">
{if $modlist}{$lang.USER_MOD}: {$modlist}{/if}
</td>
</tr>
<form method="post" action="{ubb url=""}">
<input type="hidden" name="ubb" value="postlist" />
<input type="hidden" name="Board" value="{$Board}" />

<tr>
<td class="tdheader" colspan="2" align="center">
{$lang.DISPLAY_OPTIONS}
</td>
</tr>
<tr>
<td class="alt-1" colspan="3" align="right">
<table cellpadding="3" cellspacing="0">
<tr>
<td colspan="3" align="left" width="46%">
<label for="o">{$lang.SHOW_P}</label>
<select name="o" id="o" class="form-select">
<option value="1" {$d1}>{$lang.ACT_1}</option>
<option value="2" {$d2}>{$lang.ACT_2}</option>
<option value="7" {$w1}>{$lang.ACT_1w}</option>
<option value="14" {$w2}>{$lang.ACT_2w}</option>
<option value="21" {$w3}>{$lang.ACT_3w}</option>
<option value="31" {$m1}>{$lang.ACT_1m}</option>
<option value="93" {$m3}>{$lang.ACT_3m}</option>
<option value="186" {$m6}>{$lang.ACT_6m}</option>
<option value="365" {$y1}>{$lang.ACT_1y}</option>
<option value="all" {$allofthem}>{$lang.ACT_all}</option>
</select>
</td>
<td valign="top" width="46%" align="right">
<label for="sort">{$lang.SORT}</label>
<select name="sort" id="sort" class="form-select">
<option value="subject" {$sorter.subject.selected}>{$lang.THREAD_SUBJECT}</option>
<option value="starter" {$sorter.starter.selected}>{$lang.THREAD_STARTER}</option>
<option value="replies" {$sorter.replies.selected}>{$lang.THREAD_REPLIES}</option>
<option value="views" {$sorter.views.selected}>{$lang.THREAD_VIEWS}</option>
<option value="start" {$sorter.start.selected}>{$lang.THREAD_START}</option>
<option value="last" {$sorter.last.selected}>{$lang.LAST_POST_TIME}</option>
</select>
<select name="order" class="form-select">
<option value="asc" {if $order=="asc"}selected="selected"{/if}>{$lang.SORT_ASC}</option>
<option value="desc" {if $order=="desc"}selected="selected"{/if}>{$lang.SORT_DESC}</option>
</select>
</td>
<td valign="middle" width="8%" align="right">
<input type="submit" name="changeit" value="{$lang.CHANGE_IT}" class="form-button" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tdheader" colspan="3" align="right">
</form>

{if !$ishopto}
<div style="float: right">
{$jumpbox}
</div>
{/if}
</td>
</tr>
{$tbclose}
{if $inline_perms}


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Originally Posted by Sirdude
/me likey -- i'm gonna do the same thing.. ty Zarzal!

i also redid the quickreply to handle more of the vertical space waste. it's more than just a .tpl mod though. code involved.

Linky Poo™

and put the options at the bottom too.. we do it with paging, so why not the other? wink


Thats good. Is this code shared anywhere? smile

Joined: Jun 2006
Posts: 3,839
Likes: 1
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,839
Likes: 1
It is in the first post of this topic wink

Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
I mean SirDudes thingy..... which only seems to be an image link....

Joined: Jun 2006
Posts: 3,839
Likes: 1
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,839
Likes: 1
Oh okay - the answer is no. it has not been made available.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 298 guests, and 124 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)