[dev] patch for agora
Vilius Šumskas
vilius at lnk.lt
Tue Apr 20 07:09:02 PDT 2004
Hi,
the attached is patch for agora. It allows disabling full message views in
thread message list.
--
Best Regards,
Vilius Šumskas
LNK TV system administrator
mob.: +370 614 75713
www.lnk.lt
-------------- next part --------------
Index: index.html
===================================================================
RCS file: /repository/agora/templates/messages/index.html,v
retrieving revision 1.4
diff -u -r1.4 index.html
--- index.html 13 Apr 2004 10:49:21 -0000 1.4
+++ index.html 20 Apr 2004 13:59:50 -0000
@@ -60,7 +60,7 @@
</td>
</tr><tr>
<td width="100%" valign="top" class="box">
- <tag:threads_list.message_body />
+ <if:threads_view><tag:threads_list.message_body /></if:threads_view>
</td>
</tr>
</table>
-------------- next part --------------
Index: index.php
===================================================================
RCS file: /repository/agora/messages/index.php,v
retrieving revision 1.1
diff -u -r1.1 index.php
--- index.php 13 Apr 2004 10:07:29 -0000 1.1
+++ index.php 20 Apr 2004 14:00:39 -0000
@@ -48,6 +48,7 @@
/* Set up the template tags. */
$template = &new Horde_Template();
$template->set('col_headers', $col_headers);
+$template->set('threads_view', $prefs->getValue('threads_view'), true);
$template->set('threads_list', $threads_list, true);
$template->set('threads_list_header', _("Thread List"));
$template->set('menu', $menu->getMenu());
-------------- next part --------------
Index: prefs.php.dist
===================================================================
RCS file: /repository/agora/config/prefs.php.dist,v
retrieving revision 1.14
diff -u -r1.14 prefs.php.dist
--- prefs.php.dist 6 Apr 2004 03:08:11 -0000 1.14
+++ prefs.php.dist 20 Apr 2004 13:59:08 -0000
@@ -15,7 +15,7 @@
'column' => _("Display Options"),
'label' => _("Threads View"),
'desc' => _("Set your options for the threads view."),
- 'members' => array('threads_sortby', 'threads_sortdir', 'threads_hot'));
+ 'members' => array('threads_sortby', 'threads_sortdir', 'threads_hot', 'threads_view'));
$prefGroups['display_message'] = array(
'column' => _("Display Options"),
@@ -74,6 +74,14 @@
'shared' => false,
'type' => 'number',
'desc' => _("Number of views in 24hrs to trigger a 'hot-thread':")
+);
+
+$_prefs['threads_view'] = array(
+ 'value' => 1,
+ 'locked' => false,
+ 'shared' => false,
+ 'type' => 'checkbox',
+ 'desc' => _("Display full message bodies in thread list view?")
);
$_prefs['message_emoticons'] = array(
More information about the dev
mailing list