Topic: sidebar "Statistics"
Hello everyone.
How to create in sidebar block "Statistics" from site.
For example:
Members: 24426
Comments: 1031
Friends: 6507
Diary: 179
Posts: 46,418
Albums: 9071
Photo: 11026
Any ideas? Thx.
You are not logged in.
Hello everyone.
How to create in sidebar block "Statistics" from site.
For example:
Members: 24426
Comments: 1031
Friends: 6507
Diary: 179
Posts: 46,418
Albums: 9071
Photo: 11026
Any ideas? Thx.
I need help guys, please.
This is not useful for your users !
But if you really want show them, you can inspire from includes/ext/ext.stats.php
Last edited by matrimo (2011-04-13 06:56:09)
Online members: {stats:count="members",online="1",cache_time=1,cache_name="online"}
Total members: {stats:count="members",="1",cache_time=5,cache_name="empty"}
Total pictures: {stats:count="pictures",="1",cache_time=5,cache_name="empty"}
Total blogs: {stats:count="blogs",="1",cache_time=5,cache_name="empty"}
Total videos: {stats:count="videos",="1",cache_time=5,cache_name="empty"}
Total audios: {stats:count="audios",="1",cache_time=5,cache_name="empty"}
bpejic, thx
I have problem with this part of code:
{stats:count="messages_gifts",="1",cache_time=120,cache_name="gifts8"}
this code does not work, no output. What's wrong?
And the next question. In the user profile is a field, and if one of the fields blank, displays "I'll tell you later" How to do that if the field is empty, then it is simply not displayed.
Thx.
How can I creating new sidebar block?
How can I creating new sidebar block?
okey first tell us that templates you are using.
after that I can tell you how to do.
atomjani wrote:How can I creating new sidebar block?
okey first tell us that templates you are using.
after that I can tell you how to do.
"redlove"
Thank you the help.
open sidebar.tpl
find:
<div class="banner">{banners:group="sidebar"}</div>
you can find it in the bottom of sidebar.tpl
under this code you can insert a new block.
and style it in your sidebar.css
1. you must make a new div
2. make a new class
3. style it in sidebar.css
I´m back later with an example how to do, but I´m sure you will fix it.
(example: <div class="block_bottom">and your code here</div>
Last edited by gugu (2012-03-28 09:36:24)
Yes, this is work. There is this code in sidebar.tpl:
<div class="block_bottom">
Online members: {stats:count="members",online="1",cache_time=1,cache_name="online"} <br />
Total members: {stats:count="members",="1",cache_time=5,cache_name="empty"} <br />
Total pictures: {stats:count="pictures",="1",cache_time=5,cache_name="empty"} <br />
Total blogs: {stats:count="blogs",="1",cache_time=5,cache_name="empty"} <br />
Total videos: {stats:count="videos",="1",cache_time=5,cache_name="empty"} <br />
Total audios: {stats:count="audios",="1",cache_time=5,cache_name="empty"}
</div>
This is not nice and I want style in css. Example search, login box etc. After this is ok. ![]()
Yes, this is work. There is this code in sidebar.tpl:
<div class="block_bottom">
I want style in css.
1. this code not exist in your sidebar.tpl it was only an example !
2. you must edit this code in sidebar.css but first you must make the ( .block_bottom ) class in your css file.
3. if you never had work with .tpl files and .css files it is not easy to explain it for you !
here is a beginner guide how to start working with css.
if you don´t know how to do please contact me.
Last edited by gugu (2012-04-01 09:49:24)