"Corporate" Template FAQ
Lawrence Meckan
"Corporate" Template FAQ
This tutorial covers:
- Module positions
- Changing the number of images in the random image script
- Changing the overall width of the template
- Adding in a banner to mimic Mamboserver.com
- Licencing
Module positions
Module positions for the front page:
Random Image Script
Open up front.php which is in the base template directory in a text or dedicated HTML/DHTML editor. Find the following pieces of code:
$rand = rand(0,5)
and
rand(1,5) ?>.jpg
Change the number 5 to however many images you have.
Make sure all your images are labelled correctly and in the /images subdirectory of the "Corporate" template.
Modify the XML installer file to include the extra images - it already has listed 1 through to 5.
Template width
To change the overall template width, open up the template_css.css file in the CSS directory.
Change the container and .core width to suit.
#container {
width: 95%;
margin-left: auto;
margin-right: auto;
padding: 0em;
color: #000;
}
.core
{
width: 95%;
margin-left: auto;
margin-right: auto;
padding: 0em;
color: #fff;
margin-bottom: 10px;
}
For example, to change to a static width of 770 pixels:
#container {
width: 770px;
margin-left: auto;
margin-right: auto;
padding: 0em;
color: #000;
}
.core
{
width: 770px;
margin-left: auto;
margin-right: auto;
padding: 0em;
color: #fff;
margin-bottom: 10px;
}
Banners
To add in a banner to mimic Mamboserver.com:
Add in a #banner layer to both front.php and inner.php, with the "user3" module
mosLoadModules ( 'user3' )
Add the following code to the template_css.css file
#banner
{
position: absolute;
width: 300px;
height: 40px;
top:10px;
left: 475px;
}