Lizard King |
01-07-2006 10:00 PM |
Overlay Round Image for Photopost vBgallery
I was looking for this kind of modification for a long time. Last night i worked on it and figured out a way to do this.
Upload overlay-round.gif to your style's misc folder.
Open adv_gallery_imagebit
find :
HTML Code:
<div align="center" style="margin-top:5px;margin-bottom:5px">
<a href="showimage.php?$session[sessionurl]i=$images[imageid]$adv_sorturl"><img alt="$images[title]" border="0" src="$images[url]" /></a>
</div>
replace with :
HTML Code:
<div align="center" style="background-repeat: no-repeat; background-position: center; background-image: url($images[url]);" class="alt1">
<a href="showimage.php?$session[sessionurl]i=$images[imageid]$adv_sorturl"><img alt="$images[title]" border="0" src="$stylevar[imgdir_misc]/overlay-round.gif" /></a>
</div>
Optional :
If you like to add any background color you shall use the following code instead of the one above
HTML Code:
<table width="105" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="105" align="center" style="background-repeat: no-repeat; background-position: center; background-image: url($images[url]); background-color: #000;">
<a href="showimage.php?$session[sessionurl]i=$images[imageid]$adv_sorturl"><img alt="$images[title]" border="0" src="$stylevar[imgdir_misc]/overlay-round.gif" /></a>
</td>
</tr>
</table>
In order to change the background color just change #000 to any color you like. I added a screenshot for the background color.
You are ready to go.
Demo
* You need to have Photopost vB gallery installed for this mod.
|