"Corporate" Template FAQ

Lawrence Meckan

Absalom Media

"Corporate" Template FAQ

This tutorial covers:

Module positions

Module positions for the front page:
Module Positions

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; }
  • Licencing

    Licencing for this template amongst the Mambo community is under the Creative Commons 2.0 Attribution Non-Commercial Share-Alike licence.

    If you wish to use this template on a corporate site, or on a third party site that displays any type of banner advertising for commercial advantage, it is recommended you purchase a commercial use licence for it.