MailPress Review - Theme Design (Intro)
Table of contents for MailPress Review
- MailPress Review - Introduction
- MailPress Review - Installation
- MailPress Review - Configuration
- MailPress Review - Selecting a Theme
- MailPress Review - Theme Design (Intro)
- MailPress Review - Theme Design (Styling)
If you’ve done any work at all on WordPress themes, MailPress themes will be very comfortable. Â MailPress adds a few extra things, but most - if not all - of the WordPress API is available from within a MailPress theme. Â Andre has some rules for developing themes which you may want to read in addition to the information here. Â Go to his mailpress site and then click on Design (too bad I can’t link directly there) to view it. Â Here are some key rules:
- No spaces in theme folder names.
- CSS and javascript are not supported (bummer!).
MailPress themes reside under the plugins\mailpress\mp-content\themes directory - look familiar? Â Themes consist of four different sets of files.
Required Files
style.css
As in a WordPress theme, this file contains information about the theme, including its name, a description, tag information, etc. Â Nothing else in this file is used since you can’t use CSS in MailPress themes.index.php
Doesn’t do anything at all and must be empty. Â Not sure why it exists.screenshot.jpg
Displayed on the MailPress theme admin page. Â If you design your own theme, please don’t just steal a screenshot from another theme. Â Create one that looks your new theme.
General-Purpose Files (Optional)
None of these files are required, but they improve maintainability and consistency by reducing redundancy (say that 10 times fast).
function.php
Contains common definitions that can be used by all templates.header.php
Contains code for common header content. Â Template files can include this by specifying the following statement:
<?php $this->get_header(); ?>footer.php
Contains code for common footer content. Â Template files can include this by specifying the following statement:
<?php $this->get_footer(); ?>sidebar.php
Contains code for common sidebar content. Â Template files can include this by specifying the following statement:
<?php $this->get_sidebar(); ?>
Note that the standard functions for widgets used in WordPress cannot be used here since CSS can’t be used.
MailPress Templates (Optional)
These template files correspond to different types of subscriptions to your site.
new_subscriber.php
Sent to a new subscriber after they have registered. Â The email will contain a link the user can click to confirm their subscription.confirmed.php
Sent to a new subscriber after they have confirmed their subscription.single.php
Sent to subscribers each time a post is published.daily.php
Sent to subscribers containing a recap of the previous day’s posts. Â The maximum number of posts included in the email is specified on the General Settings page.weekly.php
Sent to subscribers containing a recap of the previous week’s posts. Â The maximum number of posts included in the email is specified on the General Settings page.monthly.php
Sent to subscribers containing a recap of the previous month’s posts. Â The maximum number of posts included in the email is specified on the General Settings page.comments.php
Sent to subscribers each time a comment is approved/posted.daily-cat.php,weekly-cat.php,monthly-cat.php
Sent to subscribers based on categories. Â Information on this feature is needed from Andre.
MailPress Templates for wp_mail
These templates are replacements for templates built-in to WordPress.
moderate.php
Sent to the moderator of the site when a new comment is awaiting approval. Â Also sent to a post author when a new comment, trackback, or pingback is posted.new_user.php
Sent to the site admin when a new user registers. Â Also sent to the new user with their username and password.




March 11th, 2009 at 1:03 pm
Hey, I cannot find anywhere how to allow people to choose their own mailing lists. On the website all I get is single text field asking about email address, but I would like to see checkboxes where people can select additional mailing lists they like. I’ve installed the additional plugin “mailpress_mailing_lists” they offer. I would like to have something like this, something where they can choose straight away what is interesting.:
http://andrerenaut.ovh.org/wp/wp-content/plugins/mailpress_mailing_lists/screenshot-6.jpg
Could you please help?
Thanks
June 23rd, 2009 at 12:16 am
Hi David…I need your urgent advice…I love your mailpress theme and have done a few changes (not smart for a total novice). However, I just completed my first mass mail-out c.1,000 subscribers to my new site and an early respondent pointed out that all the links in the email are showing up in large blue letters in full…Looks pretty bad…Not sure whether I have tampered with something I shouldn’t have or whether I need to reconfigure something in mailpress to fix it…
Happy to send you a screen shot or send you an email so that you can see the results…would really appreciate your advice on how to fix it…
If you would like a copy of the code can you please advise me which page is involved and I will copy and paste it to you or alternatively email it to you…
Thanks for you advice in advance.
Regards,
Steve