• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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]
 
I am going to test your electrical conductivity with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic