Contribute  :  Support  :  Downloads  :  Forum  :  Links  :  Polls  :  Calendar  :  Directory  :  Advanced Search  
Geeklog The Ultimate Weblog System
Welcome to Geeklog
Friday, May 16 2008 @ 02:39 AM EDT
   

Rating plugin 1.0b

Plugins

The Rating plugin 1.0b (beta) release is on my site and in the downloads section on this site. If you have any problems, post them in the forums here or on my site. Please also post any feedback/suggestions.

This plugin allows you to add a rating system to any item. You can add them with autotags, or with a slight modification to the core files. Full details will be posted on my site soon.

I would also like to ask Dirk and the guys: please would you think of some way that a plugin can contribute code to stories and other items, so that it is not necessary to modify core files to add a rating.

Cheers, Euan.

Story Options

Trackback

Trackback URL for this entry: http://www.geeklog.net/trackback.php/20060129084018357

No trackback comments for this entry.
Rating plugin 1.0b | 4 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Rating plugin 1.0b
Authored by: Dirk on Sunday, January 29 2006 @ 10:03 AM EST

See PLG_itemSaved in lib-plugins.php for an API hook that's supposed to (eventually) be called whenever Geeklog saves something to the database. It's only really implemented for stories saved from the Admin's story editor in Geeklog 1.4.0, though.

bye, Dirk

Rating plugin 1.0b
Authored by: Euan on Monday, January 30 2006 @ 08:24 AM EST
Thanks - I was thinking more about a way to append HTML to a story, with
some way of accessing the story id. I've included the ability to use autotags
to add rating to stories, but since there is no way I'm aware of to access the
unique id of a story or comment, there is no way to get from the rating back
to the story (eg when linking from the stats page).

What I would like to suggest is a on_display_article hook for plugins to return
HTML to append to a story.

Cheers, Euan.

---
-- Heather Engineering
-- No job too small
Rating plugin 1.0b
Authored by: Jefficus on Sunday, January 29 2006 @ 02:07 PM EST
Committing new content to the actual story record is only one of the 'content filter' interactions that would be useful. It would also be very nice to be able to preprocess content at display time.

The E-Wiki engine does this very effectively, allowing registered plugins to 'spin their magic' on the story either when it is written or when it is displayed.

I have hacked my GL article renderer to allow me to render Lilypond music fragments and LaTeX math fragments into the stories at render time. Why render time? Because some of my fragments are pulling external data (like time of day or whether) to incorporate into the rendered content.

---
This has been an opinion, brought to you by the fine people at Jefficus World.
Rating plugin 1.0b
Authored by: Dirk on Sunday, January 29 2006 @ 04:44 PM EST

For rendering things at display time, we alread have autotags (and that link was created using one).

bye, Dirk