*
The moose likes JForum and the fly likes How do I use a different template? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "How do I use a different template?" Watch "How do I use a different template?" New topic
Author

How do I use a different template?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
jForum Documentation Templates and styles http://www.jforum.net/doc/TemplatesAndStyles
All JForum templates are stored in the directory templates, where each sub-directory is a template name, being the default template name callled default. There you will find all HTML files, as well Javascripts, images and CSS files.

Hi, I have created some new templates and placed them in a new directory jforum/templates/my-template/.

jForum Community Forum http://www.coderanch.com/t/574712 #2141
Open WEB-INF/config/SystemGlobals.properties and put "my-template" in the key "templateName". That's all. Of course you'll need to have all templates into this new diretory.

Rafael

Yes I have all the needed templates in the new diretory. I can not find the key "templateName" in the WEB-INF/config/SystemGlobals.properties.

:?:How do I get jForum to read the new template directory :?:
[originally posted on jforum.net by langie]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
langie wrote: jForum Documentation Templates and styles http://www.jforum.net/doc/TemplatesAndStyles
All JForum templates are stored in the directory templates, where each sub-directory is a template name, being the default template name callled default. There you will find all HTML files, as well Javascripts, images and CSS files.

Hi, I have created some new templates and placed them in a new directory jforum/templates/my-template/.

jForum Community Forum http://www.coderanch.com/t/574712 #2141
Open WEB-INF/config/SystemGlobals.properties and put "my-template" in the key "templateName". That's all. Of course you'll need to have all templates into this new diretory.

Rafael

Yes I have all the needed templates in the new diretory. I can not find the key "templateName" in the WEB-INF/config/SystemGlobals.properties.

:?:How do I get jForum to read the new template directory :?:

Do you see a "template.dir=default" entry in your SystemGlobals file? Put your new template directory name in the place of default.
[originally posted on jforum.net by GatorBait3]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
GatorBait3 wrote:
Do you see a "template.dir=default" entry in your SystemGlobals file? Put your new template directory name in the place of default.


Yes I found the key 'template.dir' and it works really well. I am very happy because I can now make my own set of templates.

I feel that the location of this important key should be included in the 'Templates and Styles' document http://www.jforum.net/doc/TemplatesAndStyles

Thank you for your really fast reply.
[originally posted on jforum.net by langie]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How do I use a different template?
 
Similar Threads
Upgrading to version 2.1
New Templates
How to refresh JForum after alterations in style files ?
Switching Template
How to customize JForum look'n feel?