I’ve finally had some time to sit down and revisit my News Archive Page, and I’ve got a new version available for use.
First off, let me say that this is not a normal e107 plugin, which is why I try not to call it that. There is no configuration to be done through the e107 Admin control. Instead any change that you want to make needs to be done directly to the code. This is as close to a true plugin as I’ll probably take this. Don’t worry, I hope I’ve commented the code enough for everyone to understand.
Previously, I had 4 different “versions” of the news archive, each with a different display. That is no more, as I have combined the code for everything into one nice little file. Sure, it could have probably been done better, but this works for now.
Here is what each “version” looks like:
- Version A
- Version B
- Version C
- Version D
You can switch which version is displayed by editing the $archversion variable in the code. Default is “B” which is what I am using.
Based on feedback, I’ve also added the ability to display archive items per news category (example). The last addition was the ability to switch the look of the Next / Previous navigation, this was done to allow users to make it fit better into their theme. You can see the two examples of the P/N here.
So, how do I install it?
Installing this page is simple. Simply create a file (e.g. archive.php) and copy this code into it. Save the file and upload it to the e107 root/base directory. Hint: It’s the same directory where news.php and class2.php can be found.Do not try and put the file in the e107_plugins directory! This is not a plugin, and it will not work in there!
Please note, the e107 News Archive Page was tested with e107 v0.7.8 only. I cannot guarantee that it will work with any earlier version, though there isn’t really any reason for it not to.

Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks
(Trackback URL)