Mambo (formerly named Mambo Open Source or MOS) is an open source content management system (CMS) for creating and managing websites through a simple web interface. It has attracted many users due to its ease of use. Mambo also includes more advanced features such as page caching to improve performance on busy sites, advanced templating techniques, and a fairly robust API.
Mambo Home arrow Mambo Tutorials arrow Editing mambo templates images logo
Wednesday, 20 August 2008

Main Menu
Mambo Home
About the Project
Articles
Mambo Tutorials
Website Templates
Photoshop Tutorials
Links
Mambo News
Downloads
Contact Us
Our Sponsors

Editing mambo templates images logo PDF Print E-mail

Random Images in Header.

From this tutorial I will explain how to show random images in header.

  1. Create few images or logo the same width and height size.
  2. Upload that images to your “images” folder where your template located.
  3. Set names for all header images: header1.jgp, header2.jgp, header3.jgp etc..
  4. Now open index.php of your template and edit code that will show your images logo.

 

Here is the code:

img src="<?php echo $mosConfig_live_site; ?>/templates/your template/images/header<?php echo rand(1,5)?>.jpg" />
 
Here is (1,5) is number of your images logo.
If you can use more that 5 images for your logo you need to change number (1-10) an example.

Next >

Latest Mambo Templates
Hi-Tech Template
Free Mambo Template
 
Latest Stable Versions
Partners
Our Sponsors

Privacy Policy | Terms of Use
Copyright 2005 Mambo to You. All rights reserved.