| Author |
Message |
testy1 Involved


Joined: Apr 06, 2008 Posts: 483
|
Posted:
Thu Mar 19, 2009 6:23 pm |
|
I am creating a module and would like to adapt the bbcode editor in the forums.
Can anyone explain how the bbcode.php file works?
Or has this been done somewhere already. |
|
|
|
 |
duck Involved


Joined: Jul 03, 2006 Posts: 267
|
Posted:
Thu Mar 19, 2009 7:40 pm |
|
While including the bbcode mod into another module can be done I am not sure why you wouldn't just use the FCKeditor? It has more features and is easier to include edit than bbcode mod. The bbcode mod is a somewhat finicky complex beast you may find more headache than just using the FCKeditor. |
|
|
|
 |
testy1 Involved


Joined: Apr 06, 2008 Posts: 483
|
Posted:
Thu Mar 19, 2009 8:07 pm |
|
I thought about it but only wanted bbcode type functionality.And I also wanted to be able to display code.Possibly even via a geshi class or chili plugin.Maybe i could create a custom fck style. |
|
|
|
 |
eldorado Involved


Joined: Sep 10, 2008 Posts: 414 Location: France,Translator
|
Posted:
Sat Mar 21, 2009 6:23 am |
|
Why not use fck editor for your module? |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
Posted:
Sat Mar 21, 2009 7:04 am |
|
the fck editor already has a bbcode plugin with it. look in includes\fckeditor\editor\plugins\bbcode. |
|
|
|
 |
testy1 Involved


Joined: Apr 06, 2008 Posts: 483
|
Posted:
Sat Mar 21, 2009 5:33 pm |
|
| eldorado wrote: | | Why not use fck editor for your module? |
As i said above, I only want bbcode functionality.But Im currently re-thinking that idea.If we spent all day coming up with code that has already been developed I guess we would never get anything done. |
|
|
|
 |
eldorado Involved


Joined: Sep 10, 2008 Posts: 414 Location: France,Translator
|
Posted:
Sat Mar 21, 2009 8:14 pm |
|
fck editor is really easy to embed in a textarea. Not much to do actually than add 2 lines of code for each interresting areas.
But i'm betting with myself that the textareas are for members and not admins . |
|
|
|
 |
|
|
|
|