This extension will show images for each category a post is in.
Prerequisites:
- The category images should be in the images/ folder of Pivot
- The filenames of these category images should be exactly the same as the categorynames (case-sensitive)
How to work with this plugin:
- Upload this file into your extensions/snippets/ folder
- Open your short entry template and/or entrypage template and add the [[catimage]] tag...
- Rebuild your frontpage, and you should see the images
Extension variables:
This extension has two variables: [[catimage:FILTER:NEWLINE]]
- FILTER: if something is filled in here, it will only show the categories associated to the current subweblog.
- NEWLINE: if something is filled in here, the images will be placed below each other. If nothing is filled in, the images will be placed beside each other.
Leave these values empty, if you don't want to use them.
Category image extension
[[copyyear]]
A formatted copyright string that creates a floating copyright date.
If no year is passed then the copyright date will be the current year.
If a year in the past is passed, then a string indicating a copyright that spans the period from that date to now will be returned.
Sanity checks block dates before 1999 and after the current year.
[[copyyear:2001]] will print ’© 2001-2005’ (or the current year we are living in)
[[copyyear:2004]] will print ’© 2004’
Click on ’(more)’ to see it in action.
...this idea came from the Pivot manual…
Version 1.0
Created on 16 january 2005, by Marcel de Jong
For support go to MyPivot.net or MadJo.nl
or email me at mdejong[at]gmail[dot]com
Installation notes:
1) get Pivot 1.20 (or higher) and install it.
2) create a folder called “extensions” in the dir higher than Pivot/
(if you have installed pivot in www.example.com/pivot,
then the extensions folder should be www.example.com/extensions)
3) in the extensions folder create the folder “snippets”
4) extract the file “snippet_copyyear.php” into that folder
5) add somewhere in your templates the tag © 2006 (with or without values)
6) rebuild the frontpage.. and presto!
Contents of
snippet_copyyear.zip:
1) snippet_copyyear.php (the code file)
2) copyyear_readme.txt
Pivot (1.20+) has an extension architecture.
For these versions I have created an alternative RSS reader.
The one included with Pivot only caches a feed once every 8 hours, and for some things this is just too long.
The extension I created is in essence the same, but with one vital difference, you can set a different cache-time (in minutes)
Download the
AltRSS Extension.
The installation instructions are as follows (also found in the readme.txt inside the zip file):
1 download the zip file
2 extract all three files
3 and upload them to your extensions/snippets folder
Usage:
It basically works the same as the regular [[rss]] tag, but it has an added value:
[[altrss:number of entries shown:address of the rss feed:layout of the result:cache-time in minutes]]
The cache time defaults to 8 hours (if it is left empty), also it is recommended to use values that are equal or higher than 5 minutes, for the sake of the bandwidth of the site where you grabbed the rss-feed. :) (you can’t actually set it lower than 5 minutes, because it is the lowest threshold.
NOTE (Very important) Do not use this for a normal weblog, but for some very specific applications.








