Is there any possible way to show up the statistics of the website.
Like: Total Downloads, Total Bandwidth Consumed and Best viewed page etc,
I welcome all short (even a bit) modification done should be posted in this forum.
Is there any possible way to show up the statistics of the website.
Like: Total Downloads, Total Bandwidth Consumed and Best viewed page etc,
I welcome all short (even a bit) modification done should be posted in this forum.
Nobody?
I am interested to know.
Thanks
If you need to show total number of downloads.. then I can tell you what to do.. but no idea.. about Total bandwidth.. etc..
Please post here for total number of downloads.
For future ask. Thanks
nobody?
Can anyone help how to have in stats Total downloads?
okay.. lets start... !!
Step 1 :
Open modules/statisticsblock/statisticsblock.php
Find:
$totalComments = $DB->get("SELECT COUNT(id) asFROMt");
.
Add after this :
$totalDownloads = $DB->get("SELECT SUM(downloads) asFROMt");
.
Find :
$smarty->assign("totalComments", $totalComments["total"]);
Add after this line:
$smarty->assign("totalDownloads", $totalDownloads["total"]);
Step 2 :
I have attached the tpl file download it and compare it with your original statisticsblock.tpl file and add the new one which is not present in your file..
Let me know if anyone have any questions..
Thanks,
Jon
edit: I am not able to attach the zip file or the php file in txt format also.. if the above code is not displaying correctly, then please contact me .. I will email you the codes..
Can you tell again line in Step 1?
$totalDownloads = $DB->get("SELECT SUM(downloads) as
t
FROM
.
");
Not good line I suppose :=)
ok, I have found in database
Database prefix is "items"
Can you make Top Downloaded? Page like random wallpapers or top wallpapers (rating), only counted with number of downloads.
Or can be module like top wallpapers by rank? What is easier to make :)
Thank you
This is wrong :
$totalDownloads = $DB->get("SELECT SUM(downloads) as
t
FROM
.
");
what is the right one ?
having problem with upload...doesnt accept tpl and php files...
Here you have only tpl file, for php file just put your email and will send u
Tried it and shows total downloads blank
need to send you other file, statisticsblock.php , need to add 1 line, give me your email or send me contact through my site and I will send you
Made it work. Thanks
anybody want to share the missing line here ?
Svile, thanks for the help :) but if you can save the php file as text file and upload it here, so everybody can know how do it.
Dear Shekhar,
Thank you so much for the help, it did work like a charm.
much appreciated :) :)
Just a Question.
How i can add ( , ) to the number of views, downloads, etc.
example: Instead of 10555 i want 10,555
Good work ! Thanks shekhar
Dear Shekhar,
it work well
thanks for every one hade help to do the work
example:
www.shamusik.com/walls
the download counter still 0 till now !!!!
Wonderful addition. Thanks a lot for sharing.
However im sure that the download counter is messed up in this script. As i have only 384 views, but it shows the downloads to be 1527
its not working!
total download
total views
its not even showing 0
sorry i left something! :)
now its working!
thanks sekhar
You must log in to post.