Hire us to design your site.
Oct
8
2011

Statistic in frontpage (vldpersonals)

People had ask me this question a few times … how to make stats on the frontpage:
 
I think some of us allready use stats on our sites and some not.
and some people don´t know how to do …
 
Maybee you have more stats code.
Please comments it here … so we can have a better stats code on our sites.
 
Now I will explain how to do: (the code is …)
 
total members:
{stats:count=”members”,online=”0″,cache_time=1,cache_name=”totalmembers”}

online members:
{stats:count=”members”,online=”1″,cache_time=1,cache_name=”totalonline”}

example for 2.5.3:
insert the code in your header.tpl or homepage.tpl
find this code:

<div id=”sidebar”>
{polls:polls=””,limit=”1″}
…the stats code here …
 

here is how I did it on my site (2.5.3)

<div id=”sidebar_wrap”>
<div id=”sidebar”>
 
<br>total members:
{stats:count=”members”,online=”0″,cache_time=1,cache_name=”totalmembers”}
<br>online members:
{stats:count=”members”,online=”1″,cache_time=1,cache_name=”totalonline”}
 
{polls:polls=””,limit=”1″}
<div>
{banners:group=”sidebar”}
 

but on 2.5.5 it is little different
you must insert the code in sidebar.tpl
find {polls:polls=””} in the bottom of the page.
and the code will be like this:

{polls:polls=””}
<br>total members:
{stats:count=”members”,online=”0″,cache_time=1,cache_name=”totalmembers”}
<br>online members:
{stats:count=”members”,online=”1″,cache_time=1,cache_name=”totalonline”}
<div>{banners:group=”sidebar”}</div>
 

I use tags <br> so it will be like this:
total members
total online
 
if you don´t … it should be like this:
total members total online
 
some templates has sidebar in header.tpl some in homepage.tpl
and the newer versions of vldpersonals have it in sidebar.tpl
so we can do it in different way but only ask and I try to explain how !
 
I had try the code in both 2.5.3 and 2.5.5 and know it´s working !
I had try to get man/woman stats to working but no success with it.

VldMods

About the Author: gugu

Hey ... I´m the owner of this site ;) If you need help customize your vldpersonals site. Please ask me and I will try to help you. Enjoy reading !

Comments are closed.

About VldMods

Welcome to vldMods here we will try to connect all free and pay mods for vldpersonals 2.5.3 and newer.

You can now translate VldMods in 50 different languages.

Translate a post then you Continue Reading »

Add your vldpersonals site here.

Sponsor/Donate to VldMods

I hope you like VldMods if you sponsor me I can make it even better ;) Thanks.

Find Us On Facebook

VldMods Newsletter

Subscribe to VldMods Newsletter a confirmation email will be sent to you!
This is a good way to be informed about our tutorials and news.

VldMods Polls

Should We Have Php Tutorials For Beginners?