Mikedowney.co.uk
What's New
Site Map

Diary
Astronomy
Bits N Bobs
Computing
Food And Drink
Links
Photography
Welcome


Recipe Collections
Recipe A Week 2013
Recipe A Week 2010
A-Z of Regional Cakes


Selected Entries
Pinhole Photography
Keeping Quail
Coventry
Recipes
A different recipe each week
Friends websites
Oven Temperatures and Measuring Cups


Most popular stories
A Hamster's Home is his C...
Hamster Peanuts
Simple HDR photography wi...
A Tangfastic Mess
Pizza, Hamsters and Ballo...
Hamster Baby Update
Decaffeinated Coffee
Halloween Animal Beds
More Squirrel Photos
Not Quite HDR photography
Hamster Baby Update


RSS Feeds:
RSS Feed Entire Site.
RSS Feed Diary only.



Powered by Blosxom


Pinhole Photography Ring
pinhole webring logo
powered by RingSurf
Next | Previous
Random Site | List Sites

Previewing Posts

Story location: Home / computing / blosxom /
05/Apr/2008

The Blosxom blogging system doesn't have a built in way of previewing posts before making them publicly visible. There are various plugins available but for me they seemed to overcomplicate things.

I have been using the Blosedit post editor which includes a preview option but if any Blosxom plugins are used to alter the page appearance (such as Markdown or photo galleries) then the page won't display correctly.

My solution requires the entriescache plugin to keep track of posted stories. Normally, any stories will only show if entriescache knows about them. I set the delay variable to a high number eg.

$delay = 9999;

to stop the index from being rebuilt unless I say so. This means that I can add new posts without them showing, until I tell it to rebuild the index.

To display all posts, not just those in the index, I made the following change to entriescache:

sub start {
    # Force a reindex
    $reindex = 1 if (CGI::param('reindex'));
    return 0 if (CGI::param('preview'));
    return 1;
}

Entries are written as normal, then they are viewed by adding ?preview=yes to the end of the URL. If am I happy with the entry, I put ?reindex=yes instead.

This method can also work with the wikieditish plugin too, by adding:

<input type="hidden" name="preview" value="yes" />

to the form in the foot.wikieditish file.



Storylog and Storyfilter plugins updated

Story location: Home / computing / blosxom /
17/Sep/2006

I have updated the Storylog (v0.29) and Storyfilter (v0.39) plugins for Blosxom. Both now include file locking so there should be no problems with simultaneous access to a site causing file corruption any more.

Storylog now includes an ignore list for URLs and user agents so search engine hits can be ignored so they won't affect the 'most popular clicks' list.

Storyfilter now has the option to generate a list of all keywords, which is useful for site maps. This requires the line
meta-showkeywords: yes
to be included at the start of the story and fills the $storyfilter::allkeywords variable with the list.

Both plugins can be downloaded here.



Storylog v0.20

Story location: Home / computing / blosxom /
24/Oct/2005

Storylog is another Blosxom plugin. It logs the category views (and if storyfilter is installed, optionally logs keyword links).
Download the current version (version 0.20).
Instructions are in the zip file (no perldoc yet). For a demonstration of storylog in action, see the 'Most popular clicks' in the menu bar on the left. This uses the 'combined' log of both categories and keywords.



Storyfilter Plugin v0.31

Story location: Home / computing / blosxom /
24/Oct/2005

I have been steadily working on my two blosxom plugins - this one and storylog. Storyfilter is now up to version 0.31 with the following improvements:

  • Now includes documentation in the file itself, rather than in a seperate readme.
  • Keywords treates as case-insensitive
  • Only matches at the start of a keyword, for example, 'review' will still match 'reviews' but 'work' will no longer match 'network'

Download the current version (version 0.31).
Instructions are found in the file itself.



Storyfilter Plugin v0.30

Story location: Home / computing / blosxom /
18/Sep/2005

I have been steadily working on my two blosxom plugins - this one and storylog. Storyfilter is now up to version 0.31 with the following improvements:

  • Now includes documentation in the file itself, rather than in a seperate readme.
  • Keywords treates as case-insensitive
  • Only matches at the start of a keyword, for example, 'review' will still match 'reviews' but 'work' will no longer match 'network'

Download the current version (version 0.31).



Storyfilter Plugin updated

Story location: Home / computing / blosxom /
23/Jul/2005

I have update the plugin to version 0.23 and fixed a few problems:

  • The keyword cache file is now rebuilt from scratch rather than waiting until all the stories have been viewed.
  • Rebuilding the cache can be forced by appending ?refresh=full to the url.
  • Bug fixed which stopped stories being viewed if they were in the blosxom main directory (ie not in a category) when /keyword was being used.

Download the latest version (version 0.23).
Further instructions are in the zip file.
There are still some problems with using /keyword instead of ?keyword= but they don't seem to be critical.



Blosxom Benchmark Timings

Story location: Home / computing / blosxom /
20/Jul/2005

I was curious as to how well blosxom would handle large numbers of articles - my main worry was whether it would slow down much if it had to sort through a lot of stories before displaying anything. The timings here are for 100,500,2000 and 10000 stories.

See more ...



Storyfilter plugin

Story location: Home / computing / blosxom /
18/Jul/2005

Blosxom is a pretty good bit of blog software but it's main weakness is the inability to place a story into several categories without duplicate postings. This plugin is an attempt to recify that.
Storyfilter maintains a list of keywords and allows stories to be selected according to keywords. The keywords associated with each story can be displayed and if the user clicks on one, blosxom will display only those stories which contain that keyword. See more ...