Comments have been closed as the plugin has not been updated almost forever. I would refer people to the Extended Live Archive which is the Super Archives with extra features.
As I mentioned earlier I had problems with javascripts interfering with each other while loading. While I sorted out my problems with regards to the javascript, the reason why I was playing around with javascripts has already been leaked, and by none other than Michael Heilemann of Binary Bonsai. Since this is inspired by his ideas I guess it’s only fair.
Introduction overwith, I hereby give you: The Engineered Boulderer’s Super Archives Plugin to WordPress
For a demonstration, head over to Michael’s archives page, I am going to put it on my archives page, but it requires a minor redesign before I do.
IMPORTANT The javascript functions in my script have been tested, however, if there are other function set to run when the body loads, and they have problems then the super archive Will Not Run. The process of debugging javascripts is arduous work as they simply fail silently, because of this I do not have time to perform technical support on other people’s javascripts. That said, if Michael could get Super Archives to run on the B with the combination of javascripts he uses, then you can too.
I have included some documentation below, and in the plugin package.
Changelog
Version 1.6.2: Fixed a bug where draft posts in a month would make it show up in the list of months, thanks for the heads up Matthew. Requires a rebuild of the cache (edit a post or post a comment to rebuild).
Version 1.6.1: Fixed a regression which would prevent the php script from reading the settings and cache.
Introduced a more robust Javascript method of attaching events to the loading of the window.
Version 1.6: Fetches the character set from the blog to show international characters correctly.
New functionality for truncating post titles, see documentation below or with the plugin.
Version 1.5.2: Added a missing " in the description. Check the result from each use of document.getElementById() so as to not call null objects.
Version 1.5.1: Put a more stringent check on the FAT object for the Fade Anything Technique.
Version 1.5: Fixed bug where moderated comments were counted. Also, made sure cache was updated for new comments, and post deletions, and pingbacks, etc.
Updated cache structure so the cache can update (for example due to a new comment) while people are browsing the archives without requiring a reload (the plugin should automatically update your cache if you are using an old version).
Included new functionality, see the documentation included below or with the plugin.
Version 1.2: Implements support for Internet Explorer. Many thanks to Chris Boulton for his solution which worked wonders.
Version 1.1: Fixed a bug in the javascript (simple typo, oops).
System Requirements
- Wordpress 1.5 or later
- PHP 4.3.0 or later
Documentation for The Engineered Boulderer’s Super Archive Plugin
The Super Archive plugin is one selfcontained bundle called teb-super-archive, which should be put into the plugin folder to yield the following structure:
wp-content/ ... plugins/ ... teb-super-archive/ includes/ super-archive.js tsa.php tsaAddLoadEvent.js teb-super-archive.php ... ...
The plugin writes some javascript information to the header of each page, and provides a single template function called teb_super_archive(). The function teb_super_archive() takes arguments in the url format as seen in wp_list_cats(), the tags in the arguments are described below.
If teb_super_archive() is called with the standard (empty) argument the following will be output
<div id="teb-super-archive">
<ul id="teb-super-archive-year">
<li id="teb-super-archive-year-2005">2005</li>
...
</ul>
<ul id="teb-super-archive-month">
<li id="teb-super-archive-month-5">May</li>
...
</ul>
<ul id="teb-super-archive-post">
<li id="teb-super-archive-post-...">...</li>
...
</ul>
</div>
which can be styled. The obvious result of the template tag is the <div id="teb-super-archive"></div>, the remaining code is written by javascript and is not visible by viewing source in the browser, it can be styled easily enough though.
The plugin provides an additional template function teb_sa_reset_cache() which deletes the cache files. As with any function which delete files, this function should only be used in an emergency! I have tested it on my test blog and with the help of Michael Heilemann, but there could still be bugs. Use with caution.
Tag parameters
newest_first
(boolean) Sets the sort order of years, months and posts. If true it will show the newest year, month, and post first.
- 1 (true – default)
- 0 (false)
id
(string) The id attribute for the base div of the archive, defaults to ‘teb-super-archive’.
selected_text
(string) The text that is shown after the currently selected year or month (the > sign in your example), defaults to ‘’. If you wish to use html entities (fx. » for ») you should encode it using urlencode().
selected_class
(string) Class for the currently selected year or month, defaults to ‘selected’.
num_entries
(boolean) Sets whether the number of entries for each year and month should be shown.
- 1 (true)
- 0 (false – default)
num_comments
(boolean) Sets whether the number of comments for each entry should be shown.
- 1 (true)
- 0 (false – default)
day_format
(string) A date format string to show the day (or date) for each entry (ie. ‘jS’ to show 1st, 3rd, and 14th), defaults to ‘’ (show no day). Format string is in the php date format.
number_text
(string) String to show for number of entries, can contain HTML, % is replaced with number of entries, defaults to ‘(%)’.
comment_text
(string) String to show for comments, can contain HTML, % is replaced with number of comments, defaults to ‘(%)’.
closed_comment_text
(string) String to show if comments are closed on an entry, can contain HTML, % is replaced with number of comments, defaults to ‘’ (empty string).
fade
(boolean) Sets whether changes should fade using the Fade Anything Technique, note that all elements on the page that have the class “fade” will fade, even those not in the archive.
- 1 (true)
- 0 (false – default)
error_class
(string) Class to put on paragraphs containing errors, defaults to ‘alert’.
hide_pingbacks_and_trackbacks
(boolean) Sets whether pingbacks and trackbacks should influence the number of comments on an entry. Changing this value does not take hold until the cache files are rebuilt. A true value will hide trackbacks and pingbacks from the comment number.
- 1 (true)
- 0 (false – default)
truncate_title_length
(number) Length at which to truncate titles, defaults to 0 (titles are not truncated).
truncate_title_at_space
(boolean) Sets whether at title should be truncated at the last space before the length to be truncated to, or if words should be truncated mid-senten… Has no effect if truncate_title_length is 0.
- 1 (true – default)
- 0 (false)
truncate_title_text
(string) The text that will be written after the titles that have been truncated, defaults to … (…). Same rule applies as for selected_text, use urlencode() to encode it.
Tags: Caught in the web, Plugins, Programming, WordPress
Am I missing something here? I installed this plugin and activated it… now what? I see nothing.Can someone explain this in simplified terms?
Thanks
[…] いまだ発展途中のbeta版、細かなバグの出現と修正を繰り返している状態なので人によっては「イライラ」してしまう部分も多くあるかも知れませんが、オンタイムでバーチャルな「K2」を登っていきたいという方は一度お試しください。いつかは「K2」の頂きにたどり着けるはずです。ほんものの「K2」のように苦労を強いられるかもしれませんが…。 サポートされているプラグインは以下の通りです。 ・Extended Live Archives or Super Archives […]
[…] Extended Live Archive Plugin(以下簡稱 ELA)究竟有什麼用途呢?ELA 是提供搜尋 archives 功能的,你或許會問:「這個功能 WordPress 不是已經內置嗎?」WordPress 內置的 archives 搜尋功能是比較陽春的,而 ELA 就不同了,它是根據 Super Archives Plugin 再作改進,現在它的功能已經遠遠超越了 Super Archives Plugin 了。 […]
[…] Extended Live Archive Plugin(以下簡稱 ELA)究竟有什麼用途呢?ELA 是提供搜尋 archives 功能的,你或許會問:「這個功能 WordPress 不是已經內置嗎?」WordPress 內置的 archives 搜尋功能是比較陽春的,而 ELA 就不同了,它是根據 Super Archives Plugin 再作改進,現在它的功能已經遠遠超越了 Super Archives Plugin 了。 […]
great plugin, works like a charm!
[…] ・Extended Live Archives or Super Archives ・FlickrRSS ・Gravatars ・Favatars ・Conversational Categories ・Time Since ・Related Posts ・Brian’s Latest Comments ・del.icio.us cached ・Subscribe to Comments ・Bunny’s Technorati Tags […]
[…] http://www.jonas.rabbe.com/archives/2005/05/08/super-archives-plugin-for-wordpress/ […]
[…] WordPress Plugin: Super Archives http://www.jonas.rabbe.com/archives/2005/05/08/super-archives-plugin-for-wordpress/ […]
I had been having the ‘Could not open cache file for years’ problem, no matter what i did.
I found that the mkdir command and the fopen command that makes the settings.dat file and cache-dir folders in the teb-super-archive.php were making the items, but they was being made to be owned by ‘apache’ on the web server. This was resulting in permission errors later. I remedied it by manually creating the folder myself and chmodding it and the removing the rmdir and mkdir commands from within the php. That way, when I edited an entry on my blog, it then created the years.dat files properly without first dropping and recreating the cache-files folder with improper permissions… I suspect that’s why others are having the same issue I was having.
[…] Super Archives Plugin for WordPress […]
[…] 程序:WordPress 2.0 + Jeffrey的中文语言文件 + 几个插件(Adhesive + Emotions +中文 WordPress 工具箱 + Random Quotes (Chinese) + Super Archive)模板:triSexuality Standard + 一些小的改动(模板中加了我站的链接,不喜欢的可以去掉<li><a href=“http://www.moyii.com/press”>Press At Moyii</a></li> ) […]
[…] The archives have changed too, they now work. Shocking. They have mutated into Super Archives [www.jonas.rabbe.com/archives/2005/05/08/super-archives-plugin-for-wordpress/], not really so super and more of a long list. However in its favour it works, unlike any archive plugin I tried. Even narchives failed me, I guess they hate Wordpress 2.x. […]
IE bug:
after i had installed your super archives plugin, it worked fine in Mozilla, but not in IE. When i clicked a year or a month, nothing happened. In the file super-archive.js (function: tsaLiveReqDoReq(query)) , i wrote the following:
if (tsaIsIE) {
tsaLiveReq = new ActiveXObject(“Microsoft.XMLHTTP”);
}
…instead of what was there before…
if (window.XMLHttpRequest) {
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
tsaLiveReq = new ActiveXObject(“Microsoft.XMLHTTP”);
}
Hi Jonas.. i really didnt wanted to bother you with this.. but im getting this error almost every time i post a new entry:
Warning: unlink(/home/.kairo/uberbin.net/wp-content/teb-super-archive-cache/cache-files/2002-11.dat): No such file or directory in /home/.kairo/uberbin.net/wp-content/plugins/teb-super-archive/teb-super-archive.php on line 126
Warning: unlink(/home/.kairo/uberbin.net/wp-content/teb-super-archive-cache/cache-files/2002-7.dat): No such file or directory in /home/.kairo/uberbin.net/wp-content/plugins/teb-super-archive/teb-super-archive.php on line 126
Warning: unlink(/home/.kairo/uberbin.net/wp-content/teb-super-archive-cache/cache-files/2001-12.dat): No such file or directory in /home/.kairo/uberbin.net/wp-content/plugins/teb-super-archive/teb-super-archive.php on line 126
Warning: unlink(/home/.kairo/uberbin.net/wp-content/teb-super-archive-cache/cache-files/2001-11.dat): No such file or directory in /home/.kairo/uberbin.net/wp-content/plugins/teb-super-archive/teb-super-archive.php on line 126
Warning: unlink(/home/.kairo/uberbin.net/wp-content/teb-super-archive-cache/cache-files/0-0.dat): No such file or directory in /home/.kairo/uberbin.net/wp-content/plugins/teb-super-archive/teb-super-archive.php on line 126
Warning: rmdir(/home/.kairo/uberbin.net/wp-content/teb-super-archive-cache/cache-files/): No such file or directory in /home/.kairo/uberbin.net/wp-content/plugins/teb-super-archive/teb-super-archive.php on line 130
Warning: Cannot modify header information – headers already sent by (output started at /home/.kairo/uberbin.net/wp-content/plugins/teb-super-archive/teb-super-archive.php:126) in /home/.kairo/uberbin.net/wp-admin/post.php on line 59
got any idea whats going on?
Many thanks and sorry to bother you :S
No matter what I try I get the following:
“Could not open cache file for years”
I have created the diretories. Granted full permissions and I still get it.
I have a shared hosting account with MediaTemple if that helps. Looks like a greta plugin but all I can do is look
Any help would be great.
I have installed Super Archive but am running into some problems. I’m running K2.
1st nothing shows up on the archive page.
2nd when I publich a new post I get these errors:
Warning: mkdir(/home/.jerrie/hubs/artifacting.com/blog/wp-content/teb-super-archive-cache/cache-files/): No such file or directory in /home/.jerrie/hubs/artifacting.com/blog/wp-content/plugins/teb-super-archive/teb-super-archive.php on line 195
Warning: Cannot modify header information – headers already sent by (output started at /home/.jerrie/hubs/artifacting.com/blog/wp-content/plugins/teb-super-archive/teb-super-archive.php:195) in /home/.jerrie/hubs/artifacting.com/blog/wp-admin/post.php on line 59
It seems like the necessary folders and files aren’t getting written. my wp-content folder is chmodded to 777 so it should be writable. Any Ideas what could be goin wrong here?
[…] Extended Live Archives or Super Archives […]
Even after I enable the plugin, the Super Archives options page doesn’t show up. Am I missing it somewhere?
[…] Super Archives […]
Hello Jonas,
thank you for this great plugin! Beautiful work!
But is there a way to show dates in other languages than English? I would like to show mine in French, and the language file in WP doesn’t seem to have any effect on this plugin. Someone told me about internationalizing the date formats by making it i18n, but I wouldn’t know how to do that myself.
It would be great if you knew how to make this possible. Thank you!
[…] Super Archive – Implements a dynamic archive, the best archives system i know. […]
I only get some error about the cache: Could not open cache file for years
What can this be?
Birger
[…] There are two big areas that MediaTemple does actually fall short for me. The first is php. Unfortunately, php runs in ’safe mode’ on their shared servers. I knew this going in, but I wasn’t sure if it was going to affect my blog or not. As it turns out, it did. I can no longer run two of my favorite (and useful) wordpress plugins… Super Archives, and WP-Cache 2. I’m really missing both of these plugins. […]
[…] Super Archive – Implements a dynamic archive, the best archives system i know. […]
[…] Super Archive – Implements a dynamic archive, the best archives system i know. […]
[…] Super Archive – Arivinizle bir btn olarak alr ve arivinizi dinamik hale getirir. […]
[…] Super Archive – Arşivinizle bir bütün olarak çalışır ve arşivinizi dinamik hale getirir. […]
[…] Super Archive – Implements a dynamic archive, the best archives system i know. […]
[…] Super Archive – Implements a dynamic archive, the best archives system i know. […]
http://jaredbares.com/?page_id=146
Only displaying “Could not open cache file for years” and I’ve set all the permissions properly per the notes above, any tips?
[…] Super Archive – Arşivinizle bir bütün olarak çalışır ve arşivinizi dinamik hale getirir. […]
[…] added super-archives stylesheet support […]
Hi,
I installed the plugin a while ago (I have wordpress 2.0), but can’t get it to work. I used the style (css) and code from binarybosai, clear the cache, but still nothing worked. Here is what I have so far
1. I copy/paste binarybonsai css style into my style.css
2. I copy/paste the code into my header.php
I bet I miss some major step.
My site is here praguebuzz.com
I want to put “Archive” on the menubar, where “Home” and “About” page are.
Thanks for any help I can get. I hear so much aobut this super-archive can’t wait to use it.
I have attempt to add this to my WP site in everyway that I know how and failed. Is there anything that is a specific step by step walkthrough on installation?
Thanks!
[…] «schick» aussehen soll) http://orderedlist.com/articles/wordpress-administration-design-tiger/ permalink | trackback uri| […]
[…] Super Archive – Implements a dynamic archive, the best archives system i know. […]
I couldn’t find Your e-mail so I’ll write it here.
and it’s not only title – when you click on it you may see full post.
I found that when useing this plugin – I wrote a post which supose to be published in the future it’s avilable in LIve Archive
[…] New Archives Page By Flexo on Sunday, November 5th, 2006 at 2:22 pm, filed under Consumerism Commentary I’m working on a new page for the Consumerism Commentary archives to make living in the past (or just browsing old entries) easier. It’s powered by JavaScript and the Super Archives plugin for WordPress. […]
Is there anyone way to show private posts in super archive? So they’re only visible by you?
[…] SuperArchives […]
[…] Super Archive – 实现动态存档,最好的存档插件 […]
[…] Super Archive – 实现动态存档,最好的存档插件 […]
[…] SuperArchives adnie wywietla archiwum postw. […]
Even I have the same issue as Henrik. Permissions set correctly – in fact version 1.2 worked a treat – the latest one keeps on erroring with “Could not open cache file for years”. Any help would be greatly appreciated.
Love this plug-in. I was wondering how much work it would take to have it dig down further to the days. We get multiple posts a day, and I can see each month winding up with anywhere from 100-500 posts. Would it be possible to do something like:
year -> month -> list of day -> posts of day
[…] Special thanks to Alvin who kindly pointed out to me that my archives weren’t displaying in either Firefox or IE on a PC. I was using the Super Archives plugin. I first disabled all the CSS specific to the styling on that page. Didn’t help, so it was something in the plugin code itself, although it’s strange because the plugin author’s archive page worked on the PC browsers I tried. […]
Hi
I’m trying to get your great plugin working but none of the sexy formatting is coming through – check out http://www.connectedinternet.co.uk/manage/. I added to my page tempate – what am i donig wrong?
Thanks
EB
Thanks for the plugin8 Working great.
I tried to get this to work, following multiple site’s directions but in the end I activate it and I get a blank. No errors, nothing. I’m running Wordpress 2.04. and I put the cache directory in wp-content with permissions set to 755. I really don’t know why it’s not working.
My archive page consists of this:
Thanks for your help.
Is there anything to hide the unwanted comments?