plugin:bliki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:bliki [2011-10-31 14:14] – [Conf Changes] 79.207.143.227 | plugin:bliki [2023-12-21 17:08] (current) – [Thanks] Aleksandr | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : beau@dentedreality.com.au | email : beau@dentedreality.com.au | ||
type : syntax | type : syntax | ||
- | lastupdate : 2005-10-16 | + | lastupdate : 2011-10-31 |
- | compatible : | + | compatible : 2011-05-25 " |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
- | tags : blog, news | + | tags : blog, news, twitter |
- | ---- | + | |
+ | downloadurl: | ||
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
- | by [[beau@dentedreality.com.au|Beau Lebens]] and [[anthony.caetano@sanlam.co.za|Anthony Caetano]] | + | screenshot_img: |
+ | ---- | ||
+ | |||
+ | By [[beau@dentedreality.com.au|Beau Lebens]] and [[anthony.caetano@sanlam.co.za|Anthony Caetano]]. | ||
===== Description ===== | ===== Description ===== | ||
+ | |||
Bliki allows you to create a simple blog on any page of your wiki by adding a single tag ('' | Bliki allows you to create a simple blog on any page of your wiki by adding a single tag ('' | ||
===== Version/ | ===== Version/ | ||
+ | |||
Latest version released 2005-10-16 and developed/ | Latest version released 2005-10-16 and developed/ | ||
+ | |||
+ | **Update**: thanks to [[user> | ||
==== Previous Versions ==== | ==== Previous Versions ==== | ||
+ | |||
* First release: deep storage only. | * First release: deep storage only. | ||
Line 29: | Line 40: | ||
==== Plugin Source ==== | ==== Plugin Source ==== | ||
+ | |||
Create a directory called '' | Create a directory called '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | 2011-10-31 [[user> | ||
+ | |||
<file php syntax.php> | <file php syntax.php> | ||
Line 39: | Line 56: | ||
* @author | * @author | ||
* @author Anthony Caetano < | * @author Anthony Caetano < | ||
- | | + | |
*/ | */ | ||
Line 127: | Line 144: | ||
// Only do it if the namespace exists | // Only do it if the namespace exists | ||
if (is_dir($ID . '/' | if (is_dir($ID . '/' | ||
- | if ($conf[' | + | if ($this-> |
$posts = $this-> | $posts = $this-> | ||
sort($posts); | sort($posts); | ||
Line 141: | Line 158: | ||
return $recents; | return $recents; | ||
} | } | ||
- | else { // $conf[' | + | else { // $this-> |
$years = $this-> | $years = $this-> | ||
sort($years); | sort($years); | ||
Line 209: | Line 226: | ||
| | ||
- | $timestamp = date($conf[' | + | $timestamp = date($this-> |
- | $str .= str_replace(array(' | + | $str .= str_replace(array(' |
} | } | ||
return $str; | return $str; | ||
Line 227: | Line 244: | ||
global $conf; | global $conf; | ||
- | $date = date($conf[' | + | $date = date($this-> |
return $date . " | return $date . " | ||
} | } | ||
Line 239: | Line 256: | ||
global $conf; | global $conf; | ||
- | if ($conf[' | + | if ($this-> |
$parts = explode(' | $parts = explode(' | ||
$ts = mktime(substr($parts[3], | $ts = mktime(substr($parts[3], | ||
} | } | ||
- | else { // $conf[' | + | else { // $this-> |
$parts = explode('/', | $parts = explode('/', | ||
$s = sizeof($parts); | $s = sizeof($parts); | ||
Line 266: | Line 283: | ||
} | } | ||
- | | + | /* |
| | ||
} | } | ||
- | else { | + | else { */ |
$sep = ':'; | $sep = ':'; | ||
- | | + | // |
- | if ($conf[' | + | if ($this-> |
return $ID . $sep . date(' | return $ID . $sep . date(' | ||
} | } | ||
- | else { // $conf[' | + | else { // $this-> |
return $ID . $sep . date(' | return $ID . $sep . date(' | ||
} | } | ||
Line 330: | Line 347: | ||
global $conf, $ID; | global $conf, $ID; | ||
- | $sep = ($conf[' | + | // $sep = ($conf[' |
- | $html = '<div id=" | + | $sep = ':'; |
- | $html .= $this-> | + | //+ (isset($this->getConf(' |
- | $html .= '">' | + | |
+ | $html = '< | ||
+ | $hilf = $this-> | ||
+ | $output | ||
+ | $html .= $output.' | ||
return $html; | return $html; | ||
Line 418: | Line 439: | ||
if ($mode == ' | if ($mode == ' | ||
// Addlink for creating a new post | // Addlink for creating a new post | ||
- | $renderer-> | + | $renderer-> |
// Go and get the required blog posts and compile them into one wikitext string | // Go and get the required blog posts and compile them into one wikitext string | ||
// FIXME $config var for how many? or inline directive? | // FIXME $config var for how many? or inline directive? | ||
- | $recents = $this-> | + | $recents = $this-> |
$compiled = $this-> | $compiled = $this-> | ||
Line 435: | Line 456: | ||
// Add a link to older entries if we filled the number per page (assuming there' | // Add a link to older entries if we filled the number per page (assuming there' | ||
- | if (sizeof($recents) == $conf[' | + | if (sizeof($recents) == $this-> |
- | $renderer-> | + | $renderer-> |
} | } | ||
// And also a link to newer posts if we're not on page 0 | // And also a link to newer posts if we're not on page 0 | ||
if ($page != 0) { | if ($page != 0) { | ||
- | $renderer-> | + | $renderer-> |
} | } | ||
Line 449: | Line 470: | ||
} | } | ||
} | } | ||
- | |||
?> | ?> | ||
</ | </ | ||
Line 459: | Line 479: | ||
<file php local.php> | <file php local.php> | ||
- | $conf[' | + | <?php |
- | $conf[' | + | // * 2011-10-31 |
- | $conf[' | + | $conf[' |
- | $conf[' | + | $conf[' |
- | $conf[' | + | $conf[' |
- | $conf[' | + | $conf[' |
- | $conf[' | + | $conf[' |
- | $conf[' | + | $conf[' |
- | $conf[' | + | $conf[' |
+ | $conf[' | ||
+ | $conf[' | ||
</ | </ | ||
Line 475: | Line 497: | ||
Bliki adds some additional elements to your page when you use it, so you have the ability to style those elements to match your template. Use the following CSS definitions in your template' | Bliki adds some additional elements to your page when you use it, so you have the ability to style those elements to match your template. Use the following CSS definitions in your template' | ||
- | <code css> | + | <file css style.css> |
#blognew { | #blognew { | ||
font-size: 120%; | font-size: 120%; | ||
Line 503: | Line 525: | ||
float: left; | float: left; | ||
} | } | ||
- | </code> | + | </file> |
Again, you can customize these as you see fit, but this is a good starting point. | Again, you can customize these as you see fit, but this is a good starting point. | ||
===== Usage ===== | ===== Usage ===== | ||
+ | |||
To create a blog using bliki, you just create a new page, set up the basic template (surrounding the actual blog) and put in the '' | To create a blog using bliki, you just create a new page, set up the basic template (surrounding the actual blog) and put in the '' | ||
Line 538: | Line 561: | ||
===== Notes ===== | ===== Notes ===== | ||
+ | |||
* Currently will not function properly if '' | * Currently will not function properly if '' | ||
* Creating a new post and editing an existing one is slightly less intuitive than it could be because DokuWiki takes you to that individual entry when you're done, rather than the blog page | * Creating a new post and editing an existing one is slightly less intuitive than it could be because DokuWiki takes you to that individual entry when you're done, rather than the blog page | ||
Line 543: | Line 567: | ||
===== To Do ===== | ===== To Do ===== | ||
+ | |||
* Take ACLs into account for new post links | * Take ACLs into account for new post links | ||
* Use caching? | * Use caching? | ||
===== Thanks ===== | ===== Thanks ===== | ||
- | | + | |
+ | | ||
* Esther Brunner for the [[plugin: | * Esther Brunner for the [[plugin: | ||
- | * Rael Dornfest for the [[http:// | + | * Rael Dornfest for the [[wp> |
* Anthony Caetano for adding flat storage support to the plugin | * Anthony Caetano for adding flat storage support to the plugin | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
Comments? | Comments? | ||
Line 606: | Line 633: | ||
| | ||
- | 2. Replace function render() with this: | + | 2. Replace function |
- | < | + | < |
function render($mode, | function render($mode, | ||
global $ID, $conf; | global $ID, $conf; | ||
Line 712: | Line 739: | ||
- how will I be able to use categories? | - how will I be able to use categories? | ||
- is there a simple way to modify the appearance of the entries? I'd like to have a title, instead of the Date over the entry and another color in the background of an entry and it's header... | - is there a simple way to modify the appearance of the entries? I'd like to have a title, instead of the Date over the entry and another color in the background of an entry and it's header... | ||
+ | |||
+ | ------ | ||
+ | - What ever happend to including a link in these pages to a site where the plugin is in use, as an example? |
plugin/bliki.1320066861.txt.gz · Last modified: 2011-10-31 14:14 by 79.207.143.227