Is there a way to add a topic from a separate web application through an api, direct database action or 'web service'? I need to be able to post a discussion for an article published elsewhere (actually, on same server, but different web app).
We still don't have any "official" API. If you need it quickly, the best way would be to hack the "insertSave()" in the PostAction ( net.jforum.view.forum ) class to access username and password from the request, so you can make a JSP page or anything else that POSTs the data to jforum. It should work.
Rafael [originally posted on jforum.net by Rafael Steil]
I need to do this as well. Certain topics will be generated in a different application and I need to automatically create a forum for each one of them. There may well be hundreds of topics that correspond to forums and there may be multiple forums per topic.
If there's no web service API for this then I suppose I'll just have to use httpunit to step through the process in the admin panel.
Also, I suppose I'll have to implement an alternative forum list.page since it obviously won't work to have hundreds of forums listed on that page.
Is there any way to force the forum urls to have names that match the forum name? For instance, the "Pac-Man happy fun time" forum could be
/jforum/forums/show/Pac-Man+happy+fun+time
I suppose that's not great in terms of URL durability since it would need to change if the forum name changed. Hmm, not sure about that one.
Regardless, I need a way to link to these newly generated forums that I create automatically. It looks like the "Click to edit" url has the forum ID in it. So, I could parse that and use it to construct the forum url. That might be tricky. I'd have to parse the page and search for the title of the forum I just created and then look for the url in the next cell.
Yuck. That's not pretty. It would be much nicer to have a web service. [originally posted on jforum.net by Anonymous]