Update: Nov 13, 2006 10:15
Please read the readme.txt file for instructions on how to setup the wiki. You have to update your .htaccess file, copy the _folio folder, & load the setupdb.php page to add some tables to the db. You can not just unpack the files and have it installed.
Embarrassingly enough, I seem to be having troubles with the .zip file (it's always something simple, isn't it?). The first file got corrupted upon uploading, and the second file was an older version. I've uploaded the correct version to the file gallery.
Thanks for the patience everyone, please let me know if anyone has further problems.
Hello All;
I have updated & re-released the code for my Elgg “folio” wiki add-in. This version adds a number of new capabilities and bug fixes:
* Actions inside of a wiki (including comments) can be syndicated via RSS or viewed in a web page. You can now authenticate via the address to see private or restricted posts.
* Pages can now be deleted
* Pages can be moved to a different place in the page hierarchy
* Page permissions have been enhanced.
* A Page’s history can now be seen, and an easy ‘rollback’ feature has been added.
As before, the wiki editor uses a wysiwyg rich editor window, pages are organized hierarchically, and both people and communities can setup their own wikis without having namespace conflicts with others. Pages can be commented upon and set to a variety of permission levels,
I have also released the code to a ‘subscribe’ add-in that provides global rss for Elgg. Blogs, blog comments, files, and wiki events are all now trapped and can be viewed in a single location. This also supports authenticated RSS through a web address. The package for this also includes a sample new frontpage to show recent activity in the system.
If you would like to see a demo, go to our site at http://claremontconversation.org/tcourse/tndy4010/page/ to see the wiki in action, or to http://claremontconversation.org/tcourse/garrettn/activity/html/ to see an example screen with recent activity.
We also have a chatbox feature running, but I don’t want to just post the code since I’m not sure about the licensing issues. If you’d like a copy, email me off of the list.
This code has been tested on my WinXP dev box and a Red Hat Enterprise Linux server. Stan Stanier had problems running an early beta release on Windows Server 2003, but I haven’t been able to duplicate any problems on my boxes (possibly because he is also running a slightly-modified version of elgg?). If anyone has a Win2003 box, I’d appreciate any testing you can provide. In particular any error messages you can give me would be great. Aside from the Win2003 problem, this code has been running for over a month on our RHE Linux box without any problem.
To download code, please go to my Elgg files at http://elgg.net/garrettn/files/
Nathan Garrett

Comments
Hi Nathan
Thanks for this. The demo installation looks good and this is a piece of functionality I'm keen to see developed. Downloaded your zip file, but nothing in it!
Am I missing something?
Hi Paul;
Thanks for taking a look. I re-loaded the exact same zip file and it now works ok. Go ahead and try downloading it again, the first upload must have gone sideways for some reason.
Well, it was a silly question :-) I've figured it out - uncompress the file in the Elgg installation directory.
Funny thing is, I got the chat, too, so I'm getting messages from your chatbox:-) I'll try to delete it, though I'd be interested in having Chat integrated with Elgg.
Hey Jose, sorry about that -- it's totally my fault for carelessly uploading an older copy of the code. I'm fixing the uploaded archive now.
For instructions, see the readme.txt file in the zip file.
Hi Nathan,
Are you aware of any troubles with Elgg .67?
So far it all works fine, except deleting a page, which shows this error in the head of the page...
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php') in /home/communit/public_html/community/units/engine/library.php on line 42
tried to install it on .673 and got the following error:
Fatal error: Call to undefined function: apache_note() in /home/doggyblo/public_html/mod/folio/config.php on line 21
not sure where the apache_note function should be defined, but once I deleted the _folio and mod/folio folders, it went away. so no damage done.
Hi Todd. The apache-note function was just something to make it easier for us to add the username to the apache log files. It can be safely removed without any side-effects. Open up /mod/folio/config.php, and remove the following line.
apache_note('username',$_SESSION['username']);
I guess that you're running off of a different version of apache without that option enabled. Sorry for the trouble, I'll have to remember to disable that by default in the next release.
Thanks, Nathan. i appreciate the fast responses. I am now trying to install. I successfully commented out that line and was able to get to the site without the error, but when I go to _folio/setupdb.php, I get this error:
"Error, you are using a version of mysql that is out of date. you ahve to use 4.0 or greater.
This is what I'm running:
PHP: 4.4.4
MySQL: 4.1.21-standard-log
Apache: 1.3.37
Elgg: .70RC1
I really don't need wiki functionality but I want your global RSS plugin :-) Also, wouldn't mind taking a look at the chatbox plugin I've seen you mention elsewhere if you are still able/willing to share.
Thanks again.
Todd;
It's odd that you're getting that error. I just copied & pasted that from a core elgg file. Just comment out the below
if (intval($rs->fields[0]) <= 3) {
error('Error, you are using a version of mysql that is out of date. You have to use 4.0 or greater.');
die();
}
Yah, I do like the global RSS stuff. I'm halfway through getting my plug-in fully working with v.7, and have made a number of improvements in code & functionality. I finally have some time (& my carpal tunnel has eased off), and should be able to put in some work this weekend. I also like the authenticated feed rss option, it's nice to see what's going on without having to log-in all of the time.
If you send me your e-mail, I'll forward the chatbox files.
Success! Nice module! You probably got a lot of emails from my comments here, but I deleted them once I figured out my problem. I forgot to comment out the database version error message. Once I did that, and then changed my username back to news, the update file ran smoothly. I had changed my "news" account to my personal account name and it didn't like that.
Now, on to playing with the subscribe plugin though i know you said it isn't coded for v.7 yet.
You should be able to visit [site]/[username]/activity/html/ to get the unified rss feed. The .7 elgg kills the overwritten homepage that I used to use to show activity upon logging in. The current version has template html instead, making it difficult to dynamically update it. The url above is also hackable, change use activity to show friend & community activity, subscribe for a unified feed. Formats can be html for screen reading or rss for a feed. You can also add /weblog+weblog_comment/ to show blog entries & comments, or /all-page/ to show everything but pages. I'm also planning on having one more format style, summary, for showing clips from activities.
When doing the add-in, i didn't overwrite existing rss feeds, as I wasn't *that* confident in my hacking skills yet. The next version will probably do something like that though, especially in giving an admin panel when subscribing to a feed to alter settings.
Hi Nathan
I hope that you get to see comments on old posts! You'd discussed the customisable RSS feed that you can generate in the Elgg Features forum. I take it that it's possible to have specific RSS feeds that have the user name & password added to them - rather than the general RSS feed having them added, as that would rather defeat the object!
Hi Emma;
Yes, it's totally possible to have an authenticated RSS feed. Essentially what I do is have an rss feed address like /elgg.net/activity/user/news/rss/all/all/1:nathan:encodedpassword
The :nathan:encodedpassword is your username & password, and is automatically added into the link for you when you log into Elgg. The /user/news/ tells elgg which user you're looking at. the /rss/ says what format, and the /all/all/1 says the 1st page of all types of things (Files, comments, blog, wiki, ...), and all tags.
All of these parts are automatically set for you when you log into Elgg with the plugin.
Let me know if you have any other questions!