Posted by d3bruts1d on May 3, 2007 at 5:20 am

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.

»
Misc | Permalink | Add Comment | Trackback
Post a Reply



About d3bruts1d.com
d3bruts1d.com is my [d3bruts1d] collection of news, rants, and random thoughts relating to the subjects Technology, Gaming, Entertainment, and just about everything else. This place is in no way meant to be considered a serious or professional news blog, in fact anyone who attempts to take it as such should probably seek professional psychiatric help immediately. It's here so that I can share with other people the things that interest me. If you're here, then hopefully you share similar interest. If we have nothing in common, then I have but one question for you, "why on God's green Earth are you here?" If you happen to be as messed up as I am, feel follow me on Plurk, FriendFeed, or any of other of the many social networks and websites I'm on.
d3bruts1d.com © 2001-2008. All Rights Reserved.