Adding Ad to Mihalism Image Hosting Script

Mihalism is one the most widely used free image hosting script.I have already discussed about this script in my previous post about free scripts for image hosting site.I’m running my image hosting sites on Mihalism script. And, I must say that this image hosting script is highly customizable. Now mostly these image hosting sites are monetized using CPC/CPM advertising model.This post will discuss about configuring Ad in the homeand image viwer page.


Generate advertising codes from Adsense,Adbrite or any other advertiser
— For home page get a 300 x 250 ad code.
— For image viewer get ad code around the size of 720 x 90.

Home Page Ad
1. Open style.css present in css directory and add following.

/* 300 x 250 ad */#ads{
float: right;
width: 350px;
margin:5px 0 5px 5px;
padding:5px;
border:1px solid #c0c0c0;
background-color:#fafbfc;
color:#505050;
line-height:1.5em;
}

2.Open  home.tpl present in source/public_html directory. Add following code after
and .

 

Image viewer Ad 
1. Locate following in viewer.tpl present in source/public_html

<# REAL_FILENAME #>

2. Add the generated ad code above and below the line given above.To make it look good, you can put the ad code like the way given below ;

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *