If anyone else is using the JForum2.1.5 from CVS from the tag Root_B2_1_5_LocaleExt these might help you out, some things I found and have fixed. Of course these worked for me, but might need changing tweeking to work on your own system.
- On adding forums and categories, the new additions do not appear until Jforum is re-deployed. To fix this in both /src/net/jforum/view/admin/CategoryAction and ForumAction the list() method was changed from
List l = DataAccessDriver.getInstance().newCategoryDAO().selectAll();
- In order to wrap our website's JSP framework around Jforum to integrate it into the site (embed the forums) I created a filter that evaluates the Jforum stuff and saves it, based on an example of how to modify output using a filter. The the JPSs can be included in the correct order around the Jforum output to correctly build the page. Just google CharArrayWrapper, as it is used in a number of Filter examples.
But to get that to work, the /src/net/jforum/JForum.java gets an outputstream rather than the writer that we have overwritten in CharArrayWrapper. So to fix this we just modify Jforum.java to getWriter instead of getOutputStream (which it turns into a writer immedietly anyways). So change
out = new BufferedWriter(new OutputStreamWriter(response.getOutputStream(), encoding));
out = new BufferedWriter(response.getWriter());
- To display attachment images rather than have them always open up the saveas window change the following in /src/net/jforum/view/forum/PostAction in downloadAttach()
- Also the bookmark js script does not work in that version as the reference to the /templates/default/js/utils.js has been removed from post_show.htm. just add <#include "js/utils.js"/> to post_show.htm at the top
Thomas [originally posted on jforum.net by Anonymous]
Anderson gave himself the promotion. So I gave myself this tiny ad: