-
Posts
2,751 -
Joined
-
Last visited
-
Days Won
98
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
as ive never had the need for a SEC or MOD on my test site im not sure what the actual user_level is so if someone could post up the user_level numbers with what they are for it would be great,,, i know 0 = NPC 1 = User 2 = ADMIN not sure about rest
-
Couldnt think of any other name for the subject other than usernames.. How many links like these do you think are scattered around your scripts [url='viewuser.php?u={$r[']{$r['username']}[/url] and when your viewing your userlist everyones name is the same colour which kinda makes it hard to decipher whos who... Insert the code below into your global_func.php file and you can now make like easier for yourself function finduser($userid = "", $url = true, $includesystem = false, $color = true) { if ($userid == 0 && $includesystem) return "<span style=\"color: #ff0000; font-weight: bold;\">SYSTEM</span>"; global $db, $ir, $r, $c, $h; $res = $db->query("SELECT username, user_level FROM users WHERE userid = $userid"); $row = mysql_fetch_array($res); $a1 = ""; $a2 = ""; if (!$row) return "Invalid ID"; elseif ($row[username]) { if ($url) $a1 = "<a href=\"viewuser.php?u=$userid\">"; $a2 = "</a>"; $name = $row[username]; } else { if ($url) $a1 = "<a href=\"viewuser.php?u=$userid\">"; $a2 = "</a>"; $name = $row[username]; } /// below lines are just for user and staff colours if (!$url && !$color) return $name; if ($row[user_level]) { switch ($row[user_level]) { case '0': return "$a1<span style=\"color: #abcabc;\">$name</span>$a2"; break; // 0 being NPC case '1': return "$a1<span style=\"color: #000000;\">$name</span>$a2"; break; // Normal Game User case '2': return "$a1<span style=\"color: #ff0000;\">$name</span>$a2"; break; // ADMIN case '3': return "$a1<span style=\"color: #00aaaa;\">$name</span>$a2"; break; // NOT SURE case '4': return "$a1<span style=\"color: #00aa00;\">$name</span>$a2"; break; // Havent got a clue case '5': return "$a1<span style=\"color: #aa0000;\">$name</span>$a2"; break; // from 3 to here must be either helper mod or sec just dont know ;) } } elseif ($row[donatordays] > 0) return "$a1<span style=\"color: #2929ff\">$name</span>$a2"; else return $a1 . $name . $a2; } Now when you come across a statement like [url='viewuser.php?u={$r[']{$r['username']}[/url] change it to " . finduser($r[userid]) . " /* for every user or change to */ " . finduser($ir[userid]) . " /* If its for the user viewing the page */ It will also colour co-ordinate the user so other users can see whos an ADMIN, SEC, MOD, or NPC and those that have donator days you can change the colours as you wish..
-
Well im honestly touched cheers guys :) its always nice to make a mod and even better when it gets a good reception/review as your aware ive never owned a running mccodes game but i have joined a fair few games from people on here and tried to work out what id like to see in a game.. But i have to be honest some of my mods were joint efforts from some of the great people on here so everyone on here deserves some reognistion :) Again though thank you :)
-
I have to say this is where i started life on the good old HTML tehre are some excellent help sites out there dreamcoder dont be afraid to use them As from what i can see for your first attempts your doing a great job. I certainly have faith in your creating something unique because from what ive read and seen here your not one to give up easily... Excellent weldone :)
-
try nt to leave spaces ni your file names example BAD we love to rock.jpg GOOD welovetorock.jpg
-
try changing mysql_num_rows to mysql_fetch_assoc and see if that helps
-
opening and closing tags is sometimes a good thing especially when using net beans as you can insert html into a html section but not from an echo ;) if your using netbeans its a god
-
is decio the dead guy that died on msn and was re-incarnated into someone even dumber ?
-
Dayo your welcome to add any of my mods to your list as and when you wish too...
-
ok ive decided with both being level i get the final say so for everyone who voted thanks and ive taken everyones comments onboard and came to the conclusion this mod will be a Paid mod 5 customers at a price of $5 and any future updates i make for this mod they will receive at no extra cost..
-
on this you can use the $rand1 and $rand2 to echo values of Hex codes to see which best fits the colours for your game. example: if($line%2 == 0) print "<tr bgcolor=#$rand1> hex value for rand1 is #$rand1"; else print "<tr bgcolor=#$rand2> hex value for rand2 is #$rand2"; Then just copy the hex codes its gives and change both $rand1 and 2 to the hex of your choice.
-
ive never heared of him to be honest...
-
heres a nice little fiz that will get your inventory from looking like this.. To This a few seconds... open up inventory.php and find $lt=""; while($i=$db->fetch_row($inv)) { if($lt!=$i['itmtypename']) { $lt=$i['itmtypename']; print "\n<tr><td colspan=4>[b]{$lt}[/b]</td></tr>"; } if($i['weapon']) { $i['itmname']="<font color='red'>*</font>".$i['itmname']; } if($i['armor']) { $i['itmname']="<font color='green'>*</font>".$i['itmname']; } print "<tr><td>{$i['itmname']}"; if ($i['inv_qty'] > 1) { print "x{$i['inv_qty']}"; } and overwrite with this one... $lt=""; $rand=rand(000,255);$g=rand(000,255);$b=rand(000,255); $rand1=sprintf("%02x%02x%02x",$r,$g,$b); $rand2=sprintf("%02x%02x%02x",ceil($r*0.4),ceil($g*0.6),ceil($b*0.8)); $line=0; while ( $i = $db->fetch_row ( $inv ) ) { if ($lt != $i ['itmtypename']) { $lt = $i ['itmtypename']; print "\n<tr bgcolor=#002244 bordercolor=#ffeedd><td colspan=4>[b]{$lt}[/b]</td></tr>"; } if ($i ['weapon']) { $i ['itmname'] = "<font color='red'>*</font>" . $i ['itmname']; } if ($i ['armor']) { $i ['itmname'] = "<font color='green'>*</font>" . $i ['itmname']; } if($line%2 == 0) print "<tr bgcolor=#00986f>"; else print "<tr bgcolor=#00aa00>"; print "<td>{$i['itmname']}"; if ($i ['inv_qty'] > 1) { print "x{$i['inv_qty']}"; } This part in the new update can be altered to if($line%2 == 0) print "<tr bgcolor=#$rand1>"; else print "<tr bgcolor=#$rand2>"; By doing so will change the colour of the lists each time a user views the page or refreshes.
-
im all for this idea :)
-
ive developed a new Hospital and Jail system for mccv2 which doesnt require 1 minute crons.. How it works when a user gets sent to hosp or jail instead of a cron ive used TIME when your stint in either expires your deleted from hosp or jail to continue your game... However to make this work it uses a lot of new functions and a new hospital and jail SQL and hospital and jail php files and some ammendments to attacklost or if anyone has a searching script that needs ammending too.. My question is would this benefit a small audience IE paid or a larger audience to use FREE cast your votes
-
I gotta say i wasnt expecting the last person to slap her round the ehad and give her a damn good kick lol
-
http://www.stumbleupon.com/su/1Dfdaw/www.youtube.com/watch?v=QNbz47zdKR8/r:f keep watching too the end lmfbo
-
this one let you remove item types
-
doing a quick scan you have 125 Open brackets ( and 123 Closed Brackets ) not that these may cause an issue but it could slow down the script if things are missing
-
and Damn i re-read what i wrote and i think my keyboard went a bit dyslexic lol
-
Have you ever wanted to run a script at a certain point without running the whole file to see if errors occur or even just to see if things on certain lines are working correctly ? then here a nice program to use that will let you do anything with php.java and loads more.. NETBEANS By using this program you stop start a file a different points it will evne open up an other files that correspond to the file your working on that relate to that query..
-
Any chance this can be stickied
-
heres a few Tips and Tricks that you may find helpful in your quest to better your game..... PHPNUKE Phpnuke can offer some mind boggling ideas for your game. 1 = The theme Creator concept came from using PHPNUKE.. 2 = Grab a copy of phpnuke and see how the clickable smilies work. 3 = a site called futurenuke.com (free) Offers a version of Nuke with drag n drop abilities (could come in handy for users to reorder friendslist, their items) 4 = Admin Panel of nuke has a vast and bright array of functions getting rid of your side menu and adapting this idea could make all the difference. 5 = Email the emailing system of nuke is very easy to adapt to mcc and when done correctly will show you how Activation emails can be added. Infact i found around 30+ uses that PHPNUKE in small parts coud be useful for any mcc game... YAHOO Yahoo offer a Developing tools site to programming called YUI its basically like a college where you can have a list of how to do things from Drag n Drop in a vast amount of stages to controlling how forms work.. and can be found here >>>Yahoo Development Tools <<< RUNNING CRON JOBS ON XAMPP I havent tested these 2 sites but it says cronjobs are possible via Xampp Setup Crontabs on Windows Enable CURL with Xampp Windows XP
-
Someone to fix a problem with my ipn_donator
Uridium replied to konk353535's topic in Engine Support
silly question but have you also gone to your paypal account and changed the url for the ipn addy -
try removing the </table> from the links i added