
stevenrfc
Members-
Posts
97 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
stevenrfc's Achievements
Newbie (1/14)
0
Reputation
-
Cheers everyone Yeah i wasn't sure about the shadow on the enter text, I just couldnt seem to get it right lol. And the register button, I nwill definitely make that a bit more noticeable Text size is quite small, I might make that a bit bigger :S For the inside navigation, yeah it will be below the header :) Thank you I will definitely mess about with it some more :)
-
Cheers everyone Yeah i wasn't sure about the shadow on the enter text, I just couldnt seem to get it right lol. And the register button, I nwill definitely make that a bit more noticeable Text size is quite small, I might make that a bit bigger :S For the inside navigation, yeah it will be below the header :) Thank you I will definitely mess about with it some more :)
-
Hello, I've been really busy due to college but I managed to get quite alot done last night(Didn't sleep xD). I've managed to come up with a whole front end layout for a project I was starting. The whole layout took me around 9 hours on total (The mascot took me 7 lol). Cnc is always appreciated, thank you :) http://fc03.deviantart.net/fs71/i/2012/329/9/7/mafia_redemption_layout_by_kinetic9074-d5m3668.png
-
Well yes, preferably I would like to have the option where users can hold their levels. But i just can't seem to get this working and I'm not sure why :( Thanks for the reply mate :)
-
Hello, :) i hope I've posted this in the right section. Anyway, my PHP skills aren't yet good enough to solve my problem and I'm wondering if anyone could help me with this. I tired to add this mod: http://makewebgames.io/showthread.php/33655-mccode-v2-Advanced(isher)-Level-Upgrade-Mod?highlight=level+upgrade I tried to convert it and implement it into my game but i seem to be having trouble. The Upgrade button isn't appearing next to level, so I made it so that it just always shows, just for now but when I click on it, the page upgrade.php appears but its just a white page that displays "Vote for Game | Donate to Game now for game benefits!" Anyway here is the code. upgrade.php (I've commented out the brave increase because in the game i want the brave to stay at a certain number) <?php if (!defined($_CONFIG['define_code'])) { echo 'This file cannot be accessed directly.'; exit; } $exp_needed=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir[exp] < $exp_needed) { die("You need more experience before you can upgrade!"); } else { $expu = $ir['exp'] - $ir['exp_needed']; $ir['level'] += 1; $ir['exp'] = $expu; $ir['energy'] += 2; /**$ir['brave'] += 2;**/ $ir['maxenergy'] += 2; /**$ir['maxbrave'] += 2;**/ $ir['hp'] += 50; $ir['maxhp'] += 50; $ir['exp_needed'] = (int) (($ir['level'] + 1) * ($ir['level'] + 1) * ($ir['level'] + 1) * 2.2); $db->query( "UPDATE `users` SET `level` = `level` + 1, exp = {$expu}, `energy` = `energy` + 2, `maxenergy` = `maxenergy` + 2, `hp` = `hp` + 50, `maxhp` = `maxhp` + 50 WHERE `userid` = {$userid}"); print"You Upgraded to Level <b>{$ir['<span class='highlight'>level</span>']}</b>!"; } $h->endpage(); global_func.php function check_level() { global $db; global $ir, $c, $userid; $ir['exp_needed'] = (int) (($ir['level'] + 1) * ($ir['level'] + 1) * ($ir['level'] + 1) * 2.2); if ($ir['exp'] >= $ir['exp_needed']) { $exp_needed=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $exp_needed) { global $upgrade; $upgrade = "Y"; } } } Code in template.php <b>Name:</b> <?php echo "$gn{$u} [{$ir['userid']}] $d"; ?><br /> <b><?php echo $set['main_currency']; ?>:</b> <?php echo "{$fm}"; ?><br /> <b>Level:</b> <?php echo "{$ir['level']}"; ?><br /> <b><?php echo $set['second_currency']; ?>:</b> <?php echo "{$cm} [<a href='".gen_url('exchange',true)."&spend=refill'><span style='font-weight: bold;'>R</span></a>]"; ?><br /> <?php if($upgrade == "Y") { print"<a href='" . gen_url('upgrade', true) . "'>[upgrade]</a> <br />"; } ?> [<a href='<?php echo gen_url('logout',true); ?>'>Emergency Logout</a>] Any help would be much appreciated, Thanks :)
-
Oh, Sorry for the late reply Yeah here it is Authenticate require_once('Global/globals_nonauth.php'); // Check CSRF input if (!isset($_POST['verf']) || !verify_csrf_code('login', stripslashes($_POST['verf']))) { die( "<h3>{$set['game_name']} Error</h3> Your request has expired for security reasons! Please try again.<br /> <a href='login.php'>> Back</a>"); } // Check username and password input $username = (array_key_exists('username', $_POST) && is_string($_POST['username'])) ? $_POST['username'] : ''; $password = (array_key_exists('password', $_POST) && is_string($_POST['password'])) ? $_POST['password'] : ''; if (empty($username) || empty($password)) { die( "<h3>{$set['game_name']} Error</h3> You did not fill in the login form!<br /> <a href='login.php'>> Back</a>"); } $form_username = $db->escape(stripslashes($username)); $raw_password = stripslashes($password); $uq = $db->query( "SELECT `userid`, `userpass`, `pass_salt`, `email` FROM `users` WHERE `login_name` = '$form_username'"); if ($db->num_rows($uq) == 0) { $db->free_result($uq); die( "<h3>{$set['game_name']} Error</h3> Invalid username or password!<br /> <a href='login.php'>> Back</a>"); } else { $mem = $db->fetch_row($uq); $db->free_result($uq); $login_failed = false; // Pass Salt generation: autofix if (empty($mem['pass_salt'])) { if (hash('sha256', $raw_password) != $mem['userpass']) { $login_failed = true; } $salt = generate_pass_salt(); $enc_psw = encode_password($mem['userpass'], $salt, true); $e_salt = $db->escape($salt); // in case of changed salt function $e_encpsw = $db->escape($enc_psw); // ditto for password encoder $db->query( "UPDATE `users` SET `pass_salt` = '{$e_salt}', `userpass` = '{$e_encpsw}' WHERE `userid` = {$mem['userid']}"); } else { $login_failed = !(verify_user_password($raw_password, $mem['pass_salt'], $mem['userpass'])); } if ($login_failed) { die( "<h3>{$set['game_name']} Error</h3> Invalid username or password!<br /> <a href='login.php'>> Back</a>"); } session_regenerate_id(); $_SESSION['loggedin'] = 1; $rand_num = rand(1, 100000); $_SESSION['multi_login'] = md5($mem['email'] . $rand_num); $_SESSION['userid'] = $mem['userid']; $IP = $db->escape($_SERVER['REMOTE_ADDR']); $db->query( "UPDATE `users` SET `lastip_login` = '$IP', `last_login` = " . $_SERVER['REQUEST_TIME'] . " , `SESSION_num` = " . $rand_num . " WHERE `userid` = {$mem['userid']}"); if ($set['validate_period'] == "login" && $set['validate_on']) { $db->query( "UPDATE `users` SET `verified` = 0 WHERE `userid` = {$mem['userid']}"); } header("Location: index.php?page=loggedin"); exit; }
-
Hello, I have all the up to date files for redux, but my login has been buggy, so i made a subdomain and uploaded all of the files to test it out but it seems to be still happening. When i login it says this "Elite Conflict Error Your request has expired for security reasons! Please try again. > Back" Note - I have not changed any of the login or anything important, i have made minor changes to the css and template file though. Normally this happens once and i can log in successfully the second time. But any help would be much appreciated Thank you :)
-
Hmm this sounds very interesting. Currently im all self taught with photoshop. I can make layouts, banners, logos, items and basic characters. Some of my work Some recent Layouts http://fc02.deviantart.net/fs70/i/2012/235/0/5/elite_conflict___layout_v2_by_kinetic9074-d5c6opf.png http://fc00.deviantart.net/fs71/i/2012/252/2/c/simple_folio_design_v2_by_kinetic9074-d5e44fk.png http://fc04.deviantart.net/fs70/i/2012/216/f/7/nemesis_web_design_by_kinetic9074-d59t3hi.png http://fc00.deviantart.net/fs70/i/2012/130/7/d/mafia_style_login___ravage_city_by_kinetic9074-d4z7n73.png http://fc08.deviantart.net/fs70/i/2012/158/4/2/elite_conflict___gym_interface_by_kinetic9074-d52nx2p.png Logos http://fc07.deviantart.net/fs70/i/2012/202/b/6/nemesis_logos___final_by_kinetic9074-d56zzpy.png http://fc07.deviantart.net/fs70/i/2012/202/4/1/8_logos___fincentrax__kinetic__by_kinetic9074-d582rh1.png My deviant art if you want to check out more of my stuff - http://kinetic9074.deviantart.com/ Atm im not too familiar with illustrator. But i have just started a course at college which involves working with photoshop and Illustrator. So i will be learning how to use it :) I was also wondering is it just the graphics you need done? Or do you need someone to slice and code aswell? Thanks
-
Ah good good, looks good cant wait to try it out :)
-
In phpmyadmin click on your database and then run sql. Just paste them in
-
"You have 999992 Gold Bars." It seems to see them, I don't understand the problem. Any more help would be much appreciated. Thanks for the reply mate.
-
Hello, My exchange for redux doesnt work, i can only seem to refill energy for second currency but i can seem to get IQ or money, I keep getting this error "Error, you either do not have enough Gold Bars or did not fill out the form. Back" Even though i have 999,990 gold bars. I even got the latest version of redux and replace the new file with my old one and its still not working. I've been told that this should be working fine but its not and i havent touched the file or anything. Has anyone else got this problem? And does anyone know how to fix it?? Exchange if (!defined($_CONFIG['define_code'])) { echo 'This file cannot be accessed directly.'; exit; } $_GET['spend'] = (isset($_GET['spend']) && in_array($_GET['spend'], array('refill', 'IQ', 'IQ2', 'main', 'main2'))) ? $_GET['spend'] : ''; if ($_GET['spend'] == '') { echo "Welcome to the exchange! You have <b>{$ir['second']}</b> " . $set['second_currency'] . ". What would you like to spend your " . $set['second_currency'] . " on? <a href='" . gen_url('exchange', true) . "&spend=refill'>Energy Refill - {$set['ct_refillprice']} " . $set['second_currency'] . "</a> <a href='" . gen_url('exchange', true) . "&spend=IQ'>IQ - {$set['ct_iqpercrys']} IQ per " . substr($set['second_currency'], 0, -1) . "</a> <a href='" . gen_url('exchange', true) . "&spend=main'>" . $set['main_currency'] . " - \$" . number_format($set['ct_moneypercrys']) . " per " . substr($set['second_currency'], 0, -1) . "</a>"; } else { if ($_GET['spend'] == 'refill') { if ($ir['second'] < $set['ct_refillprice']) { echo "You don't have enough " . $set['second_currency'] . "!"; } else if ($ir['energy'] == $ir['maxenergy']) { echo "You already have full energy."; } else { $db->query( "UPDATE users SET energy=maxenergy,`second` = `second`-{$set['ct_refillprice']} WHERE userid=$userid"); echo "You have paid {$set['ct_refillprice']} " . $set['second_currency'] . " to refill your energy bar."; } } else if ($_GET['spend'] == 'IQ') { echo "Type in the amount of " . $set['second_currency'] . " you want to swap for IQ. You have <b>{$ir['second']}</b> " . $set['second_currency'] . ". One " . substr($set['second_currency'], 0, -1) . " = {$set['ct_iqpercrys']} IQ.<form action='" . gen_url('exchange', true) . "&spend=IQ2' method='post'><input type='text' name='" . $set['second_currency'] . "' /><input type='submit' value='Swap' /></form>"; } else if ($_GET['spend'] == 'IQ2') { $_POST[$set['second_currency']] = (int) $_POST[$set['second_currency']]; if ($_POST[$set['second_currency']] <= 0 || $_POST[$set['second_currency']] > $ir['second']) { echo "Error, you either do not have enough " . $set['second_currency'] . " or did not fill out the form. <a href='" . gen_url('exchange', true) . "&spend=IQ'>Back</a>"; } else { $iqgain = $_POST[$set['second_currency']] * $set['ct_iqpercrys']; $db->query( "UPDATE users SET `second` = `second`-{$_POST[$set['second_currency']]} WHERE userid=$userid"); $db->query( "UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid"); echo "You traded {$_POST[$set['second_currency']]} " . $set['second_currency'] . " for $iqgain IQ."; } } else if ($_GET['spend'] == 'main') { echo " Type in the amount of ".$set['second_currency']." you want to swap for ".$set['main_currency'].". You have <b>{$ir['second']}</b> ".$set['second_currency'].". One ".substr($set['second_currency'], 0, -1)." = ".money_formatter($set['ct_moneypercrys']).". <form action='".gen_url('exchange', true)."&spend=main2' method='post'> <input type='text' name='".$set['second_currency']."' /> <input type='submit' value='Swap' /> </form> "; } else if ($_GET['spend'] == 'main2') { $_POST[$set['second_currency']] = (isset($_POST[$set['second_currency']]) && is_numeric($_POST[$set['second_currency']])) ? abs(intval($_POST[$set['second_currency']])) : ''; if ( empty($_POST[$set['second_currency']]) || $_POST[$set['second_currency']] > $ir['second'] ) { echo " Error, you either do not have enough ".$set['second_currency']." or did not fill out the form. <a href='".gen_url('exchange', true)."&spend=main'>Back</a> "; } else { $iqgain = $_POST[$set['second_currency']] * $set['ct_moneypercrys']; $db->query( "UPDATE users SET `second` = `second`-{$_POST[$set['second_currency']]},`main` = `main`+$iqgain WHERE userid=$userid"); echo "You traded {$_POST[$set['second_currency']]} " . $set['second_currency'] . " for \$" . number_format($iqgain) . "."; } } } $h->endpage(); If anyone could help, it would be much appreciated Thank you. :)
-
Okay i have got that same thing in both Viewuser and index, I have this $ts = $ir['strength'] + $ir['agility'] + $ir['guard'] + $ir['labour'] + $ir['IQ']; $ir['strank'] = get_rank($ir['strength'], 'strength'); $ir['agirank'] = get_rank($ir['agility'], 'agility'); $ir['guarank'] = get_rank($ir['guard'], 'guard'); $ir['labrank'] = get_rank($ir['labour'], 'labour'); $ir['IQrank'] = get_rank($ir['IQ'], 'IQ'); $tsrank = get_rank($ts, 'strength+agility+guard+labour+IQ'); $ir['strength'] = number_format($ir['strength']); $ir['agility'] = number_format($ir['agility']); $ir['guard'] = number_format($ir['guard']); $ir['labour'] = number_format($ir['labour']); $ir['IQ'] = number_format($ir['IQ']); $ts = number_format($ts); . . . . if ($ts>=1000000) { echo ' Strong'; } elseif ($ts>=750000) { echo ' Strong'; } elseif ($ts>=500000) { echo ' Strong'; } elseif ($ts>=250000) { echo ' Strong'; } elseif ($ts>=100000) { echo ' Strong'; } elseif ($ts>=75000) { echo ' Average'; } elseif ($ts>=20000) { echo ' <font color="#B22222">Weak</font>'; } else { echo ' <font color="red">Feeble</font>'; } I have the exact same thing on both pages but for some reason it only works on Viewuser. I have +20k and on View user it says im 'Weak' but on my index page it says that i am still 'Feeble Thanks'
-
Yeah its for mccode, but i just did it like this and it works sort of, but only on Viewuser.php it doesnt seem to be working on index.php lol if ($stexp>=1000000) { echo ' Strong'; } elseif ($stexp>=750000) { echo ' Strong'; } elseif ($stexp>=500000) { echo ' Strong'; } elseif ($stexp>=250000) { echo ' Strong'; } elseif ($stexp>=100000) { echo ' Strong'; } elseif ($stexp>=75000) { echo ' Average'; } elseif ($stexp>=20000) { echo ' <font color="#B22222">Weak</font>'; } else { echo ' <font color="red">Feeble</font>'; } Thanks :)
-
Ah okay thanks Looks quite complex for me atm, but im sure I'll get there :P