Version: 1.4, by majorxp
Developer Last Online: Dec 2012
Category: Integration with vBulletin -
Version: 3.6.5
Rating:
Released: 03-18-2007
Last Update: 03-21-2007
Installs: 29
Additional Files
No support by the author.
Last Updated Wiki pages block
Version 1.4
Purpose
This extension will list the last updated or new wiki entries.
It can be included as a vbAdvanced block or included wherever you desire. It was designed to be included in a vbAdvanced block for vBulletin. It also goes nicely with Nuhit's MediaWiki integration tool but is not required.
Requirements
This is only supported on MediaWiki 1.8.2 - 1.10. It might run on a lower version, but it hasn't been tested. It has been reported 1.12 not to function. If you are interested in updating this to support additional versions as they are released let me know and you can be a co-developer on this.
Warning
This is only designed for boards with less than 50 wiki page edits per minute. If you have more, it almost becomes a useless mod (and puts a senseless burden on the server).
No warranty other than this file will take up a few kb on your hard drive.
Instructions
Edit the setting where you want the created file (wikichanges.htm) placed
If you have a table prefix on your WIKI, then edit the sql to reflect your prefix
Place this file in the extensions directory in your wiki
add this line at the bottom of LocalSettings.php (before the "?>")
PHP Code:
// Add last updates require_once "$IP/extensions/makevbmodule.php";
Edit a wiki article
Browse to the file in your setting below to see if it worked
Add vbAdvanced block to include the file
Test links inside included page to ensure it works (you may have to edit depending upon your configuration)
Upgrade Instuctions
Backup your old version
Edit the current version's settings locally
Replace the old version with the updated version with your settings
Edit a wiki article (to generate a new wikichanges.htm file)
Support
Support is limited to this forum and to those who click install (yes I can see who did). If you have any questions or find a bug, post it here. I spend time with my family on the weekends, so expect long waits then.
Versions
1.4 - Important bug fix. This fixes two issues:
Links to namespaces were not being included in links
Special or other undesirable pages being listed when updated
This version correctly generates links and will only show updated articles, user pages, images, and categories.
1.3 -Added namespace for User pages (thanks jimmcq)
1.2 - Removed some personal code references
1.1 - Update with table prefix setting (thanks jimmcq)
1.0 - Initial Release
It looks like you need a make a couple of small updates though... You didn't add anything to put the prefix in front of the database table name (if there is a prefix), and you appear to the your own filepath (/legend/wiki/) hardcoded into the output.
After I changed those then it seemed to work just fine.
Add a new module and choose wikichanges.htm from the drop-down box in "File to Include". Also make sure you choose "Yes" in "Clean File Output". Once you have the module added, simply choose what pages you want it to show up.
If the file doesn't show up under the drop-down, change the directory that the file is created in makevbmodule.php settings.
That worked! Thanks! One other small change is that you appear to be missing the namespace in the title. What I mean is that a user page titled "User:majorxp" is just being linked as "majorxp".
Also (and this may not apply to everyone) but you may want to utf8_decode the title names for that special characters like ñ come out correctly.
I think you're going to need to do an actual db lookup of the namespaces... There are quite a few others that you haven't included such as Talk, User talk, Help, Image, {SITENAME}, MediaWiki, Template, etc.
I think the ordering could change and custom ones could be added, etc. so that's why they can't really be hardcoded.