Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Template Auto Add 4 YaBB 2.4 (beta 0.1) (Read 1421 times)
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Template Auto Add 4 YaBB 2.4 (beta 0.1)
Apr 28th, 2009 at 12:41am
Print Post  
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
Select All
###############################################################################
# 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; 






« Last Edit: Feb 26th, 2010 at 9:45am by Carsten »  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
Captain John
Senior Member
****
Offline


Pass to Port !

Posts: 264
Location: Reno Beach
Joined: Jan 18th, 2007
Gender: Male
Re: Template Auto Add 4 YaBB 2.4 (beta 0.1)
Reply #1 - Apr 28th, 2009 at 3:28am
Print Post  
Another Super MOD for Template designers !  (Includes you CSS Button MOD)

Great work Carsten
  

Love to live and love on the water
Back to top
 
IP Logged
 
LWS
Senior Member
****
Offline


seek and ye shall find...i
must be BLIND!!

Posts: 285
Location: Southern Ohio
Joined: Feb 25th, 2007
Re: Template Auto Add 4 YaBB 2.4 (beta 0.1)
Reply #2 - Apr 28th, 2009 at 11:49pm
Print Post  
Thank you Carsten!!! I would strongly suggest everyone use this mod !! it is a must have!
  

LoneWebSurfer.com Nothing but YaBB templates
Back to top
WWW  
IP Logged
 
Red_Barchetta
New Member
*
Offline


Now running Yabb 2.4

Posts: 29
Location: Miami
Joined: Dec 8th, 2005
Gender: Male
Re: Template Auto Add 4 YaBB 2.4 (beta 0.1)
Reply #3 - Oct 5th, 2009 at 1:00am
Print Post  
If I fully understood how to use it...    Huh
  

Jack of all trades, master of none....
Yabb 2.1 & 2.4 @ 65.7.201.7
Back to top
IP Logged
 
LWS
Senior Member
****
Offline


seek and ye shall find...i
must be BLIND!!

Posts: 285
Location: Southern Ohio
Joined: Feb 25th, 2007
Re: Template Auto Add 4 YaBB 2.4 (beta 0.1)
Reply #4 - Oct 7th, 2009 at 9:40pm
Print Post  
Red_Barchetta wrote on Oct 5th, 2009 at 1:00am:
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
  

LoneWebSurfer.com Nothing but YaBB templates
Back to top
WWW  
IP Logged
 
Red_Barchetta
New Member
*
Offline


Now running Yabb 2.4

Posts: 29
Location: Miami
Joined: Dec 8th, 2005
Gender: Male
Re: Template Auto Add 4 YaBB 2.4 (beta 0.1)
Reply #5 - Oct 10th, 2009 at 3:38pm
Print Post  
Good! Thanks.   Smiley
  

Jack of all trades, master of none....
Yabb 2.1 & 2.4 @ 65.7.201.7
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint