While the previous section explained how to add functionality to phpList by manual editing of the source code, this section will walk you through implementing a "ready-built" phpList hack—the messages archive page.
Perhaps you want your readers to be able to refer to an "archives" page to be able to find and re-read your previous mailings. phpList itself does not provide such an archive, but some committed users have implemented an effective solution.
The solution is discussed in the phpList forums at http://forums.phplist.com/viewtopic.php?t=1501 and the necessary code is available at http://docs.phplist.com/NewsletterArchive. Copy the contents of the wiki page (everything from the opening<?php
tag at the top to the closing ?>
tag at the bottom), and paste it into a new file called archive.php
at the root of your publicly accessible phpList files.
You'll recall from Chapter 8, Securing phpList, that the .htaccess
file in the root of your phpList installation...