POG1 Posted December 24, 2008 Posted December 24, 2008 Re: [mccode v2] Player of the week... what i was thinking would be to use a function that generates the players name and colours it and adds images. function getName ($id) { $user = mysql_fetch_object("GET THEIR DETAILS"); if($user->donatordays == 0 AND $user->user_level == 1) { $type = "Player"; } if($user->donatordays AND $user->user_level != 1) { $type = "Donator"; } if($user->playerOfTheWeek == $user->$ir['userid']) { $type = "Featured"; } if($user->user_level < 1) { $type = "Staff"; } return '<span style="'.$type.'">'.$user->username.'</span>'; } something along the lines of that ;) Quote
shaved92bravada Posted December 24, 2008 Author Posted December 24, 2008 Re: [mccode v2] Player of the week... yeah that would probably work alot better that way of doing it. Didn't think of it that way lol. still learning some things. Quote
POG1 Posted December 24, 2008 Posted December 24, 2008 Re: [mccode v2] Player of the week... everyone is all ways learning ;) Quote
radio_active Posted December 24, 2008 Posted December 24, 2008 Re: [mccode v2] Player of the week... Yeah like yesterday i went back into table knowledge and learned what the "colspan" does.. lol Havn't had use of it up until now, i was a little embarrassed when i realized i didn't know how to do what i was doing and had to google table tags, lol But hey, least i know everything about tables that i need to know, for now! :-) Quote
castle Posted December 25, 2008 Posted December 25, 2008 Re: [mccode v2] Player of the week... would that colored name thing go into the header file? Quote
Savager Posted December 25, 2008 Posted December 25, 2008 Re: [mccode v2] Player of the week... should change last login to 2 days, because 10 days is too far. Plus if they are over 10 days old they probbally quit playing the game, makes it more easier for the ACTIVE players to get player of the week. EDIT: for the 2 days... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. probbally not recommended for smaller games like 15 or less users online in past 24 hours... not good Quote
Tonka Posted December 25, 2008 Posted December 25, 2008 Re: [mccode v2] Player of the week... it's a player of the week, so common sense should kick in, 7 days, that way everyone who logged in that eek actually has a fair chance Quote
Savager Posted December 25, 2008 Posted December 25, 2008 Re: [mccode v2] Player of the week... it's a player of the week, so common sense should kick in, 7 days, that way everyone who logged in that eek actually has a fair chance where do you want the bullet? Quote
p_T_s Posted September 18, 2009 Posted September 18, 2009 Just fixed the query so it works correctly. Place this in your crons weekly file.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
$k!nNy Posted September 20, 2009 Posted September 20, 2009 hey hey m8 this is a great mod and i will definitely use it in my game when (if) i can fix it thanks :D :thumbsup: Quote
chris3010 Posted October 21, 2009 Posted October 21, 2009 Broke The cron doesnt run. When you copy and paste the cron link in to the browser then it just redirects me to my game. Quote
rulerofzu Posted October 21, 2009 Posted October 21, 2009 Why are you trying to run a cron from your browser anyway? Quote
Apocalyptical Posted October 11, 2011 Posted October 11, 2011 Has anyone found any updates of this? I have been searching all over and can't seem to find any threads on it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.