Warning: mysql_connect(): Too many connections in /home/virus/new/bbs/auth.php on line 10

Warning: mysql_select_db(): Too many connections in /home/virus/new/bbs/auth.php on line 11

Warning: mysql_select_db(): A link to the server could not be established in /home/virus/new/bbs/auth.php on line 11

Warning: mysql_query(): Too many connections in /home/virus/new/bbs/auth.php on line 14

Warning: mysql_query(): A link to the server could not be established in /home/virus/new/bbs/auth.php on line 14

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/virus/new/bbs/auth.php on line 15

Warning: mysql_query(): Too many connections in /home/virus/new/bbs/Sources/Subs.php on line 981

Warning: mysql_query(): A link to the server could not be established in /home/virus/new/bbs/Sources/Subs.php on line 981

Warning: mysql_query(): Too many connections in /home/virus/new/bbs/Sources/Subs.php on line 982

Warning: mysql_query(): A link to the server could not be established in /home/virus/new/bbs/Sources/Subs.php on line 982

Warning: mysql_query(): Too many connections in /home/virus/new/bbs/Sources/Load.php on line 70

Warning: mysql_query(): A link to the server could not be established in /home/virus/new/bbs/Sources/Load.php on line 70

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/virus/new/bbs/Sources/Load.php on line 71

Warning: mysql_query(): Too many connections in /home/virus/new/bbs/Sources/Security.php on line 66

Warning: mysql_query(): A link to the server could not be established in /home/virus/new/bbs/Sources/Security.php on line 66

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virus/new/bbs/Sources/Security.php on line 67

Warning: mysql_query(): Too many connections in /home/virus/new/bbs/Sources/Reputation.php on line 206

Warning: mysql_query(): A link to the server could not be established in /home/virus/new/bbs/Sources/Reputation.php on line 206

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/virus/new/bbs/Sources/Reputation.php on line 208
VirusWiki - Calendar Plugin

The CalendarPlugin can be used to generate a monthly calendar in a wiki page. It's handy for PersonalWiki?s.

Individual dates in the calendar link to specially named wiki pages. The names for the "day pages" are by default formed by appending the date to the pagename on which the calendar appears.

This feature was inspired by httpManila, and first implemented by GaryBenson?. It was later implemented as a WikiPlugin by JeffDairiki?.

Usage:

 <?plugin Calendar?>

wil get you:

< March, 2037 >
Sun Mon Tue Wed Thu Fri Sat
 1   2   3   4   5   6   7 
 8   9   10   11   12   13   14 
 15   16   17   18   19   20   21 
 22   23   24   25   26   27   28 
 29   30   31 

Plugin Arguments

Selection of Month

year
Specify the year for the calendar. (Default: current year.)
month
Specify the month for the calendar. (Default: current month.)
month_offset
Added to month. Can be used to include several months worth of calendars on a single wiki page.
< April, 2037 >
Sun Mon Tue Wed Thu Fri Sat
 1   2   3   4 
 5   6   7   8   9   10   11 
 12   13   14   15   16   17   18 
 19   20   21   22   23   24   25 
 26   27   28   29   30 

"Day Page" Names

date_format
interwikiStrftime style format string used to generate page names for the "day pages." The default value is '%Y-%m-%d'.
prefix
Prepended to the date (formatted per date_format) to generate the "day page" names. The default value is '[pagename]:'.

Appearance

month_format
interwikiStrftime style format string used to generate the title of the calendar. (Default: '%B, %Y'.)
wday_format
interwikiStrftime style format string used to generate the day-of-week names at the top of the calendar.
start_wday
What day of the week does the calendar start on. This should be specified as an integer in the range zero (Sunday) through six (Saturday), inclusive.
< March, 2037 >
Mon Tue Wed Thu Fri Sat Sun
 1 
 2   3   4   5   6   7   8 
 9   10   11   12   13   14   15 
 16   17   18   19   20   21   22 
 23   24   25   26   27   28   29 
 30   31 

Patch for 1.2

GaryBenson? wrote the first calendar implementation for PhpWiki 1.2. (Since 1.2 doesn't support plugins, it uses a ###CALENDAR### token as a trigger.) Gary provides a screenshot at httphttp://inauspicious.org/files/screenshots/calender.png, a httppatch (on 1.2.0), and httpcalendar.php (which renders a view of the year.)


PhpWikiDocumentation


Last edited on Thursday, December 5, 2002 11:12:06 pm.