Icy Phoenix
Old Customizations - Wiki BBCode
Xusqui [ Sat 09 Dec, 2006 21:54 ]
Post subject: 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?
moreteavicar [ Sun 10 Dec, 2006 21:22 ]
Post subject: Re: Wiki BBCode
Nice one
Xusqui 
Mighty Gorgon [ Tue 12 Dec, 2006 00:49 ]
Post subject: 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!
TheSteffen [ Tue 12 Dec, 2006 01:04 ]
Post subject: Re: Wiki BBCode
... and remake some buttons.

Which one

Mighty Gorgon [ Tue 12 Dec, 2006 01:12 ]
Post subject: 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...

difus [ Tue 12 Dec, 2006 10:08 ]
Post subject: Re: Wiki BBCode
I don't know why, but wiki bbcode doesn't work for me

pepi [ Tue 12 Dec, 2006 13:39 ]
Post subject: Re: Wiki BBCode
mod also does not work with me
Xusqui [ Sun 17 Dec, 2006 08:48 ]
Post subject: 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!
jz [ Sun 17 Dec, 2006 12:36 ]
Post subject: 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!
Xusqui [ Sun 17 Dec, 2006 19:20 ]
Post subject: 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?
jz [ Sun 17 Dec, 2006 20:03 ]
Post subject: Re: Wiki BBCode
will try it tonight., I think a button will make it user friendly
BTW great MOD

pepi [ Sun 17 Dec, 2006 21:41 ]
Post subject: 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

Ishigo [ Wed 03 Jan, 2007 20:10 ]
Post subject: 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.
Xusqui [ Tue 09 Jan, 2007 11:53 ]
Post subject: 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!!
Ishigo [ Sat 13 Jan, 2007 21:14 ]
Post subject: 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?
Zuker [ Sat 07 Apr, 2007 20:52 ]
Post subject: Re: Wiki BBCode
This modification is only for php XS and maybe is not working with IcyPhoenix.
If you are the author or are able to make them icy compatible, please feel free to post it.
Thanks for your time and the good work so far.
Ishigo [ Tue 10 Jul, 2007 21:39 ]
Post subject: Re: Wiki BBCode
Well sorry for the delay but i was a little bit too complicated with other projects i had. But finally here it is. Hope you enjoy it.
Zuker [ Tue 10 Jul, 2007 23:53 ]
Post subject: Re: Wiki BBCode
Ishigo, i think it will be better to create a new topic

Ishigo [ Tue 17 Jul, 2007 17:38 ]
Post subject: Re: Wiki BBCode
humm and where do i put it???
Dunno

Zuker [ Tue 17 Jul, 2007 22:45 ]
Post subject: Re: Wiki BBCode
Put it in general support, i'll move it into customizations

Ishigo [ Mon 30 Jul, 2007 22:07 ]
Post subject: Re: Wiki BBCode
thanks.

KasLimon [ Sat 08 Mar, 2008 18:01 ]
Post subject: Re: Wiki BBCode
This Mod is compatible with Icy Phoenix 1.2.0.27
Restored to Customizations forum.
xmenfile [ Sat 08 Mar, 2008 18:58 ]
Post subject: Re: Wiki BBCode
Sorry, this is an entry question. This BBcode is very interesting and don't understanding the demo. can anyone tell me the description or purposed of it?
Thank you,
Xusqui [ Sun 09 Mar, 2008 01:57 ]
Post subject: Re: Wiki BBCode
Sorry... We made a huge prune

and now we are trying to restore as much old messages as we can!!!
The BBcode is to create a link to any wiki site (ie: en.wikipedia.org)... If you write [wiki]Computer[/wiki], you would get something like this:
You can visit the articles about
computer
Greetz!!
KasLimon [ Sun 09 Mar, 2008 09:50 ]
Post subject: Re: Wiki BBCode
Xusqui [ Sun 09 Mar, 2008 12:54 ]
Post subject: Re: Wiki BBCode
babbman [ Sat 15 Mar, 2008 11:50 ]
Post subject: Re: Wiki BBCode
We have a wiki associated with our site. I added this code and it works great.
My questions is that I would like to add an icon to the posting page so that it works similar to the youtube or googlevideo icon on that page. i.e. Click the button for a popup window that you put the wiki page name you want in and the proper code gets dropped int he post.
I remember putting in a youtube bbcode block back when I was using XS. But since then, things have changed a bit.
What's the proper way to add this?
at the same time (I know I'm asking quite a bit), it was be fantastic if this mod could get the list of pages from our wiki and let the page you wanted be selected from a dropdown list of available pages. We are using MediaWiki and have it's database available.
Any thoughts?
Thanks..
Ishigo [ Mon 17 Mar, 2008 04:34 ]
Post subject: Re: Wiki BBCode
i´m a little overcharged right now but in this week i´ll see if i can do it