This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JForum and the fly likes Editing jforum pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » JForum
Bookmark "Editing jforum pages" Watch "Editing jforum pages" New topic

Editing jforum pages

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hey guys,
I want to add google ads to my forum. Is the best way to do this to write my own html page and include the jforum pages or can I edit the source html of the jforum pages to include these? For other things, it would be nice to be able to the latter
[originally posted on by sroberts82]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The "look and feel" of jForum is defined by the html files template directory you are using. These are Freemarker "psuedo" html files that contain both HTML and Freemarker script language statements. (See the Freemarker site for details on this).

The easiest way to modify the "wrapper" around jForum (like including Google ads, etc) is thru the header and footer files. Every jForum page does an "include" of the header.html and footer.html files.

In general, the best way to modify the jForum look and feel is to make a copy of the "default" directory in the templates directory. Then change template.dir setting in your config to use the new directory.

This lets you make changes while still having a fall back to the original look and feel. It also helps when new releases come out.
[originally posted on by monroe]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Editing jforum pages
jQuery in Action, 3rd edition