• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Editing jforum pages

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Thanks,
Ste
[originally posted on jforum.net by sroberts82]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 jforum.net by monroe]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!