Re: limit number messages listed per page
"Rajesh M" <[email protected]> Tue, 22 Jun 2010 14:46:02 +0530 (Asi)
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <[email protected]> |
>
>
> Rajesh M-3 wrote:
>>
>>>
>>>
>>> Rajesh M-3 wrote:
>>>>
>>>> hi
>>>>
>>>> i wish to limit the number of messages listed per page to 100 or
>>>> lesser
>>>>
>>>> i wish to edit the squirrelmail source for the same and would like to
>>>> use
>>>> java script popup kind of limiting
>>>>
>>>> could you pl guide me as to which page would need to be edited for
>>>> this
>>>>
>>>> i checked out and found part of the information
>>>> /include/options/display.php
>>>>
>>>> what i need to know is where to edit the text input box
>>>>
>>>
>>> You should not use restrictions that are controlled by client. Your
>>> (ab)users just disable javascript and set any value that they want.
>>>
>>> Such feature can be implemented by adding additional checks (in php) to
>>> SquirrelMail option widgets or you can use plugins. If plugins can
>>> force
>>> interface options selected by admin, they can also set min/max limits
>>> of
>>> integer settings or acceptable string values.
>>
>> hi
>>
>> i could simply use a drop down select instead of text input box
>>
>> could you guide me on how and where to do that ?
>>
>> the code i see on the options page is as such
>>
>> $optvals[SMOPT_GRP_MAILBOX][] = array(
>> 'name' => 'show_num',
>> 'caption' => _("Number of Messages per Page"),
>> 'type' => SMOPT_TYPE_INTEGER,
>> 'refresh' => SMOPT_REFRESH_NONE,
>> 'size' => SMOPT_SIZE_TINY
>>
>> rajesh
>>
> http://www.squirrelmail.org/docs/devel/devel-4.html#ss4.5
>
> SMOPT_TYPE_STRLIST
>
> $optvals[SMOPT_GRP_MAILBOX][] = array(
> 'name' => 'show_num',
> 'caption' => _("Number of Messages per Page"),
> 'type' => SMOPT_TYPE_STRLIST,
> 'refresh' => SMOPT_REFRESH_NONE,
> 'size' => SMOPT_SIZE_TINY,
> 'posvals' => array(10 => 10, 20 => 20, 30 => 30, 40 => 40));
> --
> View this message in context:
> http://old.nabble.com/limit-number-messages-listed-per-page-tp28951107p28952588.html
> Sent from the squirrelmail-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> -----
> squirrelmail-devel mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: [email protected]
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
> List info (subscribe/unsubscribe/change options):
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel
>
hi
thanks very much
it worked fine
rajesh
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel