Themes
Top  Previous  Next


Themes are only available in the source code version.

You may create themes which are similar to skins... allowing you to put multiple faces on your search engine.


themes

Perhaps you created a new language set called "German". Now do the following to create a new theme called "German" to match it.
1.Click on Templates  
2.Click on the tab labeled Themes  
3.In the text box where it says "Create Theme" type in your new theme name (i.e. German)  
4.In the "Copy From" select box choose "default" unless you want to use the format from a different theme.  
5.Click "Copy Theme"  
6.Click on Preferences under Admin Tools  
7.Click your theme name on the top of the page (i.e. German)  
8.Click on the "Style" preference and click save. Clicking save creates your config file. If you do not create this config file your themes will not function properly. (If you are having problems with your theme make sure the config file was created).  

Now, you can go to town designing all new page and internal templates written in German, with different graphics, colors, layouts, etc.

Want to tie the German language variable set to it automatically? Go to the Preferences screen, and you'll now see your new Theme name available to you across the top of the screen. Select it, and then choose "German" as the default language.

Now, when someone hits your search program with the parameter "theme=german", presto, it'll use your german page templates, and if you told it to, your german language files. The visitor will be cookied to remember the theme that they're using so it won't be necessary to worry about it switching back on them.

Along with using Themes for language sets, you can also setup themes to be used as Cobrands, for your extra special affiliates, allowing you to design a new look according to their design/graphics and parameters.

Now let's take this to a more advanced level. You can hardcode a special version of search.php for your theme.

1.Create a copy of your search.php script.  
2.Open the script in a text editor.  
3.Find the code currently says  
$theme = "default";  
5.Change this to your theme name  
$theme = "newthemename";  
7.Directly below that paste this line  
$CGI['theme'] = "newthemename";  
9.Make sure you change the "newthemename" to your new theme name.  
10.Now you can call your theme like this:  
http://domainname.com/search/themename.php  

Here's one more advanced theme option.

If you want to lock a theme in to a part of the category do the following
http://domainname.com/search/themename.php/root::CATEGORYNUMBER/ (replacing the CATEGORYNUMBER with the correct category number)