Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Newsletter plugin for question2answer

branch: master
Octocat-spinner-32 README.rst readme February 17, 2013
Octocat-spinner-32 answer.html fixed template html February 19, 2013
Octocat-spinner-32 comment.html fixed template html February 19, 2013
Octocat-spinner-32 news.css css tweaks August 13, 2012
Octocat-spinner-32 qa-news-admin.php fixing emailing August 13, 2012
Octocat-spinner-32 qa-news-lang-default.php fixes August 13, 2012
Octocat-spinner-32 qa-news-layer.php first commit August 13, 2012
Octocat-spinner-32 qa-news-overrides.php fixed login August 13, 2012
Octocat-spinner-32 qa-plugin.php fixed template html February 19, 2013
Octocat-spinner-32 question.html fixed template html February 19, 2013
Octocat-spinner-32 template.html fixed template html February 19, 2013
Octocat-spinner-32 votes.html should work August 13, 2012
Octocat-spinner-32 wkhtmltopdf.php first commit August 13, 2012
README.rst

Question2Answer Newsletter

Description

This is a plugin for Question2Answer that sends out an html newsletter of the latest top questions, answers and comments.

Features

  • fully customizable HTML template via admin/plugins
  • options for sorting and inclusion
  • option for static or on-the-fly creation (static requires PHP to write to file)
  • option to create PDF file - requires wkhtmltopdf (see below)

Installation

  1. Install Question2Answer
  2. Get the source code for this plugin from github, either using git, or downloading directly:
    • To download using git, install git and then type git clone git://github.com/NoahY/q2a-newsletter.git book at the command prompt (on Linux, Windows is a bit different)
    • To download directly, go to the project page and click Download
  3. navigate to your site, go to Admin -> Plugins on your q2a install, go to the "Newsletter" panel, select options, click "Save".
  4. If you want the newsletter to actually send out, you will need to set up a cron job to access the page (e.g. via wget). The cron url is in the admin/plugins section.

Static Files

To output static files you need to find a location that is writeable by PHP. The default is to write to the plugin dir itself, which is probably not writeable. On Linux, something like this works:

touch newsletter.html newsletter.pdf chmod 666 newsletter.html newsletter.pdf

PDF File

To use the PDF export, you need to put the binary of wkhtmltopdf, available here:

http://code.google.com/p/wkhtmltopdf/downloads/list

in the same directory as these plugin files. It works for Linux 64-bit, no guarantees apart from that.

Disclaimer

This is beta code. It is probably okay for production environments, but may not work exactly as expected. Refunds will not be given. If it breaks, you get to keep both parts.

Release

All code herein is Copylefted.

About q2A

Question2Answer is a free and open source platform for Q&A sites. For more information, visit:

http://www.question2answer.org/

Something went wrong with that request. Please try again.