[geeklog-devel] Doubt regarding bug number 838
Joe Mucchiello
joe at ThrowingDice.com
Sat Apr 3 11:34:54 EDT 2010
At 04:34 AM 4/3/2010, sushil meena wrote:
>Content-Type: multipart/alternative; boundary=0016e64c26648bbec7048350f705
>Content-Transfer-Encoding:
>
>Hey,
>I am trying to introduce the feature request
><http://project.geeklog.net/tracking/view.php?id=838>http://project.geeklog.net/tracking/view.php?id=838
>. What I have done is that the view of public_html/admin/topic.php
>is in the same manner as that of public_html/admin/block.php or
>user.php or story.php. Means the topics are now in column view.
>But now the problem I am facing is that what value should I give to
>the default_filter in $query_arr. I dont have any idea what the
>default filter should be. (naming convention is almost same as block.php).
It can be empty.
>Also what should be the view of topic.php when $_CONF['sortmethod']
>is set to alpha?
Just suppress the sort column when sortmethod is alpha. For example,
this is the block code:
// writing the list
$header_arr = array( # display 'text' and use table field 'field'
array('text' => $LANG_ADMIN['edit'], 'field' => 'edit',
'sort' => false),
array('text' => $LANG21[65], 'field' => 'blockorder', 'sort' => true),
array('text' => $LANG21[46], 'field' => 'move', 'sort' => false),
array('text' => $LANG_ADMIN['title'], 'field' => 'title',
'sort' => true),
array('text' => $LANG_ADMIN['type'], 'field' => 'type',
'sort' => true),
array('text' => $LANG_ADMIN['topic'], 'field' => 'tid',
'sort' => true),
array('text' => $LANG_ADMIN['enabled'], 'field' =>
'is_enabled', 'sort' => true)
);
Change it to
// writing the list
$header_arr = array(); # display 'text' and use table field 'field'
$header_arr[] = array('text' => $LANG_ADMIN['edit'], 'field' =>
'edit', 'sort' => false),
if ($_CONF['sortmethod'] == 'sortnum') {
$header_arr[] = array('text' => $LANG21[65], 'field' =>
'blockorder', 'sort' => false),
}
$header_arr[] = array('text' => $LANG21[46], 'field' => 'move',
'sort' => false),
$header_arr[] = array('text' => $LANG_ADMIN['title'], 'field' =>
'title', 'sort' => false),
$header_arr[] = array('text' => $LANG_ADMIN['type'], 'field' =>
'type', 'sort' => false),
$header_arr[] = array('text' => $LANG_ADMIN['topic'], 'field' =>
'tid', 'sort' => false),
$header_arr[] = array('text' => $LANG_ADMIN['enabled'], 'field'
=> 'is_enabled', 'sort' => false)
Notice none of the fields are sortable. Also, adding "topic type"
field would be good. In it you note whether this topic is the archive
topic or the default topic.
Don't forget to put the icon in the list. It might look cool.
----
Joe Mucchiello
Throwing Dice Games
http://www.throwingdice.com
No virus found in this outgoing message
Checked by PC Tools AntiVirus (6.0.0.19 - 10.004.176).
http://www.pctools.com/free-antivirus/
More information about the geeklog-devel
mailing list