Sidepress: A plugin for Wordpress

Sidepress is a plugin to add news on a Web site using Wordpress as news manager. Without changing anything to the content already present on your site, you can install Wordpress in a subdirectory and display titles and summaries of last posts in a frame on your home page.

The plugin allows you to define the contents of this list of news from the administering panel of Wordpress.

(c) 2008 by Denis Sureau - Licence GPL 2.0

How to install the plugin

The archive contains a demo with a stylesheet and the subdirectory sidepress.

According to the usual procedure for installing Wordpress plugins:

  1. Copy the directory sidepress of the archive into wp-content/plugins.
  2. Enter the plugins section of the administering panel of Wordpress.
  3. Sidepress appears in the list. Activate the plugin.

Now the link sidepress is present in the bar of options.

The options

Number of entries: number of news to be displayed in the frame, 10 by default.

Adding dates: display the date of last modification or not.

Adding description: display a summary of the posts or not.

Max size of description: if a summary is displayed, the maximum number of characters.

How to use the demo

The demo page, sidepress-demo.php can be located anywhere on your site, along with the sidepress.css stylesheet.

You must adjust the path depending on your domain name and the directory of the blog.

<?php
  $SIDEPRESS_PATH = "wp-content/plugins/sidepress";
   include("$SIDEPRESS_PATH/sidepress.php");
?>

The path, assigned to the variable $ SIDEPRESS_PATH can be a URL or a relative path. It depends on the subdirectory where Wordpress is installed on your site.

In the same way, to use on your own page Sidepress, put the above code with the path of the plugin on your site.

Path issues

Users sometimes face problems of access for the script sidepress.php from the demo page.
Use a relative path.

If that does not work, then remove the plugin and put these files in the same directory:

sidepress-demo.php
sidepress.css
sidepress.php
sidepress.ini
path.php

In the demo page, a dot must be assigned to the path variable:

  $SIDEPRESS_PATH = ".";

In this case you can not configure the program from Wordpress, you will do it by editing directly the file sidepress.ini with a text editor.

Download

Versions

Sidepress makes use of the Anaa Ajax framework for its manager interface.

Forum

Problem with Sidepress

2008-04-20 11:57:15

milo

Received the following error while testing the sidepress-demo.php page on my server. Any idea why this might be happening?: My news Warning: file(/sidepress.ini) [function.file]: failed to open stream: No such file or directory in /home/causecas/public_html/blog/wp-content/plugins/sidepress/sidepress.php on line 47 Warning: Invalid argument supplied for foreach() in /home/causecas/public_html/blog/wp-content/plugins/sidepress/sidepress.php on line 49 Warning: include_once(/home/causecas/public_html/wp-config.php) [function.include-once]: failed to open stream: No such file or directory in /home/causecas/public_html/blog/wp-content/plugins/sidepress/sidepress.php on line 133 Warning: include_once() [function.include]: Failed opening '/home/causecas/public_html/wp-config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/causecas/public_html/blog/wp-content/plugins/sidepress/sidepress.php on line 133 Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'DB_HOST' (1) in /home/causecas/public_html/blog/wp-content/plugins/sidepress/sidepress.php on line 137 Connect error: Unknown MySQL server host 'DB_HOST' (1)
2008-04-24 13:44:47

scriptol

Apparently, this is a problem of path. Here is the path in the code in your page:
<?php
  $SIDEPRESS_PATH = "wp-content/plugins/sidepress";
   include("$SIDEPRESS_PATH/sidepress.php");
?>