Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Today's downloads

Asked Modified Viewed 2,153 times
S
stoerti
S
  • Junior Member, joined since
  • Contributed 34 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
asked
Junior Member

Can any one tell me how I can display only today's Dowloads?

Download System is the standard ...
0 replies

7 posts

H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

Do you mean downloads that were uploaded to your site today or files that were downloaded from your site today?
0 replies
S
stoerti
S
  • Junior Member, joined since
  • Contributed 34 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
answered
Junior Member

I thought downloads.

Not what has been downloaded.

Sorry for my bad english an tranzlate google
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$oneday = (time()-86400);

$result = dbquery("SELECT
download_id,
download_title,
download_cat,
download_count
FROM
".DB_DOWNLOADS."
INNER JOIN ".DB_DOWNLOAD_CATS."
ON download_cat_id = download_cat
WHERE ".groupaccess('download_cat_access'wink."
AND download_datestamp > $oneday
ORDER BY download_datestamp
DESC LIMIT 0,6
"wink;

if (dbrows($result) !=0) {
openside("Todays Downloads"wink;
echo "<div class='small'>\n";
while ($data = dbarray($result)) {
echo "<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 30)."</a>";
echo "<span style='float:right;'>[".number_format($data['download_count'])."]</span><br />\n";
}
echo "</div>\n";
closeside();
} else {
openside("Todays Downloads"wink;
echo "<center>No Downloads Today!</center>\n";
closeside();
}[/syntaxhighlighter]
Edited by HobbyMan on 28-11-2010 14:24,
0 replies
S
stoerti
S
  • Junior Member, joined since
  • Contributed 34 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
answered
Junior Member

Thx funtzt
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

I have implemented this mod but does not seem to count any downloads. Am I correct in assuming that if someone downloads a file, that it will be tracked? If that is the case, it is not working. What could I be doing wrong?
0 replies
G
GMUDuckman
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
answered
Senior Member

no, i believe this panel is meant to show the uploads for the day... as in what has been added to the downloads section in the last day. or something like that... but it def doesn't track amount of downloads.
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

OK, I guess that is why it shows nothing. Thanks for the response. I think I noted a mod that would show the downloads, I will try to find it.
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
S
S
  • Junior Member, joined since
  • Contributed 34 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
G
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet