4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: zaisk on November 19, 2005, 04:33:21 PM

Title: Preloader as advertisement between thumbnail and flash file
Post by: zaisk on November 19, 2005, 04:33:21 PM
Hello,

What I have to change that between thumbnail and flash file will apear html page with advertisement for 5-7 seconds ???

Please help me with that.

Thank you.
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: mawenzi on November 19, 2005, 06:19:51 PM
hi zaisk

another solution ... here we go ... :

open /templates/<your_template>/header.html and find at the end * :
Code: [Select]
<table width="...%" border="0" cellspacing="0" cellpadding="0" align="center">

Add above :
Code: [Select]
<script type="text/javascript">
var wait = setTimeout('load()',10000);
function load()
{
document.getElementById("content").style.visibility="visible";
}
</script>
<div id="advertisement" style="position:absolute; z-index: 1; visibility: visible">
<br>
Here your Advertisement ... !
(tables, images, ... are possible)
<br>
</div>
<div id="content" style="position:absolute; z-index: 999; visibility: hidden">

open /templates/<your_template>/footer.html and find at the end :
Code: [Select]
</body>
</html>

Add above :
Code: [Select]
</div>

... var wait = setTimeout('load()',10000); ... Here test your time for your Advertisement !
... * ... or on the top of details.html ... .

... thats all ... I hope this is now good for you ... :wink:

mawenzi
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: zaisk on November 19, 2005, 07:17:44 PM
Thanks for that, but in this way advertisement appears after every click, I wanted that it appear just before flash games, because your given way (I think) is not likely buy visitors:)
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: V@no on November 19, 2005, 07:30:32 PM
Try use the same method in templates/<your template>/media/swf.html template
I belive the JS code does not have to be in the <head>
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: zaisk on November 19, 2005, 07:55:15 PM
I tried to use it in swf.html file, but didnt't work for me. The advertisement appeared in something like in new window(on the same window, but on top), and after some time (the loading wasn't finished counting), also on the top opens the flash fle. So Something is not working.

I will be very very happy if someone could write the same script (working) for the swf.html file. Thank again.
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: mawenzi on November 19, 2005, 11:31:04 PM
...  is not likely buy visitors:) ...
is any advertisement likely by visitors ... :roll: ... ?

- take only the "java script" in every media.html-file and the <div>...</div>-code leave there in details.html
- and where you need the advertisement set the right time for "load"
- and where you need no advertisement set "0" for "load"

and now it's your turn (e.g. also for other solutions)
mawenzi
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: zaisk on November 20, 2005, 10:08:18 AM
:) There I just wanted to say that visiotrs do not like such am advertisement )sorry for bad english)

Thank for helping but I have the same problem again, game and advertisement appears not in page, but on the top of the page.

Have any ideas? Please explain everything step by step....


Thank you
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: mawenzi on November 21, 2005, 12:50:52 PM
I tested my last solution * on my site ... and it works in the best way as a preloader.
that means ...
- klick on a flash-thumbnail on a category-page
- now it shows 10sek. a blank page with a advertisement (or whatever you wanted) as preloader
- after 10sek. it shows the 4images-flash-site

I think that is what you you searched and wanted ...  8)

PS. : another solution is a frameless container with your advertisement ... over the 4images-flash-site ... with must klicked for closing or for following the advertisement-link

PPS. : but test again my last solution ... correctly ... with the div-container ( but it works on http://www.zaisk.com ... a 4images-Free-Copyright-Version ... ? )

last solution *
- take only the "java script" in every media.html-file (swf.html, jpg.html, ... )
- the <div>...</div><div>...-code leave there in details.html   (on the top ...!)
- and the </div> leave there in details.html   (at the bottom ...!)
- and where (media.html-file ...swf.html,...) you need the advertisement set the right time for "load"
- and where (media.html-file ...jpg.html,...) you need no advertisement set "0" for "load"

mawenzi
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: V@no on November 21, 2005, 02:40:57 PM
May I add: also this method is reather anoying for visitors ;)
IMO the advertisement should not be showed on every page request, perhaps every NN clicks (probably cookies or 4images sessions would required for this)
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: mawenzi on November 21, 2005, 03:03:06 PM
... the advertisement should not be showed on every page request ...

