FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Template Set vs Theme
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon5.gif  Template Set vs Theme [message #5562] Mon, 09 September 2002 15:58 Go to next message
holstein   Canada
Messages: 9
Registered: August 2002
Location: Montreal
Karma: 0
Junior Member
I'm just beginning to work in the Fud code to adapt a few things to my site.

I'm a bit confuse about the code layout, mainly with the theme/template set functionnality. Here is the things I don't quite understand correctly :

What is exactly the difference between a Template Set and and Theme?

Where are they store when they are created? I can see a (FUD_ROOT)/theme/my_theme and a (FUD_ROOT)/forum_data/thm/my_template_set. What are they both used for?

And, finally, say I want to modify the behavior of a part of my forum. Where should I do the modification? As I understand, I shoud edit :
(FUD_ROOT)/forum_data/src/ for modification that applies to all the theme/template set
and the above mentionned path for the template set and theme appliable modification.
Is that right? And if so, I still don't understand when I shoud modify the theme / template set files.
... Confused
Re: Template Set vs Theme [message #5567 is a reply to message #5562] Mon, 09 September 2002 17:33 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
A template set is essentially a seperate copy of the default set of templates. This copy contains the i18n/ and thm/ directories that contain the actual templatable data.
The src/ directory contains the source code responsible for the entire forum, the src/ directory is common for all templates.

The difference between between a theme & a template as is that a theme referes to any combination of a template set & a language. For example, default template set + french language. While the template set refers just to a particular set of templates representing a certain layout.

If you want to modify the layout it is recommended you make a new template set and then modify the files inside the that_template_set_name/thm/ that_template_set_name/i18n/


FUDforum Core Developer
Re: Template Set vs Theme [message #5569 is a reply to message #5567] Mon, 09 September 2002 18:58 Go to previous messageGo to next message
holstein   Canada
Messages: 9
Registered: August 2002
Location: Montreal
Karma: 0
Junior Member
Thanks, it's more clear now!

Quote:

If you want to modify the layout it is recommended you make a new template set and then modify the files inside the that_template_set_name/thm/ that_template_set_name/i18n/


And if I want to modify something in the logic of the code (say, I want to react to some event in the forum in my data set), am I right to think that I should modify the code in forum_data/src? Or is the code there used to make a copy in some files under template_set_name/thm ?

Thanks again!
Re: Template Set vs Theme [message #5570 is a reply to message #5569] Mon, 09 September 2002 19:00 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Regardless of the theme all the source code will ALWAYS be found inside forum_data/src/, so if you want to make changed pertaining to the source code that is where you should make them.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Hidden Forum/Category
Next Topic: Changing users 'Ranks'
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 13:12:53 GMT 2024

Total time taken to generate the page: 0.02888 seconds