phpList Archive

I had been using a Archive page to display past mailings on my website. I just upgraded from 3.06 to the latest and now that archive.php page is just blank when I access it. Is there an updated version or any thoughts on why it doesnā€™t work anymore?

Thanks

Hi
If you are referring to the alangeorge - code enhancements (aka hacks) the website is in the process of being updated and the pages renamed. However the site search engine will suggest where you can go if you ask the right question!! The archive routines have continually been updated to reflect changes made by the core developers and are fully functional from releases 2.10.17 thru to 3.0.12. The new gateway to the enhancements is now at

AlanGeorge-Photography

Hope this helps the numerous people that have landed on the 404 page and not used the search engine, which by the way also searches the archived newslettersā€¦i.e. the search engine on the AG-P site

Alan

1 Like

I will check thereā€¦ Thanks.

I did search on the new phpList site and the word archive returned nothing. Itā€™s now returning this thread, so future people should have some reference now.

The direct link is http://www.alangeorge-photography.com/lcode_30x_10.php

Hi, have you considered making these into plugins etc? Looks all useful stuff! :slight_smile: You are welcome to blog about it at phpList.org.

Also, could you update the logo on that page? You can get info here https://www.phplist.org/phplist-design-notes/

Hey @AlanGeorge, youā€™re a genius for bringing this feature to life! I can only wish the developers would have made it official. Alas, a long time ago in the old forums Iā€™ve asked for your cooperation to no avail. How about nowadays?

Iā€™ve glad you got rid of the obsolete ereg functions, but Iā€™ve still got stuff added to your latest version:

  1. Got rid of the need to supply a user ID
  2. Attachments(!)
  3. Footers
  4. Templates
  5. Multilingualism
  6. Changed some query loops to just one run (when the expected result is just 1 line anyway)
  7. Removed hardcoded widths, etc. Sadly itā€™s still not responsive, possibly due to heavy table usage

I prefer not to do it each and every time you release a new version. Will you consider putting a shared work in Github, etc.?

1 Like

Thank you very much, Alan!

We wrote a little manual in german: https://bafoegini.de/thanks2alan/

In a few months we will also update.

1 Like

@lwc Great summary of potential improvements. Are you still applying your local patches? Can you share them with us?

Sure, been using this version plus my patches for years now. To clarify, this is a standalone file/page that shows your archive: archive.zip (6.8 KB)

Some notes:

  1. My patches are always between:

Original code goes here
// custom code - start
My patch goes here
// custom code - end
Original code goes here

  1. As mentioned above, Iā€™ve made it multilingual. Iā€™ve set up default English strings, which are replaced dynamically with (currently custom) strings from the active language file, if such exists.
  2. You canā€™t run this file unless you add it to the default .htaccess:
    Replace
    <FilesMatch "(
    with
    <FilesMatch "(archive.php|
  3. If you want visitors to see your archive, they obviously need to know it exists. So in index.php I suggest to use:

// Print unsubscribe page link
// custom code - start
if (isset($strArchiveTitle))
$TitleArchive = $strArchiveTitle;
else
$TitleArchive = ā€œSee the archiveā€;
printf(ā€œ\r\nā€ . ā€˜<p><a href=ā€œarchive.phpā€>%s</a></p>ā€™, $TitleArchive);
// custom code - end
if (SHOW_UNSUBSCRIBELINK) {

1 Like

Brilliant, thanks @lwc. At least now others can look at this. Hopefully the functionality can make its way into core at some point. If anyone wants to work on this please step up.

1 Like

@lwc You might not be aware of the View in Browser plugin, which provides an archive page, which lists the campaigns sent to a subscriber.

Each campaign entry is a link to the pluginā€™s page to display that campaign.

See https://resources.phplist.com/plugin/viewinbrowser