Posted on: 04/27/09 09:48pm
By: Anonymous (MZ1)
how can i add this new bbcode in the forum plugin?
example:
http://skrap.nar.co.il/spoiler.html
like this:
Text Formatted Code
[hide]the user dont see this[/hide]
anyone know how to do this?
thanks
(sorry to add posts with anonimous but when i tried to add post this message gives: Error! Not all required fields were completed or were too short in length.Click HERE to return)
Re: Add new bbcode Hide and Show forum Plugin
Posted on: 05/11/09 04:30pm
By: mz
any idea about this?
Re: Add new bbcode Hide and Show forum Plugin
Posted on: 05/11/09 04:39pm
By: Dirk
You can't just add new bbcode tags. Someone would have to extend the bbcode parser.
bye, Dirk
Re: Add new bbcode Hide and Show forum Plugin
Posted on: 05/11/09 04:40pm
By: ::Ben
Hello,
Can you explain me why do you need to hide content?
::Ben
Re: Add new bbcode Hide and Show forum Plugin
Posted on: 05/11/09 05:10pm
By: jmucchiello
Hide or Spoiler bb tags are extremely common in most forum software. Suppose you are running a website about your favorite TV show. You might have a rule in the forum that discussion of recent episodes must not contain spoilers about the show since it may not have all over the world yet. So people can still discuss the last episode by putting the spoiler text inside a bb tag [spoiler]that hides the juicy details[/spoiler]. On some forums, the [spoiler] tag creates a button that controls the visibility of a div containing the text. On other forums, it simply prints the hidden text with the same foreground and background color. Still, it has been common on forum software for several years now.
Re: Add new bbcode Hide and Show forum Plugin
Posted on: 05/11/09 10:05pm
By: mz
Quote by: DirkYou can't just add new bbcode tags. Someone would have to extend the bbcode parser.
bye, Dirk
Hi Dirk,
I know that, but could you give me an explanation of what files and which part of the database I have to edit?
I´m a little experienced, but it would be better if you could help me with this..
bye,
Terra.
Re: Add new bbcode Hide and Show forum Plugin
Posted on: 05/12/09 03:23am
By: Dirk
I'm not familiar with the internals of the Forum plugin, but the bbcode parser should be easy enough to find, I would think.
bye, Dirk
Re: Add new bbcode Hide and Show forum Plugin
Posted on: 05/12/09 03:50am
By: ::Ben
Hello,
@ Joe Thanks.
@ mj everything seems to be in public_html/forum/include/gf_format.php
Text Formatted Code
function do_bbcode_XXX
function gf_formatTextBlock
::Ben
Re: Add new bbcode Hide and Show forum Plugin
Posted on: 05/12/09 08:05pm
By: mz
thank you for your answers, I think that this will be very hard, but I´ll be working on it, I´ll give you my answer as soon as i can with the progress of this small addon..
bye
MZ