plugin:bliki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:bliki [2011-06-18 15:57] – changed external links to dokuwiki.org to internal links ach | plugin:bliki [2018-05-12 17:36] – formatting 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 39: | ||
==== Plugin Source ==== | ==== Plugin Source ==== | ||
+ | |||
Create a directory called '' | Create a directory called '' | ||
- | <code php> | + | ---- |
+ | |||
+ | 2011-10-31 [[user> | ||
+ | |||
+ | |||
+ | <file php syntax.php> | ||
<?php | <?php | ||
/** | /** | ||
Line 39: | Line 55: | ||
* @author | * @author | ||
* @author Anthony Caetano < | * @author Anthony Caetano < | ||
- | | + | |
*/ | */ | ||
Line 127: | Line 143: | ||
// 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 157: | ||
return $recents; | return $recents; | ||
} | } | ||
- | else { // $conf[' | + | else { // $this-> |
$years = $this-> | $years = $this-> | ||
sort($years); | sort($years); | ||
Line 209: | Line 225: | ||
| | ||
- | $timestamp = date($conf[' | + | $timestamp = date($this-> |
- | $str .= str_replace(array(' | + | $str .= str_replace(array(' |
} | } | ||
return $str; | return $str; | ||
Line 227: | Line 243: | ||
global $conf; | global $conf; | ||
- | $date = date($conf[' | + | $date = date($this-> |
return $date . " | return $date . " | ||
} | } | ||
Line 239: | Line 255: | ||
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 282: | ||
} | } | ||
- | | + | /* |
| | ||
} | } | ||
- | 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 346: | ||
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 438: | ||
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 455: | ||
// 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 469: | ||
} | } | ||
} | } | ||
- | |||
?> | ?> | ||
- | </code> | + | </file> |
==== Conf Changes ==== | ==== Conf Changes ==== | ||
Line 458: | Line 477: | ||
^ Please note the new '' | ^ Please note the new '' | ||
- | <code 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[' |
- | </code> | + | $conf[' |
+ | $conf[' | ||
+ | </file> | ||
The values used here are a good starting point, but you can customize them from there. | The values used here are a good starting point, but you can customize them from there. | ||
Line 475: | Line 496: | ||
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 524: | ||
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 560: | ||
===== 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 566: | ||
===== 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 [[http:// | ||
Line 553: | Line 578: | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
Comments? | Comments? | ||
Line 606: | Line 632: | ||
| | ||
- | 2. Replace function render() with this: | + | 2. Replace function |
- | < | + | < |
function render($mode, | function render($mode, | ||
global $ID, $conf; | global $ID, $conf; | ||
Line 712: | Line 738: | ||
- 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.txt · Last modified: 2023-12-21 17:08 by Aleksandr