This template is for a Blog with Phorum supplied side column content. The content comes from sticky posts within the blog forum. They can be edited by the author.

By Frank Montmarquet

INSTALLATION
------------

Copy the template directory to the Phorum templates directory. The lang directory must be included in the template directory, the gif files go in the main forum images directory.

With the exception of the header, footer, css info and settings.tpl all the other .tpl files are compatible with the Blog 
Collection 1 templates. I.e. you may use a set of header, footer, info, css and settings.tpls with these files. 

USE
---

The settings.tpl  file must contain {var sticky_content 1} in order set posts as sticky content.

When logged in as a moderator, in the post editor you may select any blog post as sticky content. When selected as 
sticky content the post will no longer appear in the blog but will be displayed in one of the other columns of the page.
As setup the newest post will be in the links column and the rest will be displayed in the sidebar column (which has been 
moved to the center in this template).

When logged in as the author of a sticky post an edit link will appear allowing editing of the post.

The header includes get_sticky_content.tpl in the <body>, this file has several functions to get and display the sticky posts. It also 
sets things up and calls the function to get the posts. The posts are put in the array $sticky_posts with numerical keys, 
0 to n-1. The total count is in $sticky_posts['count'] and $sticky_posts['next'] is used as a pointer to the next post to 
display.

The posts are displayed by calling print_sticky_post( $sticky_posts[ $sticky_posts['next']++ ]) and 
display_stickys(0).

print_sticky_post($msg) will display a single post $msg. You can get a single post by using $sticky_posts[ X ] where X 
is the numeric key to a post. print_sticky_post( $sticky_posts[0])  would print the first one. 
print_sticky_post( $sticky_posts[ $sticky_posts['next']++ ]) prints the next post to print and increments the pointer.


display_stickys(0); will display all remaining sticky posts. display_stickys(1) will display one post. display_stickys(2) 
will display  the next 2 posts etc. display_stickys automatically increments the next pointer. An error message is displayed if you try to display more posts than the number that have been designated sticky.

The template is setup to use alternating background gradient images when using display_stickys(), the gif files must be 
placed in your forum images directory, not the template directory. You can change this using css.tpl.

You can use get_sticky_content.tpl with any blog template ,just put {var sticky_content 1} in settings.tpl, {include get_sticky_content} in the header.tpl in the <body> and display the  posts where you want buy using the print_sticky_post and / or display_stickys functions within php tags like this: <?php display_stickys(0) ?>.

You must also use the following from this template: postimg_messageform.tpl in order to get the make sticky content check box and the list.tpl in order not to have the stickys displayed. The easy way is to just copy the header, footer, info, css and settings.tpl from the template you want to use into this one overwrting the old files. Then edit the settings and header.tpls




