DavoNZ | 5 Jun 2010 18:03
Picon
Favicon

Template for squirrelmail 1.5.2


Hi,

I have been working on a template for the latest development version of
squirrelmail (1.5.2).

It is attached if anyone else would like to use.

The plugins are not added to the menuline (eg calendar), $output('menuline')
contains nothing, and because we dont use addons i never bothered to go into
it to much, but i would like to fix for others - so if anyone can help let
me know.

It has been tested on IE8, Firefox 3.5 and Chrome 5.

cya
Davo

Screenshoot:
http://old.nabble.com/file/p28790235/sqm.jpg 

http://old.nabble.com/file/p28790235/sqm.jpg sqm.jpg 

Template ZIP:
http://old.nabble.com/file/p28790235/sqm_template.zip sqm_template.zip 

--

-- 
View this message in context: http://old.nabble.com/Template-for-squirrelmail-1.5.2-tp28790235p28790235.html
Sent from the squirrelmail-devel mailing list archive at Nabble.com.

(Continue reading)

Paul Lesniewski | 21 Jun 2010 04:14
Favicon

Re: Template for squirrelmail 1.5.2

> I have been working on a template for the latest development version of
> squirrelmail (1.5.2).

Thanks so very much for contributing!

> It is attached if anyone else would like to use.
>
> The plugins are not added to the menuline (eg calendar), $output('menuline')
> contains nothing, and because we dont use addons i never bothered to go into
> it to much, but i would like to fix for others - so if anyone can help let
> me know.

I haven't tried your skin due to lack of time and that it requires
changes that are invasive and unnecessary.  I can help you if you
describe in more detail what is not working.  If the source code
itself is an issue, I can also help get the needed fixes into the code
repository.

The parts of the skin that wouldn't work for us (once we begin
publishing skin packs like we do plugins) are (just after looking VERY
briefly at the package):

- No license info
- Overwrites "default" skin
- All files should be in template directory
- There should be no reason to copy, patch or move files in the
SquirrelMail core

> It has been tested on IE8, Firefox 3.5 and Chrome 5.

(Continue reading)

DavoNZ | 21 Jun 2010 05:04
Picon
Favicon

Re: Template /skin for squirrelmail 1.5.2


hi,

I over write template/DEFAULT because the login.tpl file isnt loaded/called
unless its in the default directory.  

I also add a top.php to the /src dir for dispalying the top frame, but this
could be left in the template dir.. or i could just add code to top.tpl
file.. 

Thats the only things that are over-writing/changed/added from the original
SQM.

The only other problem i have is displaying the plugins eg:?

<?php if (!empty($plugin_output['menuline'])) echo
$plugin_output['menuline']; ?>
displays nothing, the var is empty .. so i am guessing there is a function
or include file, or something that i am not called..

i have basically moved the menu bar out of page_hearder.tpl into the
top.tpl/top frame, so all the the page_header does now is tells the left
frame what mailbox is being displayed, and what to highlight on mailbox
list.. 

i would like to keep it original, so if you can poiint me in right direction
to fix the problems above would be good..

thanks
Davo 
(Continue reading)

irian | 21 Jun 2010 18:54
Picon
Favicon

Re: Template /skin for squirrelmail 1.5.2

Sar'na
:)

Sent from my iPad

On Jun 21, 2010, at 6:04, DavoNZ <tahunasky <at> yahoo.com> wrote:

hi,

I over write template/DEFAULT because the login.tpl file isnt loaded/called
unless its in the default directory.  

I also add a top.php to the /src dir for dispalying the top frame, but this
could be left in the template dir.. or i could just add code to top.tpl
file.. 

Thats the only things that are over-writing/changed/added from the original
SQM.

The only other problem i have is displaying the plugins eg:?

<?php if (!empty($plugin_output['menuline'])) echo
$plugin_output['menuline']; ?>
displays nothing, the var is empty .. so i am guessing there is a function
or include file, or something that i am not called..

i have basically moved the menu bar out of page_hearder.tpl into the
top.tpl/top frame, so all the the page_header does now is tells the left
frame what mailbox is being displayed, and what to highlight on mailbox
list.. 
(Continue reading)

Rajesh M | 21 Jun 2010 19:06

limit number messages listed per page

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

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: squirrelmail-devel <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

Tomas Kuliavas | 21 Jun 2010 20:05
Picon
Gravatar

Re: limit number messages listed per page


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.

-- 
Tomas
--

-- 
View this message in context: http://old.nabble.com/limit-number-messages-listed-per-page-tp28951107p28951670.html
(Continue reading)

Rajesh M | 21 Jun 2010 21:13

Re: limit number messages listed per page

>
>
> 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.
>
> --
> Tomas
(Continue reading)

Tomas Kuliavas | 21 Jun 2010 21:32
Picon
Gravatar

Re: limit number messages listed per page


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.
(Continue reading)

Paul Lesniewski | 21 Jun 2010 22:03
Favicon

Re: Template /skin for squirrelmail 1.5.2

Please do not top-post next time.  Please respond to MY message, not
your original one.  Please consult the mailing list posting guidelines
in full.

> I over write template/DEFAULT because the login.tpl file isnt loaded/called
> unless its in the default directory.

Not true.  You need to use the configuration utility to set your
chosen default template set.

> I also add a top.php to the /src dir for dispalying the top frame, but this
> could be left in the template dir.. or i could just add code to top.tpl
> file..

It's still not clear to me what you're trying to achieve with that.  I
don't think it's necessary.

> Thats the only things that are over-writing/changed/added from the original
> SQM.
>
> The only other problem i have is displaying the plugins eg:?
>
> <?php if (!empty($plugin_output['menuline'])) echo
> $plugin_output['menuline']; ?>
> displays nothing, the var is empty .. so i am guessing there is a function
> or include file, or something that i am not called..

It only displays something if you have a plugin installed that puts
some output there.  If your code in that spot is the same as the code
from the default template set, then I wouldn't worry.
(Continue reading)

Rajesh M | 22 Jun 2010 11:16

Re: limit number messages listed per page

>
>
> 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
(Continue reading)


Gmane