Wiki BBCode »  Show posts from    to     

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:

Code: [Hide]
  1. [wiki]Article[/wiki] --> Do you know what [wiki]phpBB[wiki] mean?  
  2.  
  3. [wiki=Article]Text[/wiki] --> If you don't know what phpBB menas, click [wiki=Article]here[/wiki]  
  4.  
  5. [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
Code: [Hide]
  1. 'img' => array( 


Right before add:
Code: [Hide]
  1. 'wiki' => array(  
  2. 'nested' => false,  
  3. 'inurl' => false,  
  4. 'allow_empty' => false,  
  5. ), 


Find
Code: [Hide]
  1. // --- Disable Active Content Switch BEGIN --- 


Right Before add
Code: [Hide]
  1. // BBcode Wiki, by Roland at ka-tet-corp.com  
  2. if($tag === 'wiki')  
  3. {  
  4. $wiki_url='http://en.wikipedia.org/wiki/';  
  5. if($this->is_sig)  
  6. {  
  7. return $error;  
  8. }  
  9. if($item['iteration'] > 1)  
  10. {  
  11. return $error;  
  12. }  
  13. $wiki_text = '';  
  14. if(isset($item['params']['param']))  
  15. {  
  16. $wiki_text = htmlspecialchars($item['params']['param']);  
  17. }  
  18. elseif(isset($item['params']['art']))  
  19. {  
  20. $wiki_text = htmlspecialchars($item['params']['art']);  
  21. }  
  22. else  
  23. {  
  24. $wiki_text = $content;  
  25. }  
  26. $str = '<a href="' . $wiki_url . $wiki_text . '" target="_wiki">';  
  27. $str .= '<img src="./images/wkp.png" alt="Artículo de la wiKINGpedia">';  
  28. //$str .= $content;  
  29. return array(  
  30. 'valid' => true,  
  31. 'start' => $str,  
  32. 'end' => '</a>'  
  33. );  


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
Mighty Gorgon wrote: [View Post]
... and remake some buttons.


Which one


Mighty Gorgon [ Tue 12 Dec, 2006 01:12 ]
Post subject: Re: Wiki BBCode
TheSteffen wrote: [View Post]
Mighty Gorgon wrote: [View Post]
... 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)

Code: [Hide]
  1. 'img' => array( 


And right before add:

Code: [Hide]
  1. 'wiki' => array(  
  2. 'nested' => false,  
  3. 'inurl' => false,  
  4. 'allow_empty' => false,  
  5. ), 


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
Code: [Hide]
  1. [wiki]phpbb[/wiki] 
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
Xusqui wrote: [View Post]
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
Code: [Hide]
  1. [wiki]phpbb[/wiki] 
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
Xusqui wrote: [View Post]
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,


nene94 [ Sat 08 Mar, 2008 19:28 ]
Post subject: Re: Wiki BBCode
The demo: http://www.ka-tet-corp.com/portal2.0/la-wikingpedia-vt2065.html not found.

El tema o mensaje solicitado no existe

Thanks!


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
Demo: http://iesmg.es/ip/viewtopic.php?f=1&p=3

Greetings!


Xusqui [ Sun 09 Mar, 2008 12:54 ]
Post subject: Re: Wiki BBCode
Thankee, sai

Spoiler: [ Show ]


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




Powered by Icy Phoenix