Topic: "Ranking script" (page 1 of 2)

1 2 >
Author Post
quangntenemy
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
To theblacksheep, Inferno or Erik
I'm writing a script to display my rank @ tbs (something like Sheep's !tbs command). I'm wondering if there's a special page to do that quickly or I'll have to read and extract the information from userstats.php which would be boring and waste of traffic?
private message EMail Website
theblacksheep
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
I can write a small script for that.
Do you just need the number of challs solved and the rank or any other statistics?

tbs
Edited by theblacksheep on 26.03.2006 10:32:48
private message EMail Website
theblacksheep
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
linkRanking

That scripts gives you the rank and the amount of solved challenges for every user.
[Rank : Solved Challenges]
If you want me to add something, tell me.

tbs
private message EMail Website
Phas(retired)
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Hi!
I also need:
* Total number of challenges: (310)
* Unread news count
* Unread forum posts count
* Unread private messages count

:)

Of course, all those values only for the logged user, something like:
http://www.bright-shadows.net/userdata.php?cookie=XXXXXXXXXXXXXXXXXXXXXX
returning
RANK:CHALLS_SOLVED:TOTAL_CHALLS:UNREAD_NEWS:UNREAD_FORUM:UNREAD_PM
1:303:310:1:1:0


My program tbsnet.exe will do the rest. It shows a small window alerting me when:
- New challenges are uploaded
- I miss position(s) in the ranking
- There are new posts, PMs or news
The program installs an icon in the notification area (near the windows clock) and checks those values every X minutes (you can configure it, default 5 mins).

Phas.

private message EMail Website
Plasmator
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Hey,

How about this really cool thing called : RSS Feeds :P
private message EMail Website
quangntenemy
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Thanks, time to write the script now :)
@Phas: when u finish that program and every user uses it we'll have a DDoS attack @ tbs ROFL
private message EMail Website
theblacksheep
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Ok, that's what I have done so far:

linkhttp://www.bright-shadows.net/userdata.php

If you are logged in and you haven't specified an username the data looks like this:

USER:RANK:CHALLS_SOLVED:TOTAL_CHALLS:UNREAD_NEWS:UNREAD_FORUM:UNREAD_PM

If you have specified an username you'll get the following data:

USER:RANK:CHALLS_SOLVED:TOTAL_CHALLS

Everything should work except for the UNREAD_PM.
I don't know why so far but the number can differ from the actual one.
It is going to be fixed as soon as I have figured it out.

In case there any problems with the data leave a message.

tbs
private message EMail Website
pvcuong
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Can we have the total number of users also?
private message
theblacksheep
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
UPDATE

If you are logged in and you haven't specified an username the data looks like this:

USER:RANK:TOTAL USERS:CHALLS_SOLVED:TOTAL_CHALLS:UNREAD_NEWS:UNREAD_FORUM:UNREAD_PM

If you have specified an username you'll get the following data:

USER:RANK:TOTAL USERS:CHALLS_SOLVED:TOTAL_CHALLS

There is still the problem with the PM's

tbs
Edited by theblacksheep on 26.03.2006 20:43:53
private message EMail Website
JackPo
groupmastergroupmaster
what happened to this script? is it gone permanently?
private message EMail

Topic: "Ranking script" (page 1 of 2)

1 2 >