mentaljason Posted June 21, 2008 Posted June 21, 2008 make a page called fulldets.php add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It's pretty crap but it's an extra page lol Quote
micky Posted June 21, 2008 Posted June 21, 2008 Re: Full user details make a page called fulldets.php add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It's pretty crap but it's an extra page lol I agree with the "pretty crap". I suppose it works but I like the updated version above my post. Quote
Reaper Posted July 17, 2008 Posted July 17, 2008 Re: Full user details for this post do i still add that php even if it is the updated version Quote
John1 Posted July 17, 2008 Posted July 17, 2008 Re: Full user details Updated version You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Fatal error: Function name must be a string in /home/gamagang/public_html/fullinfo.php on line 35 Line:35 $pos_array(1, 2, 3, 4, 5); Quote
radio_active Posted July 18, 2008 Posted July 18, 2008 Re: Full user details Is this really worth it if you can see everything basically from the index page??? Quote
mentaljason Posted July 18, 2008 Author Posted July 18, 2008 Re: Full user details <?php include "globals.php"; /* CHANGE LOG Number values put through number_format() Text values (Where needed) put through mysql_real_escape_string() and stripslashes() $ir['strengh'] changed to the correct name $ir['strength'] Jobs and User level will now show text values, instead of the number value associated with it. Some spelling errors corrected Capitalised letters where needed */ echo '<h1>Full user details</h1>'; echo 'Name: ' . $gn . $u . ' [' . $ir['userid'] . '] ' . $d . ' '; echo 'Money: $' . number_format($fm, "") . ' '; echo 'Credit Card: $' . number_format($ir['creditcard'], "") . ' '; echo 'Bank money: $' . number_format($ir['bankmoney'], "") . ' '; echo 'Cyber Bank: $' . number_format($ir['cybermoney'], "") . ' '; echo 'Email: ' . mysql_real_escape_string(stripslashes($ir['email'])) . ' '; echo 'Level: ' . number_format($ir['level'], "") . ' '; echo 'Crystals: ' . number_format($ir['crystals'], "") . ' '; echo 'IP: ' . $ir['lastip'] . ' '; echo 'Current Job: '; if ($ir['job'] == 0) { echo 'No job'; } else { $get_job = mysql_query("SELECT `jNAME` FROM `jobs` WHERE `jID` = " . $ir['job']); $gJ = mysql_fetch_object($get_job); echo $gJ->jNAME; } echo ' '; echo 'Position: '; $pos_array(1, 2, 3, 4, 5); $nam_array('Member', 'Admin', 'Secretary', '', 'Assistant'); echo str_replace($pos_array, $nam_array, $ir['user_level']) . ' '; echo 'Gender: ' . $ir['gender'] . ' '; echo 'Exp: ' . number_format($ir['exp'], "") . ' '; echo 'Last online: ' . date("g:i:s a", $ir['laston']) . ' on ' . date("jS M y", $ir['laston']) . ' '; echo 'Current Energy: ' . number_format($ir['energy'], "") . ' '; echo 'Max Energy: ' . number_format($ir['maxenergy'], "") . ' '; echo 'Current Will: ' . number_format($ir['will'], "") . ' '; echo 'Max Will: ' . number_format($ir['maxwill'], "") . ' '; echo 'Current Brave: ' . number_format($ir['brave'], "") . ' '; echo 'Max Brave: ' . number_format($ir['maxbrave'], "") . ' '; echo 'Current Health: ' . number_format($ir['hp'], "") . ' '; echo 'Max Health: ' . number_format($ir['maxhp'], "") . ' '; $get_location = mysql_query("SELECT `cityname` FROM `cities` WHERE `cityid` = " . $ir['location']); $gL = mysql_fetch_object($get_location); echo 'Location: ' . $gL->cityname . ' '; echo 'Signed Up: ' . date("g:i:s a", $ir['signedup']) . ' on ' . date("jS M y", $ir['signedup']) . ' '; echo 'Duties: ' . mysql_real_escape_string(stripslashes($ir['duties'])) . ' '; echo 'Posts: ' . number_format($ir['posts'], "") . ' '; echo 'Strengh: ' . number_format($ir['strength'], "") . ' '; echo 'Agility: ' . number_format($ir['agility'], "") . ' '; echo 'Defence: ' . number_format($ir['defence'], "") . ' '; echo 'Labour: ' . number_formay($ir['labour'], "") . ' '; echo 'IQ: ' . number_format($ir['iq'], "") . ' '; $h->endpage(); ?> echo 'IP: ' . $ir['lastip'] . ' '; echo 'Current Job: '; if ($ir['job'] == 0) { echo 'No job'; } else { $get_job = mysql_query("SELECT `jNAME` FROM `jobs` WHERE `jID` = " . $ir['job']); $gJ = mysql_fetch_object($get_job); echo $gJ->jNAME; } echo ' '; echo 'Position: '; $pos_array(1, 2, 3, 4, 5); $nam_array('Member', 'Admin', 'Secretary', '', 'Assistant'); echo str_replace($pos_array, $nam_array, $ir['user_level']) . ' '; Your error is with the pink bit. Quote
mentaljason Posted July 18, 2008 Author Posted July 18, 2008 Re: Full user details You get pos_arrar (1,2,3,4,5) and then nam_array (admin etc......... You just cange the nam to pos. or pos to name they both need to be the same. im guessing. correct me if im wrong. Quote
chatghosty Posted July 18, 2008 Posted July 18, 2008 Re: Full user details Can You Mod This Foe V1 Lite? :mrgreen: 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.