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?
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
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
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.
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:
Got rid of the need to supply a user ID
Attachments(!)
Footers
Templates
Multilingualism
Changed some query loops to just one run (when the expected result is just 1 line anyway)
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.?
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:
My patches are always between:
Original code goes here
// custom code - start
My patch goes here
// custom code - end
Original code goes here
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.
You canāt run this file unless you add it to the default .htaccess:
Replace <FilesMatch "(
with <FilesMatch "(archive.php|
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) {
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.