Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Solved] Display/Sort forum threadlist with xthread field ?
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #17
RE: Display/Sort forum threadlist with xthread field ?
(03-13-2012 02:00 PM)ZiNgA BuRgA Wrote:  
(03-13-2012 09:14 AM)akm Wrote:  Now the sort box display is there (scrnshot attached), but it is still sorting by 'author'.
Well, it works fine here...
http://mybbhacks.zingaburga.com/forumdis...http://mybbhacks.zingaburga.com/forumdisplay.php?fid=25&sor
Check your URL after sorting.

Thanks for followup.
URL looks similar to what u show...
Quote:/forumdisplay.php?fid=25&sortby=tf_tbg
and what custthrd_ct_ shows...
Quote:/forumdisplay.php?selectall=&fid=24&sortby=custthrd_ct_&order=desc
...except for the 'selectall=&' and '&order=desc' parts.

Obviously not sure what that means.
Tried modifying template tp_forumdisplay_threadlist, <input type="hidden" name="selectall" value="{$allselected}" /> part, but no luck there, anything else should look at...

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<tr>
{$inlinemodcol}
</tr>
{$selectall}
{$announcementlist}	
{$threads}
{$nullthreads}
<tr>
<td class="tfoot" align="right" colspan="{$colspan}">
<form action="forumdisplay.php" method="get">
<input type="hidden" name="selectall" value="{$allselected}" />
<input type="hidden" name="fid" value="{$fid}" />
<select class="smalltext" name="sortby">
<option value="subject" {$sortsel['subject']}>
Sort by Contractor Name:
</option>
<!-- how to use xthread field below so will actually sort by ??? -->
<option value="custhrd_ct_" {$sortsel['custthrd_ct_']}>Sort by  {$GLOBALS['threadfields_x']['ct_']['title']}</option>
<!-- take out all other sort options below
<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}...


Thanks again for your help !
(This post was last modified: 03-13-2012 03:09 PM by akm.)
03-13-2012 03:08 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread

 Standard Tools
Forum Jump: