$SectionName = "Manage_Templates";
### Section 1
#############################################
$SectionSub1 = "Accessing_the_Template_Editor";
$SectionBody1 = q~
YaBB gives you the ability to quickly and easily add and/or modify the look and feel of your Forum. In order to access these functions, you must be logged in as a Forum Administrator or Global Moderator with proper access rights. In the “Admin Center” find the section in the left hand menu titled “Forum Layout”. There you will see two links: “Template Configuration”, and “Style Sheet”.
~;
#############################################
### Section 2
#############################################
$SectionSub2 = "Template_Configuration";
$SectionBody2 = q~If you would like to add a Template (also known as a skin), change which stylesheet file you'd like to use for your Forum, or use templates other than the default one, this section allows you to do that.
Adding a New Skin
- Create a folder in 'yabbfiles/Templates/Forum' (this location may be different for you) for the graphics for your new skin and upload your graphics. Also upload your new stylesheet to the same place that default stylesheet (default.css) is. (Do NOT overwrite your default stylesheet.) Your new stylesheet should have a name that will be easily associated with your new graphics folder. (For instance, you would like to use a 'Noir' skin. Name the graphics folder 'noir' and the stylesheet 'noir.css'.)
- Create a folder in your 'yabb2/Templates' directory for your new template files. (Again, make sure the name is something you will easily associate with your new skin.) Upload your new Template files into this directory. The '.html' file must not be named 'default.html' - give it the same name as your new folder. (Using the above example, name the folder 'noir' and the .html file 'noir.html'.)
- In “Template Configuration” the names of your new stylesheet and folders should now show up in the drop-down selection box. Choose the new folders, templates, and stylesheet for your new skin. Create a name for the new skin and type it into the textbox at the bottom of the “Template Configuration” page. Save your new skin under its new name. Now you can choose your new skin as the default for new members and guests in the “Forum Settings and Preferences” area.
~;
#############################################
### Section 3
#############################################
$SectionSub3 = "Editing_Templates";
$SectionBody3 = q~YaBB gives you the ability to edit the html code for all the major Forum sections except the Admin Center.
Editing a Template
- At the top of the “Template Configuration” section is a link “Go to Edit Template Files”. This opens the Edit Templates section. The drop-down selection list shows all the various templates files in all the template folders. The contents of the selected file will appear in the window and can be edited. Note: with the exception of files with the '.html' extension, all the template files are Perl coded files. Do not edit or alter any variable names. ( $variable = q\~html code here\~;) Changing variable names can render your forum inoperable.
~;
#############################################
### Section 4
#############################################
$SectionSub4 = "Editing_Style_Sheets";
$SectionBody4 = q~YaBB also gives you the ability to edit the forum stylesheet, choose button backgrounds and backgrounds for the UBBC buttons.
Editing a Style Sheet
- The “Style Sheet” button takes you to the “WYSIWYG Style Sheet” section where you can change attributes such as color and background color for items such as the Board Index Title, Category Bar, Message display sections.
The default stylesheet cannot be edited from WYSIWYG screen. However, you can save your changes to a new stylesheet and then choose that stylesheet as the stylesheet for your default template in the “Template Configuration” section.
Editing a Stylesheet file
- At the top of the “WYSIWYG Style Sheet” section is a button “Source”. This opens the “Edit Style Sheet” section. The drop-down selection list shows all the available stylesheets, including those belonging to special functions such as the 'calscroller'. The contents of the selected file will appear in the window and can be edited.
~;
1;