/    Sign up×
Community /Pin to ProfileBookmark

Dynamic Scoreboard

I am trying to create a dynamic scoreboard and I need help.

Okay, here’s the deal I have a website and there are PHP codes on it to automatically count clicks to certain links and I want a scoreboard to rank those clicks from highest to lowest. Only the top ten.

Then, have a total of all the clicks.

Can anyone help me?

to post a comment
PHP

16 Comments(s)

Copy linkTweet thisAlerts:
@SheldonOct 27.2005 — Do you have database access? mySQL??
Copy linkTweet thisAlerts:
@Paintball24authorOct 27.2005 — Yes, but I don't think I'll need it. I just need to have them ordered automatically.

The values show up on my website ever I write this:
[CODE]<script language="Javascript">ccount_display('[COLOR=blue]5[/COLOR]')</script>[/CODE]

And then I would like all the values totalled. I have about 5 values currently but more will come.

That blue text is the number is the value. That is the 5th value.
Copy linkTweet thisAlerts:
@SheldonOct 27.2005 — But what is going to store/remember them??

I think i am missing the point sorry.
Copy linkTweet thisAlerts:
@Paintball24authorOct 27.2005 — It is a PHP text file.

I just need a way to sort them in descending order and add them all together.
Copy linkTweet thisAlerts:
@Paintball24authorOct 27.2005 — any ideas?
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYOct 30.2005 — a textfile for each link?
Copy linkTweet thisAlerts:
@Paintball24authorOct 30.2005 — No.

Okay, I just need to add together some values.
Copy linkTweet thisAlerts:
@chazzyOct 30.2005 — if you load up everything into variables, arrays, you can use multisort i think http://us3.php.net/manual/en/function.array-multisort.php

you can also find array sum and other fun functions there.
Copy linkTweet thisAlerts:
@Paintball24authorOct 30.2005 — Okay, in that code can I insert links that show numbers?
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYOct 30.2005 — ...are the values saved in plain text files or in php files as arrays?
Copy linkTweet thisAlerts:
@Paintball24authorOct 30.2005 — I think php files.
Copy linkTweet thisAlerts:
@gameguy43Oct 31.2005 — sounds to me like you need to be posting on the javascript forums. adding and ordering values can all be done with javascript. If you can get at the values without php, then you dont need to use it.
Copy linkTweet thisAlerts:
@Paintball24authorOct 31.2005 — Okay. This is what I'm using.

http://www.phpjunkyard.com/php-click-counter.php

When you set it up you get an admin panel within your website. Then, you take any link to anything and enter in the admin panel. It gives you a new link that when it is accessed it counts how many time people click on it.

Then, to display the counts you place this anywhere:

<script language="Javascript">ccount_display('5')</script>

***I have about 20 links that do that and I want to add them together to find out the total of all of the different links.

What language will I have to do this with? I was thinking PHP because the CCount file is in PHP, but maybe I should use JS.

What do you think?
Copy linkTweet thisAlerts:
@SpectreReturnsNov 01.2005 — ...are the values saved in plain text files or in php files as arrays?[/QUOTE]
They're saved as plain text, comma seperated values. I just looked at the file he posted, and it seems like more work to use than to actually rewrite this working with a database.
Copy linkTweet thisAlerts:
@Paintball24authorNov 01.2005 — So. What do I do?
×

Success!

Help @Paintball24 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...