Extension:WordPressPosts
From MediaWiki.org
|
WordPressPosts Release status: unstable |
|||
|---|---|---|---|
| Implementation | Skin | ||
| Description | Lists recent WordPress blog posts in the MediaWiki sidebar. | ||
| Author(s) | JonathanWillifordtalk | ||
| MediaWiki | 1.15 | ||
| License | GPLv3 | ||
| Download | Project page Subversion [Help] Browse source code |
||
| Example | http://neurov.is/on | ||
|
|||
|
|||
| Check usage and version matrix | |||
Contents |
What can this extension do? [edit]
This extension allows you to list your most recent blog posts on your wiki on the sidebar.
Installation [edit]
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/ExtensionName/ExtensionName.php"); $wgWordPressMaxPosts = 6; $wgWordPressPostsPortletHeading = 'recent blogs'; // change the below to your wp-blog-header.php file! require_once( "/path/to/wordpress_blog/wp-blog-header.php");
Configuration parameters [edit]
$wgWordPressMaxPosts specifies how many posts to display in the sidebar. $wgWordPressPostsPortletHeading is the heading using in the sidebar. Both parameters are optional.
Issues [edit]
- Require_once using relative path makes it so that some of the maintenance scripts don't work.
- Calling require_once on wp-blog-header.php results in the following errors with some setups when trying to submit an edit to a wiki page:
- Your edit has been rejected because your client mangled the punctuation characters in the edit token. The edit has been rejected to prevent corruption of the page text. This sometimes happens when you are using a buggy web-based anonymous proxy service.
- wp-blog-header.php can require increasing the memory_limit set in LocalSettings.php (or with the php configuration).
