Ranking system with PHP? Help

How to create a ranking system that have points and leaderboard

Page 1 of 1

4 Replies - 3588 Views - Last Post: 04 May 2010 - 05:28 AM Rate Topic: -----

#1 elsonet  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 5
  • Joined: 04-May 10

Ranking system with PHP? Help

Posted 04 May 2010 - 03:00 AM

As the topic stated ,
How can i create a ranking system in php for my site . I am just a normal php programmer so i need real help .

How it works (my idea is like this):
Users will get some points when they done some activity like adding comments and inviting people .
After getting points like 100points . user from level1 will level up to 2 . This repeat every 100 points .

If anyone knows how to do it ,
PLEASE post a code or an advice here .
You can post give me a link for a tutorial about ranking system in PHP

Thanks so much . Have a great day .

Is This A Good Question/Topic? 0
  • +

Replies To: Ranking system with PHP? Help

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5363
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: Ranking system with PHP? Help

Posted 04 May 2010 - 04:06 AM

View Postelsonet, on 04 May 2010 - 04:00 AM, said:

I am just a normal php programmer so i need real help .

You're only going to get better by learning, having us find or give you the code will only complete the project, it won't teach you anything.

Why don't you give your idea a shot, sounds like a good outline. Then we can help you along the way.
Was This Post Helpful? 2
  • +
  • -

#3 Fratyr  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 139
  • Joined: 10-April 08

Re: Ranking system with PHP? Help

Posted 04 May 2010 - 04:33 AM

Don't ask for code. Ask for advice in a specific problem, posting your code that you've written, or pseudo-code examples. Otherwise It's not worth it.
I'll tell you something: Even that you're nice and thank people for everything in advance, they will not spend their time writing and testing a code for your purpose, as well, as they will not do something just to complete someone's task, that will not teach him anything.

You said you're normal PHP programmer, you can't think of anything like this?:

Create database table in your MySQL db, name it 'users'
store there all the information you want about your users (personal details)
AS WELL, add a column called 'rating_score'

every time, when user performs an action in your code that should be rewarded, just update your rating_score column by adding 1 point to existing sum.

And so on... Don't be lazy, It looks pity.
Was This Post Helpful? 0
  • +
  • -

#4 elsonet  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 5
  • Joined: 04-May 10

Re: Ranking system with PHP? Help

Posted 04 May 2010 - 04:59 AM

View PostFratyr, on 04 May 2010 - 03:33 AM, said:

Don't ask for code. Ask for advice in a specific problem, posting your code that you've written, or pseudo-code examples. Otherwise It's not worth it.
I'll tell you something: Even that you're nice and thank people for everything in advance, they will not spend their time writing and testing a code for your purpose, as well, as they will not do something just to complete someone's task, that will not teach him anything.

You said you're normal PHP programmer, you can't think of anything like this?:

Create database table in your MySQL db, name it 'users'
store there all the information you want about your users (personal details)
AS WELL, add a column called 'rating_score'

every time, when user performs an action in your code that should be rewarded, just update your rating_score column by adding 1 point to existing sum.

And so on... Don't be lazy, It looks pity.

Sorry lol , I will try to learn it ,what I mean is do anyone know a tutorial like this exist and hopefully someone can provide me with a link . Thanks for your advice .
Was This Post Helpful? 0
  • +
  • -

#5 Fratyr  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 139
  • Joined: 10-April 08

Re: Ranking system with PHP? Help

Posted 04 May 2010 - 05:28 AM

The best tutorial is to learn the very basics, which is not enough.
Then you must know how to work with them.

The tutorial you request might be very messy, because tutorials never written according to your experience and needs, so there will be a code that can confuse you. I've already gave you an algorithm on how to do that, now google for php and mysql functions on how to accomplish it.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1