Revised Chumpy Rankinpage

Status
Not open for further replies.
Joined
Jun 27, 2010
Messages
409
Reaction score
241
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?

EDIT:
Released and closed :):
 

Attachments

  • onlin - Revised Chumpy Rankinpage - RaGEZONE Forums
    online.webp
    62 KB · Views: 194
  • nations - Revised Chumpy Rankinpage - RaGEZONE Forums
    nations.webp
    56.5 KB · Views: 149
  • top20 - Revised Chumpy Rankinpage - RaGEZONE Forums
    top20.webp
    89 KB · Views: 190
Last edited:
@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)...
 
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.
 
  • Like
Reactions: emi
no isn`t ;),im` not expert in php,i know just a little about it,so shut up i didin`t ask you ;)
 
@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
Add a global variable for the image path:

PHP:
//Relative path for the ranking images
define('IMAGE_PATH', 'rankings/images/');

rankings.php:
Add a new function to build your nation rows:
PHP:
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:
//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:
 
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? :)
 
Last edited:
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?
 
Last edited:
This is my new moddified system players rankings :cool: ,its not finished completly almost 80% :) :thumbup:

Alphakilo23 - Revised Chumpy Rankinpage - RaGEZONE Forums


If u like it,tell me :D !! :lol:
 
can syer image icon cappela , proyon and nautral ....

thnks
 
Status
Not open for further replies.
Back