... but on every flash-page ... and that realized my last solution ...  :wink:

PS. I updated my last solution in the post above
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: zaisk on November 21, 2005, 10:14:21 PM
It is amazing... Thank you for all the help you did. Big thank you for you guys and one more question:)  :

I inserted all the code you said and working fine for me, but better would be that the "loading" do not open in new widow, but the loading would be in the same place before flash place. Do you understand?:)


It would be great to see that advertisement preloader, in witch visitors coudn't continue if they do not press the adss :) That will be the greatest one, but hte adss do not have to apen in new window too.


Once more thank for you.
This is the best supporting I have every seen!!!
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: V@no on November 22, 2005, 02:34:23 AM
but better would be that the "loading" do not open in new widow, but the loading would be in the same place before flash place.
If you do the same modifications that mawenzi posted above but instead of changing anything in details.html do it in media templates such as swf.html woud work as u wanted ;)

It would be great to see that advertisement preloader, in witch visitors coudn't continue if they do not press the adss :)
If I'm not misstaken many "pay-per-click" companies may close your account with them if you force your visitors to click on their ads...(because that way visitors will not be interested in what the ad company selling and will close the window or something like that)
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: mawenzi on November 22, 2005, 10:33:03 AM
... but better would be that the "loading" do not open in new widow, but the loading would be in the same place before flash place ...

than take this /templates/<yor_template>/media/smf.html :
Code: [Select]
<!-- Template file for Flash Movies -->
<script type="text/javascript">
var wait = setTimeout('load()',10000);
function load()
{
document.getElementById("content").style.visibility="visible";
}
</script>
<table cellpadding="1" cellspacing="0" border="0">
<tr><td width="{width}" height="{height}" valign="top">
<div id="advertisement" style="position:absolute; z-index: 1; visibility: visible">
<br><center>
Here your Advertisement ... ! <br>
(tables, images, ... are possible)
</center><br>
</div>
<div id="content" style="position:absolute; z-index: 999; visibility: hidden">
<table cellpadding="1" cellspacing="0" border="0">
  <tr>
    <td bgcolor="#000000">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"{width_height} />
      <param name="movie" value="{media_src}">
      <param name="quality" value="high">
      <param name="play" value="true">
      <param name="scale" value="false">
      <embed src="{media_src}" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"{width_height}></embed></object></td>
  </tr>
</table>
</div>
</td></tr></table>

mawenzi
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: zaisk on November 23, 2005, 10:13:08 PM
Thanks again, working perfect
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: zaisk on April 09, 2006, 12:50:57 PM
I am again here after so long time..

I need the same thing for *.jpg *.gif *.wmw *.avi *.mpg (for all video and pictures files)

When I am changing the same script for other media file, so I get the video starting at the same time when starting showing the advertisement, but just sound goes, video is not showing. But when preloader timer finish when the video pop-up on the top and make a mess. The ads are also showing in pop-up without window not in details page.

Please, I very need that Ads Preloader for  this script.

Very thank you.
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: zaisk on April 12, 2006, 08:00:43 PM
please...
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: zaisk on May 13, 2006, 10:39:53 AM
I am again here after so long time..

I need the same thing for *.jpg *.gif *.wmw *.avi *.mpg (for all video and pictures files)

When I am changing the same script for other media file, so I get the video starting at the same time when starting showing the advertisement, but just sound goes, video is not showing. But when preloader timer finish when the video pop-up on the top and make a mess. The ads are also showing in pop-up without window not in details page.

Please, I very need that Ads Preloader for  this script.

Very thank you.


Please make it. If you can't make it for free, please let me now how much money you want for this programing. I can pay $. Just let me now.
This hack is very important for me.
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: batu544 on September 24, 2007, 04:46:27 PM
Can we disable this for registered user ?
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: mawenzi on September 24, 2007, 04:56:11 PM
... use this, it is only for guests ...
Code: [Select]
{if user_loggedout}
... here your code for preloader as advertisement  ...
{endif user_loggedout}
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: batu544 on September 26, 2007, 05:37:29 PM
Thanks mawenzi,
                         It works fine... :)
Title: Re: Preloader as advertisement between thumbnail and flash file
Post by: GaYan on January 26, 2010, 02:47:02 AM
cant we use this as a image preloader  ?