I felt like Chumpys ranking page would need some modifications, so i added some pics, edited some tables and created an "who is online" feature (see screenshots). Would anyone want this?
Like I said, I did those modifications, that implies that I have "this ranking".
tl;dr: Yes.
01-08-10
Spectro
Re: Revised Chumpy Rankinpage
Quote:
Originally Posted by Alphakilo23
Like I said, I did those modifications, that implies that I have "this ranking".
tl;dr: Yes.
I would sure love to add that to my site :w00t:
02-08-10
shizumaru21
Re: Revised Chumpy Rankinpage
nice ... any cabal website would like to have this lovely lookup
gratz on your modification
13-08-10
allocen
Re: Revised Chumpy Rankinpage
@Alphakilo23,can u send me a PM and teach and me how to put this images just one exampleif ur kindly :P i have and me my modiffied rankings but i want to put a image for example i have in my rankings table "NATION" and its said the number 3 thats mean its gm,and i want to know hot to replace this number (this is juat a example)...
13-08-10
Pupacila
Re: Revised Chumpy Rankinpage
allocen weren't you a god some weeks ago,going to release a big thing which no1 in here could get them done?
All what you do is asking ppl to do your work,then you say that you did it.
13-08-10
emi
Re: Revised Chumpy Rankinpage
Quote:
Originally Posted by Pupacila
allocen weren't you a god some weeks ago,going to release a big thing which no1 in here could get them done?
All what you do is asking ppl to do your work,then you say that you did it.
I agree with you.
And allocen wasn't you "that programmer in php?" that made a full website but it was downloaded from a BR forum :lol::lol::lol::lol:
13-08-10
allocen
Re: Revised Chumpy Rankinpage
no isn`t ;),im` not expert in php,i know just a little about it,so shut up i didin`t ask you ;)
13-08-10
emi
Re: Revised Chumpy Rankinpage
That scratched my eyes...
#include<retards.h>
using namespace noobs.std
Sorry for copying you,Mister
Re(t/G)ards!
13-08-10
allocen
Re: Revised Chumpy Rankinpage
someone can help me? xD
13-08-10
Alphakilo23
Re: Revised Chumpy Rankinpage
Quote:
Originally Posted by allocen
@Alphakilo23,can u send me a PM and teach and me how to put this images just one exampleif ur kindly :P i have and me my modiffied rankings but i want to put a image for example i have in my rankings table "NATION" and its said the number 3 thats mean its gm,and i want to know hot to replace this number (this is juat a example)...
It's easy as pie. Here's an example (I didn't test it, though):
config.php
Spoiler:
Add a global variable for the image path:
PHP Code:
//Relative path for the ranking images
define('IMAGE_PATH', 'rankings/images/');
rankings.php:
Spoiler:
Add a new function to build your nation rows:
PHP Code:
function build_nation_row($nation) {
$prefix = '<td align="center"><img src="';
switch ($nation)
{
case 0:
return $prefix.IMAGE_PATH.'nations/neutral.png" alt="Neutral" title="Neutral"/></td>';
case 1:
return $prefix.IMAGE_PATH.'nations/capella.png" alt="Capella" title="Capella"/></td>';
case 2:
return $prefix.IMAGE_PATH.'nations/procyon.png" alt="Procyon" title="Procyon"/></td>';
case 3:
return $prefix.IMAGE_PATH.'nations/gm.png" alt="GM" title="GM"/></td>';
default:
//The player wasn't in a valid nation
return '<td align="center"">$nation</td>';
}
}
Now locate the function top_ten_chars() and edit the output line to:
PHP Code:
//Nation
echo build_nation_row($row[30]);
Now you need to fill your image folder (the one you appended to you config.php) with images.
@emi: As much as I appreciate the content of your posts in this thread, I have to ask you to stay on-topic :thumbup:
13-08-10
allocen
Re: Revised Chumpy Rankinpage
its works :) u really save my life :P
---------- Post added at 05:21 PM ---------- Previous post was at 04:26 PM ----------
@Alphakilo23 can u upload ur nations pictures plz? :)
13-08-10
Alphakilo23
Re: Revised Chumpy Rankinpage
Quote:
Originally Posted by allocen
its works :) u really save my life :P
---------- Post added at 05:21 PM ---------- Previous post was at 04:26 PM ----------
@Alphakilo23 can u upload ur nations pictures plz? :)
I already spoonfed your how to implement them. So mind to extract those pictures yourself?
13-08-10
allocen
Re: Revised Chumpy Rankinpage
This is my new moddified system players rankings :cool: ,its not finished completly almost 80% :) :thumbup: