On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Current User: Guest
Please consider registering

 
Search Forums:


 




download count not showing

UserPost

3:42 pm
6 Jan 2007


Claire

Guest

 
1

Hey, I just installed the plugin and everything works fine except for the download count. It shows on the admin page, but not on my site.

I’m using it for my theme download page: http://starburst.weirdncrazy.com/download; here’s the code:

starburst.zip ( downloads)

Am I missing something? Thanks!

4:54 pm
6 Jan 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4560

 
2

And you’re using the dc_get_count() template tag?
if yes - can you send me the code snippet?

5:00 pm
6 Jan 2007


Claire

Guest

 
3

I am — I thought I included it in my first post but I guess it didn’t work. I’ll try again (the spaces around the are intentional):

starburst.zip ( downloads)

5:17 pm
6 Jan 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4560

 
4

Sorry - it looks like one of the wp filters is screwing up the code tags. I’ll need to take a closer look at that. Can you use the Contact form (from left sidebar) to send me the code snippet? All the template tag is literally doing is lookng up the single field in the database - nothing spooky!

7:45 pm
6 Jan 2007


okidokz

Guest

 
5

hi, I really appriciate your plugin, I was looking all over for this one :)

HOwever, I’m experiencing the same problem here, download counter not showing :(

Here’s the code I put :

* 1 is the link id.

Where does it went wrong?

PS : If you want to take a look, please visit http://www.indonesiancheerleading.com.
In the left sidebar, you will see a YouTube video. A few lines under that, find this line “
Total Download : kali.
It’s in indonesian language, “kali” means “times”. So it was supposed to shown, for example “10 kali”.

Would really appriciate your help. Thanks.

9:52 pm
6 Jan 2007


becca

Guest

 
6

Hey, I’m having the same problem. I put that code in as well next to my counter link and it just shows the link and everything in my admin, but not on my page. Don’t know what the problem is.

10:11 pm
6 Jan 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4560

 
7

Got it everyone. Call me stupid!
You need to echo it. I missed it on the readme text file.
So this should do the trick:

echo (dc_get_count(id));

I always prefer to do this as it gives you the option to pass the value as well.

Apologies - I’ll correct the readme. Let me know someone just to make sure!

10:57 pm
6 Jan 2007


Claire

Guest

 
8

Thanks! It works now :)

11:45 pm
6 Jan 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4560

 
9

Great news - and again - apologies for getting the readme wrong

1:09 am
15 Jan 2007


william

Guest

 
10

hi,

so if i have an external direct link to the file download, i just add the direct url to the download manager right?

then how do i show the numbers of click on that file download?

i tried using the but it doesn’t seem to show the number of files that is being clicked and download.

1:22 am
15 Jan 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4560

 
11

You tried using the what? I think you might have needed to put code tags around that bit!
Plus - did you echo it? As shown above
echo (dc_get_count(id));

10:17 pm
17 Jan 2007


Flake

Guest

 
12

I’ve tried echo but it still doesn’t work… :(

10:31 pm
17 Jan 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4560

 
13

Strange. OK let’s go through the setup:

In the Download Manager Admin Panel I assume that the link is marked as correct and you are getting a count of the downloads there? Correct?
You could sen d me the link of course and I can check that it’s good as well.
Plus - send me the code fragment you are using (don’t forget to use the code tag or it gets stripped) which is probably the first thing to do so I can take a look at it…

6:04 am
18 Jan 2007


Flake

Guest

 
14

Yes, I add download, get a “good link” and after a while in the admin panel I can see the number of downloads. But whenever I insert template into the post I don’t get this number in the post.
Using this tepmlate, taken from the readme file:



XX is replaced with respective ID

9:08 am
18 Jan 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4560

 
15

That’s most odd. It is such a simple routine - basically one line of code that looks up the current count field in the database table using the passed id. I have no idea why that should fail. Do you know what version of MySQL you are runnng. I could investigate whether there are any now issues although it such a small, simple and basic query I very much doubt that would be the case.

10:42 am
18 Jan 2007


Flake

Guest

 
16

according to panel, I’ve got this
PHP version 4.4.3
MySQL version 4.1.21-standard-log

7:53 pm
23 Feb 2007


Lisa

Guest

 
17

I'm having the same issue - the download count is not showing on my site: http://blogdesignsolutions.com.  I followed the install process steps.

My download link is:

http://blogdesignsolutions.com/download-manager.php?id=1 


The code I have is this:

echo (dc_get_count(1));


My PHP version: 4.4.2

My MYSQL version: 4.0.27-standard

Any assistance at all would be very much appreciated. 

9:03 pm
23 Feb 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4560

 
18

I'm not sure what you have done wrong but if you 'view source' to look at the html that is being generated and go to the point where 'Number of downloads' is, you will see that the whole php statement is actually being echoed to the html file rather than the result of the statement. Have you put the echo outside of the php tags or something? Or is the template NOT a php file? Certainly the php that is being displayted in the source does not inlcude the echo statement so I suspect you just haven't put it in properly.

10:21 pm
23 Feb 2007


Lisa

Guest

 
19

This is strange. I had the download counter in there via a text widget (using WP 2.1 with Sidebar Widgets) -and had pasted the code in the text widget box. And you're right, it was being treated 'as text' and not executed php at all.

I took the text widget out and pasted it directly into my sidebar and it works just fine. Strange?

 At any rate - thank you for looking it at, I appreciate it :)

11:37 pm
23 Feb 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4560

 
20

That's what me here for! When you solve the puzzle I'd love to know the answer



Reply to Topic: download count not showing

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 7 + 12        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

17 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 15

Topics: 1739

Posts: 11772

Members:

There are 797 members

There are 737 guests


Yellow Swordfish has made 4560 posts

Top Posters:

Mr Papa - 1226

-Radio- - 475

ovizii - 85

jfv - 80

angelic007 - 66

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.3 (Build 356)