• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Support for external process of bbcode

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I worked on a simple extension mechanism for JForum. I need to add new bbcode but the transformation is not as simple as a regexp replacement, my transformation need to fetch data from web, process it, etc.

So the idea is to match bb code to a "process" class.

Based on the 2.1.8 code, I wrote BBExt.... classes in the same way BBCode is managed. (Handler, Item, etc).
I add an interface which external process class can implements :


And a XML declaration file (name bbext_config.xml in config directory)



All work fine now... So just, I won't want to have to repatch JForum at each release, I would like to know if my code can be integrated to JForum, and if yes, what's the procedure ? ( using a diff command, zipping my source workcopy, other ?)

Regards ;)
[originally posted on jforum.net by SegFault]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hehe. That's *exactly* what I'm doing on JForum3. Take a look:

http://code.google.com/p/jforum/source/browse/trunk/jforum/src/main/java/net/jforum/bbcode

And the test cases:

http://code.google.com/p/jforum/source/browse/trunk/jforum/src/test/java/net/jforum/bbcode

Rafael
[originally posted on jforum.net by Rafael Steil]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic