/***********************
b2 archive hack
written by dodo
http://pure-essence.net
************************/
==========================================================
general:
==========================================================
what does it do?
does the neat sorting thing like appeared at http://regretless.com/dodo/pure/b2/b2archives.php
==========================================================
preconidtions:
==========================================================
have b2 installed
know a little bit about html. you can dig in modify the html codes if you want.
like how the form will look and how the text will look.
for example: I put echo "
"; before echo "Archives:"; and echo "
"; before if ($debug=="1")
it's up to you.
==========================================================
install:
==========================================================
open b2archivestest.php attached and fill in some variables
// What's the default list order?
$defaultorderby = "ID";
// Default to ascending to descending?
$defaultorder = "DESC";
// What's your blog file name?
$blogfilename = "new.php";
// What's your site url? (no trailing slash)
$siteurl = "http://yourdomain.com/b2";
// What's the name of the table for your posts?
$tablename = "posts";
upload and test.
should work, if not, try email me at dodo@regretless.com. i might be able to help.
if it works, modify formats and rename it to b2archives.php
==========================================================
customize:
==========================================================
for the sort form:
if not all fields apply to you, take away the option lines.
for example:
instead having
you can have only
whatever works for you.
==========================================================
credit:
==========================================================
dodo
http://pure-essence.net
dodo@regretless.com
==========================================================
reference
==========================================================
go to this place if you need help modify this hack or more info
http://www.tidakada.com/board/viewtopic.php?t=187&sid=e2d832f77b7d490e4fe49a5704e3acf2