|
Page 1 of 2
|
Xusqui 
Joined: August 2006
Posts: 211
Location:  C?rdoba
|
 Wiki BBCode
Well, I just developed a BBcode for my website (as I have just created a new wiki about Stephen King, I wanted to make a relation between them both)
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:  to your ./images folder and name it as wkp.png
Second open ./includes/bbcode.php
Find
Right before add:
- 'wiki' => array(
- 'nested' => false,
- 'inurl' => false,
- 'allow_empty' => false,
- ),
Find
- // --- Disable Active Content Switch BEGIN ---
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?
____________ Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
Last edited by Xusqui on Sun 17 Dec, 2006 08:49; edited 1 time in total |
#1 Sat 09 Dec, 2006 21:54 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
moreteavicar
Joined: August 2006
Posts: 608
Location:  Classified
|
 Re: Wiki BBCode
Nice one Xusqui
|
#2 Sun 10 Dec, 2006 21:22 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Wiki BBCode
Yes, I think many people will find this useful.
I'll think about including this one too...
But only when I have enough time to test again all BBCodes and remake some buttons.
Thanks for your contribution!
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#3 Tue 12 Dec, 2006 00:49 |
|
TheSteffen 
Joined: August 2006
Posts: 1625
Location:  Magdeburg
|
 Re: Wiki BBCode
... and remake some buttons. 
Which one
|
#4 Tue 12 Dec, 2006 01:04 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Wiki BBCode
... and remake some buttons. 
Which one 
I didn't look at your new buttons yet... I'll look at them one day, and then I'll tell you if some of them need to be remade or not!
I'll leave BBCodes functions and buttons as one of the last things to be checked, since it's not a crucial issue right now...
Anyway, if you want to renew something about BBCodes graphics, you can do it...
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#5 Tue 12 Dec, 2006 01:12 |
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 Re: Wiki BBCode
I don't know why, but wiki bbcode doesn't work for me
|
#6 Tue 12 Dec, 2006 10:08 |
|
pepi
Joined: September 2006
Posts: 245
Location:
|
 Re: Wiki BBCode
mod also does not work with me
|
#7 Tue 12 Dec, 2006 13:39 |
|
Xusqui 
Joined: August 2006
Posts: 211
Location:  C?rdoba
|
 Re: Wiki BBCode
Fool of me!!!
I forgot it!!!
You should also find (inside includes/bbcode.php)
And right before add:
- 'wiki' => array(
- 'nested' => false,
- 'inurl' => false,
- 'allow_empty' => false,
- ),
Sorry you both!!!
PS: I updated the 1st post too!
____________ Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
|
#8 Sun 17 Dec, 2006 08:48 |
|
jz 
Joined: August 2006
Posts: 217
Location:  London
|
 Re: Wiki BBCode
Is this MOD for Admin only, because I don't see and wiki button/icon when posting a message on your site!
|
#9 Sun 17 Dec, 2006 12:36 |
|
Xusqui 
Joined: August 2006
Posts: 211
Location:  C?rdoba
|
 Re: Wiki BBCode
Nop... It's not for admin only... It's just that it has no implemented button yet
You have to write it inside a post to use it... I mean, you must write to use it  Maybe I'll write a button latter... Maybe not
Does it work for you?
____________ Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
|
#10 Sun 17 Dec, 2006 19:20 |
|
jz 
Joined: August 2006
Posts: 217
Location:  London
|
 Re: Wiki BBCode
will try it tonight., I think a button will make it user friendly
BTW great MOD
|
#11 Sun 17 Dec, 2006 20:03 |
|
pepi
Joined: September 2006
Posts: 245
Location:
|
 Re: Wiki BBCode
Nop... It's not for admin only... It's just that it has no implemented button yet
You have to write it inside a post to use it... I mean, you must write to use it  Maybe I'll write a button latter... Maybe not
Does it work for you?
thank it work
|
#12 Sun 17 Dec, 2006 21:41 |
|
Ishigo 
Joined: August 2006
Posts: 19
|
 Re: Wiki BBCode
well i'm just starting working with php, and i did the wiki button, i'll post it here so anyone that wants to review it and fix it can.
I tested it and it worked fine.
IMPORTANT: Xusqui i changed the image name, sorry 'bout that.
Description: |
Wiki BBcode |
 Download |
Filename: |
Wiki BBcode.rar |
Filesize: |
2.88 KB |
Downloaded: |
304 Time(s) |
|
#13 Wed 03 Jan, 2007 20:10 |
|
Xusqui 
Joined: August 2006
Posts: 211
Location:  C?rdoba
|
 Re: Wiki BBCode
thanks for your contribution, Ishigo!!!
I'll try it tonite when I'll arrive home!!
Doesn't matter if you changed the name
Greetz!!
____________ Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
|
#14 Tue 09 Jan, 2007 11:53 |
|
Ishigo 
Joined: August 2006
Posts: 19
|
 Re: Wiki BBCode
thanks for your contribution, Ishigo!!!
I'll try it tonite when I'll arrive home!!
Doesn't matter if you changed the name
Greetz!!
Well, did it worked fine?
|
#15 Sat 13 Jan, 2007 21:14 |
|
|
Page 1 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|