PDA

View Full Version : Member Countdown (vB4)



PhucSD
04-07-2011, 04:40 PM
Member countdown đếm số lượng member trong forum của bạn và nó cho phép bạn chèn con số đó ở bất cứ đâu trong diễn đàn



What is it?
=====================================

it is a countdown which will count total member registered in a forum and will display it. it refreshes every 10 seconds(u can increase or decrease seconds).

Demo
=====================================
download demo.zip and extract it. open the html file in internet explorer.

Install Instructions
=====================================

1. Upload the file which is there in upload.zip to your forum root.

2. Template Edit

Code:


Open Headinclude template and add at bottom

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var updatecount = function(){
$('#membercount')
.load('mem_count.php')
.fadeIn("slow");
};

var auto_refresh = setInterval(function(){updatecount();}, 10000);
updatecount();
});
</script>

3. To Display the total member count use this code:


<div id="membercount"></div>


You can use this code anywhere like notice, footer etc.. you can customize it also as per your need. if u need help just pm me or reply