Automatic upgrade deleting my custom Mailpress themes

87 views
Skip to first unread message

Xanthur

unread,
Nov 20, 2009, 6:09:25 PM11/20/09
to MailPress
The last two upgrades of Mailpress (4.01 and 4.02) have completely
zapped any of my custom themes. Which causes lots of extra work. Any
chance you can fix that before your next upgrade?

andré renaut

unread,
Nov 20, 2009, 6:21:25 PM11/20/09
to mail...@googlegroups.com
Automatic upgrade delete all files of the plugins to replace them by the new ones.

So MailPress should not be upgraded automatically as long as you have some customized files in mp-content/themes

andré renaut

unread,
Nov 20, 2009, 6:23:07 PM11/20/09
to mail...@googlegroups.com
Automatic upgrade is a WP feature.

About your mailpress themes, i hope you followed the following guidelines :

http://www.mailpress.org/wiki/index.php?title=Manual:Theme:Development

cb

unread,
Nov 21, 2009, 3:40:59 PM11/21/09
to MailPress
One thing that might be easy to do is allow the custom theme to be
placed in the hierarchy of the wordpress theme. Shopp does that: you
place a folder named "shopp" in your wordpress theme folder and it
automatically uses that folder for it's theme, else it uses it's own
default theme in it's own folder. So, if we can put our custom theme
under folder name "mailpress" within our wordpress theme, then
automatically upgrading me be more viable! Thoughts?

andré renaut

unread,
Nov 21, 2009, 4:48:29 PM11/21/09
to mail...@googlegroups.com
Inside mp-includes/class/MP_Themes.class.php

    function get_theme_root()
    {
        return apply_filters('MailPress_theme_root', ABSPATH . MP_PATH ."mp-content/themes");
    }

....

2009/11/21 cb <cbp...@gmail.com>

--

You received this message because you are subscribed to the Google Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com.
To unsubscribe from this group, send email to mailpress+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mailpress?hl=.





--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.

ovivankenobi

unread,
Nov 22, 2009, 10:59:51 AM11/22/09
to MailPress
or in a future version of mailpress you could add an options so we can
specify the path to the templates?

andré renaut

unread,
Nov 22, 2009, 11:04:50 AM11/22/09
to mail...@googlegroups.com
You can code your own specific add on defining the path using hook

'MailPress_theme_root'

2009/11/22 ovivankenobi <ovivan...@gmail.com>
or in a future version of mailpress you could add an options so we can
specify the path to the templates?
--

You received this message because you are subscribed to the Google Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com.
To unsubscribe from this group, send email to mailpress+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mailpress?hl=.


cb

unread,
Nov 26, 2009, 5:49:27 PM11/26/09
to MailPress
right on, thanks! I think this is a good change for the core so
updating will be as easy as using the wordpress update! You rock!

On Nov 21, 2:48 pm, andré renaut <andre.ren...@gmail.com> wrote:
> Inside mp-includes/class/MP_Themes.class.php
>
>     function get_theme_root()
>     {
>         return apply_filters('MailPress_theme_root', ABSPATH . MP_PATH
> ."mp-content/themes");
>     }
>
> ....
>
> 2009/11/21 cb <cbpi...@gmail.com>
>
>
>
> > One thing that might be easy to do is allow the custom theme to be
> > placed in the hierarchy of the wordpress theme. Shopp does that: you
> > place a folder named "shopp" in your wordpress theme folder and it
> > automatically uses that folder for it's theme, else it uses it's own
> > default theme in it's own folder. So, if we can put our custom theme
> > under folder name "mailpress" within our wordpress theme, then
> > automatically upgrading me be more viable! Thoughts?
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "MailPress" group.
> > To post to this group, send email to mail...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mailpress+...@googlegroups.com<mailpress%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages