Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-12-01 11:47:36

Eri
Member
Registered: 2011-03-18
Posts: 977

Auto renew watched videos in x seconds

If you want to auto renew watched videos in x seconds
demo: http://freepornscan.com/

Just open frontpage.tpl.php
change this

<script type="text/javascript">
$(document).ready(function() {
$("#refresh").click(function(e) {
e.preventDefault();
$("#content-watched-videos").load("<?php echo RELATIVE_URL; ?>/ajax/?s=watched");
});
});
</script>
<script>
var refreshId = setInterval(function()
{
     $('#content-watched-videos').fadeOut("slow").load('<?php echo RELATIVE_URL; ?>/ajax/?s=watched').fadeIn("slow");
}, 20000);
</script>

Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2012-04-23 03:37:52

klauzser
Member
Registered: 2012-04-23
Posts: 12

Re: Auto renew watched videos in x seconds

Nice. Thanks for the share.. Works great!


Works like a charm!!!text-smiley.png

Offline

Board footer

Powered by FluxBB