Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 05:39 pm EST

Geeklog Forums

Add new bbcode Hide and Show forum Plugin


MZ1

Anonymous
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)
 Quote

Status: offline

mz

Forum User
Newbie
Registered: 03/31/09
Posts: 3
any idea about this?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You can't just add new bbcode tags. Someone would have to extend the bbcode parser.

bye, Dirk
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

Can you explain me why do you need to hide content?

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
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.
 Quote

Status: offline

mz

Forum User
Newbie
Registered: 03/31/09
Posts: 3
Quote by: Dirk

You 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.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

mz

Forum User
Newbie
Registered: 03/31/09
Posts: 3
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
 Quote

All times are EST. The time is now 05:39 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content