Hi all.
It's my first mod, please excuse my English.
Advertisement codes are displayed before the image is loaded which we add.
We can skip the advertisement without waiting.
Display time of advertisement can be adjusted.
The package includes "loading images".
Open includes/page_header.php
find :
"charset" => $lang['charset'],
add after
"advertby" => $lang['advertby'],
"byadvert" => $lang['byadvert'],
save and exit.
Open lang/english/main.php
find :
?>
add before
$lang['byadvert'] = "Skip Advert";
$lang['advertby'] = "image loading.Please wait..";
now...
Open templates/yourtemplate/details.html
find :
{image}
replace
<script>
window.setTimeout("document.getElementById('adverts').style.display = 'none';document.getElementById('himself').style.display = '';",5000);
</script>
<div id="adverts">
<div align="right"><font face="Arial" style="font-size: 10pt; font-weight: 700"><a href="#" onclick="document.getElementById('adverts').style.display = 'none';document.getElementById('himself').style.display = '';">
{byadvert}</font></div>
<center>
<font face="Arial" style="font-size: 9pt; ">{advertby}</font><font face="Arial" style="font-size: 9pt; font-weight: 700"><br>
</font><img border="0" src="{template_url}/images/load.gif"><br>
YOUR ADVERT CODE.
</div>
<div id="himself" style="display:none";>
{image}
</div>
note: using google adsense is forbidden. please use codes of other advertising companies.
[EDIT by V@no]
moved "find:" out of the code block.