So This is how it works:
- [wiki]Article[/wiki] --> Do you know what [wiki]phpBB[wiki] mean?
- [wiki=Article]Text[/wiki] --> If you don't know what phpBB menas, click [wiki=Article]here[/wiki]
- [wiki art="Article"]Text[/wiki] --> Same as above
If you wank to see a demo --> here
First you should save this image:
Second open ./includes/bbcode.php
Find
Right before add:
- 'wiki' => array(
- 'nested' => false,
- 'inurl' => false,
- 'allow_empty' => false,
- ),
Find
Right Before add
- // BBcode Wiki, by Roland at ka-tet-corp.com
- if($tag === 'wiki')
- {
- $wiki_url='http://en.wikipedia.org/wiki/';
- if($this->is_sig)
- {
- return $error;
- }
- if($item['iteration'] > 1)
- {
- return $error;
- }
- $wiki_text = '';
- if(isset($item['params']['param']))
- {
- $wiki_text = htmlspecialchars($item['params']['param']);
- }
- elseif(isset($item['params']['art']))
- {
- $wiki_text = htmlspecialchars($item['params']['art']);
- }
- else
- {
- $wiki_text = $content;
- }
- $str = '<a href="' . $wiki_url . $wiki_text . '" target="_wiki">';
- $str .= '<img src="./images/wkp.png" alt="ArtÃculo de la wiKINGpedia">';
- //$str .= $content;
- return array(
- 'valid' => true,
- 'start' => $str,
- 'end' => '</a>'
- );
- }
Customization...
You should change the $wiki_url to whatever wiki you want to refer to (i.e: http://es.wikipedia.org/wiki/ for spanish, http://gl.wikipedia.org/wiki/ for galician or http://furry.wikia.com/wiki/ for a furry wikipedia... whatever you want)
And that's all...
Do you think it worths?
