The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

31.07.10 at 09:55:16, Welcome, Guest. Please Login or Register

Choose Language:
Page Index Toggle Pages: 1
Template Auto Add 4 YaBB 2.4 (beta 0.1) (Read 2671 times)
Carsten
Mod Author of the Year 2003
*****
Offline

Langå, Denmark
Posts: 3250



28.04.09 at 00:41:25  
This mod let template authors add a small configuration file to automatically implement a template.
The format is similar to the one used in YaBB 2.1 - 2.3.1 only now it can add My Center and Menu Type too.
The configuration file must have the same name as the template sub-folder and files and the extension: .cfg
The implementation is done the first time the admin goes to Admin Center and the configuration file will 'self destruct'.

Format:

Code:
###############################################################################
# Formula 1 Template Configuration                                            #
###############################################################################

$template_name = "Formula 1"; # This is the name of your new template set (max. 50 characters).
$template_css = 1; # Set to 1 if your template set includes a style sheet else 0 to use default.
$template_images = 1; # Set to 1 if your template set includes a images folder else 0 to use default.
$template_head = 1; # Set to 1 if your template set includes a head file (.html) else 0 to use default.
$template_board = 1; # Set to 1 if your template set includes a BoardIndex template else 0 to use default.
$template_message = 1; # Set to 1 if your template set includes a MessageIndex template else 0 to use default.
$template_display = 1; # Set to 1 if your template set includes a Display template else 0 to use default.
$template_mycenter = 0; # Set to 1 if your template set includes a My Center template else 0 to use default.
$template_menutype = 2; # Set to 0 for Icon + Text, 1 for Text Only or 2 for Buttons.

1;



Download Template Auto Add 4 YaBB 2.4


« Last Edit: 26.02.10 at 09:45:52 by Carsten »  
IP Logged
 

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Captain John
Hacker Expert
****
Offline

Reno Beach, Ohio, USA
Posts: 250



Reply #1 - 28.04.09 at 03:28:51  
Another Super MOD for Template designers !  (Includes you CSS Button MOD)

Great work Carsten
 
IP Logged
 

Love to live and love on the water
LWS
Hacker Expert
****
Offline

Southern Ohio, Ohio, USA
Posts: 285



Reply #2 - 28.04.09 at 23:49:28  
Thank you Carsten!!! I would strongly suggest everyone use this mod !! it is a must have!
 
IP Logged
 

LoneWebSurfer.com Nothing but YaBB templates
Red_Barchetta
Bloody Novice
*
Offline

Miami, Florida, USA
Posts: 29



Reply #3 - 05.10.09 at 01:00:39  
If I fully understood how to use it...    Huh
 
IP Logged
 

Jack of all trades, master of none....
Yabb 2.1 & 2.4 @ 65.7.201.7
LWS
Hacker Expert
****
Offline

Southern Ohio, Ohio, USA
Posts: 285



Reply #4 - 07.10.09 at 21:40:08  
Red_Barchetta wrote on 05.10.09 at 01:00:39:
If I fully understood how to use it...    Huh

Not much to using it Wink What it does is make it so a cfg (configuration file) can be used to *auto* set up the template.. saving you from having to go into the template configuration section of the admin center and set up the newly installed template..
YaBB used to do this by default... but not anymore.. but with this.. it will again Smiley  Ideally.. template designers will make the cfg and include it in their template so all you would have to do is upload the template as per instructions and poof.. its ready to use.
As far as i know tho.. none of the current 2.4 template have the cfg.. I know mine dont.. only because I havnt had time to go back and do it.. but any future templates I might make will certainly have one included Wink
 
IP Logged
 

LoneWebSurfer.com Nothing but YaBB templates
Red_Barchetta
Bloody Novice
*
Offline

Miami, Florida, USA
Posts: 29



Reply #5 - 10.10.09 at 15:38:41  
Good! Thanks.   Smiley
 
IP Logged
 

Jack of all trades, master of none....
Yabb 2.1 & 2.4 @ 65.7.201.7
Page Index Toggle Pages: 1
© 2000-2009 by - All rights reserved.

SourceForge.net Logo
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum