First of all please don't ask how to use these files in this thread. There are plenty of sites on the internet which explain how to set up a WAMP/XAMPP/IIS server on a Windows OS based computer. All you need to run this is an MSSQL database, and a web server which can process PHP files, such as Apache (the A in the WAMP/XAMPP acronyms), or IIS7+.
This is a PHP based rankings script for use with the MSSQL ODBC database connector.
Features
Tool-tip showing recent killed/killed by (anti-stat padding feature)
Tool-tip showing player stats (anti-cheating feature)
Filters for level range, class, and faction
Paging (25 results per page default)
Sorting (on Kills, Deaths, and kill-to-death ratio default)
Rank icons with tool-tip of rank #
Class icons with faction colored background, and tool-tip of class name
Rank numbering based on user chosen filter and sort
Simple and clean interface
Organized code
Bound queries, as opposed to escaping query inputs
Basic troubleshooting information
This project requires javascript to be enabled in a user's web browser to use it.
If you receive an error that states "Database Connection Error!", please remove the error suppression symbol from the db.config.php file to see what the actual error is. The error suppression symbol is @ for PHP scripts.
If tool-tips are not loading when hovering over a character name, a likely candidate would be the action log table is too large for the query to finish when calculating last killed, last killed by, most killed, most killed by. Either trim your action log table to a reasonable size, or remove those statistics from being queried and displayed, your choice.
Download
Please let me know of any questions or problems with these scripts that you come across that are NOT related to setting up your own web server, or connecting to your own database.
Bro, me I did what you said but I get some errors in your.
See :
From what I can tell that error is occuring because you might be using SQL Server 2005, and in my query I am casting to a Date type, which SQL Server 2005 does not support.
In rank_DAO.php try changing this line:
Code:
CASE WHEN c.JoinDate > c.LeaveDate THEN CAST(c.JoinDate AS Date) ELSE CAST(c.LeaveDate AS Date) END AS LastSeen,
To this:
Code:
CASE WHEN c.JoinDate > c.LeaveDate THEN CAST(c.JoinDate AS DateTime) ELSE CAST(c.LeaveDate AS DateTime) END AS LastSeen,
Or possibly this:
Code:
CASE WHEN c.JoinDate > c.LeaveDate THEN c.JoinDate ELSE c.LeaveDate END AS LastSeen,
About the pvp ranks, i was wondering how to take out Deaths/KDR. oO
Here is some information of how to configure some of the views:
To remove columns of data from the ranking page the simplest way is to edit rank.view.php. For example to remove deaths and ratio from being displayed, remove any <th> and <td> lines that refer to Deaths and KDR. There should be 4 lines total to remove in this case.
To remove data from being displayed in the character stats tool-tip the simplest way it to edit characterTooltip.view.php. In this case removing one line starting with <tr> will remove the data displayed on that line.
Also I just updated the project, here is a list of changes:
Added tool-tip on hover of the rank number stating if a character is online or offline. (FYI the number should be yellow if they are online)
Reduced the quantity of page numbers to display as they were not fitting properly.
Separated out the base stats from the stats from gear, and made stats from gear show up in yellow.
Added a BaseStat total row to the character stats tool-tip.
Added HP/MP/SP to the character stats tool-tip. It is assumed that no character will have HP/MP/SP over 65535, so if a character has more than that it will not be displayed properly.
*Hopefully* fixed the errors occuring in the character stats tool-tip when a user has no gear on.
Fixed the Last Killed, Last Killed By, Most Killed, and Most Killed stats in the character tool-tip
Warning: odbc_execute() [function.odbc-execute]: SQL error: [Microsoft][ODBC SQL Server Driver]��� ������� �������, SQL state 01S02 in SQLExecute in C:\xampp\htdocs\rank\rank_DAO.php on line 164
No results to display.
MSSQL & ODBC question 09/12/2011 - SRO Private Server - 11 Replies What version of MSSQL do you need to run the files? 2005 or 2008? (or 2008 R2?)
Also, can anyone post a tutorial of setting up ODBC?
You can call me a noob, i don't care.
Live-Rankings.de | einfach ESL-Rankings erstellen 12/22/2010 - Off Topic - 0 Replies http://www.live-rankings.de/img/live-rankings_logo .png
www.Live-Rankings.de
Hallo, ich möchte euch hier Live-Rankings.de vorstellen.
Auf unserer Seite könnt ihr euch für eure Homepage oder Clansite einen LiveTicker erstellen.
Im Moment gibt es eine kleine Auswahl an Ligen/Ladder der ESL, die zur Verfügung stehen.
Da die Seite momentan noch Beta-Status hat, kann es noch zu Änderung am System kommen. Die Grundfunktionen stehen aber zur Verfügung.
[RELEASE]Web Pack ( MSSQL / ODBC ) 05/01/2009 - Dekaron Private Server - 8 Replies Hello guys.
Here my little Web Script Pack as MSSQL and ODBC version.
I hope , i have found now all bugs and errors and its work.
In the Packs are the follow scripts :
register.php <--- Register Accounts
ranking.php <--- List characters , order by Level and Exp , list only non GMs
guild.php <--- List all guilds . order by members count and list all guild members
Release The Way to Fix Odbc Connection When All Else fails 04/26/2009 - Dekaron Private Server - 25 Replies I had this problem and sorted it out
along with a friend who had the same problem.
to fix it this is what you do.
What you need to download.
Sql Server 2000 Service Pack 3.
Download:
http://www.microsoft.com/downloads/details.aspx?f amilyid=90dcd52c-0488-4e46-afbf-acace5369fa3&d isplaylang=en
[Release]Eudemon Rankings 02/06/2008 - EO PServer Guides & Releases - 2 Replies Here's the PHP script for top 10 eudemons of each type...
(Note: I think a few eudemons are missiong from the definitions array, so.. Yeah you'll have to find out which are missing and add them yourself.. Just find the last three digits of their id and turn the last digit into a 0 and add them to the list like the rest are.)
definitions.php
<?php
$eudemon = "WarriorPatk";
$eudemon = "WarriorPdef";