Search found 38 matches

by TehCrayz
Mon Dec 10, 2012 11:13 pm
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3296

Re: User Profiles - Edit Profile Not Working

:) it works, but it doesn't actually change the info.
http://gyazo.com/100c98d5c2ff55fb42fc5700ebb348af
http://gyazo.com/4fd92c425135ce313cf6a1eb0a64e57f

Ugh..this is getting more and more confusing... @.@
imma go to sleep now.
by TehCrayz
Mon Dec 10, 2012 10:42 pm
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3296

Re: User Profiles - Edit Profile Not Working

The errors are now working but they're not working properly.
http://gyazo.com/16cd47364adf5c4e344b6bdb8adc6563
i used only a-z chars, yet it tells me to only use a-z chars
by TehCrayz
Mon Dec 10, 2012 10:32 pm
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3296

Re: User Profiles - Edit Profile Not Working

Grr... even more errors T_T Warning: implode(): Invalid arguments passed in C:\xampp\htdocs\GameCrayz\Profiles\edit_profile.php on line 59 Warning: implode(): Invalid arguments passed in C:\xampp\htdocs\GameCrayz\Profiles\edit_profile.php on line 59 Edit_profile.php [syntax=php]<?php include('core/i...
by TehCrayz
Mon Dec 10, 2012 10:04 pm
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3296

Re: User Profiles - Edit Profile Not Working

wth? now im getting this error message 'Fatal error: Call to undefined function preg_math() in C:\xampp\htdocs\GameCrayz\Profiles\edit_profile.php on line 12'
by TehCrayz
Mon Dec 10, 2012 10:03 pm
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3296

Re: User Profiles - Edit Profile Not Working

oh...lol :)
by TehCrayz
Mon Dec 10, 2012 8:29 pm
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3296

Re: User Profiles - Edit Profile Not Working

Nothing happened...after i click 'update' nothing happens, it just refreshes...
http://gyazo.com/ef7de92f922091801d98af3d57264bb7
by TehCrayz
Mon Dec 10, 2012 8:02 pm
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3296

User Profiles - Edit Profile Not Working

Me again, i'm having a problem with the edit_profile page, firstly, my location, email and about me are not in the textfields (<?php echo $user_info['email']; ?>) and also when i click update, the 'Your profile has been changed' message doesn't appear. Here's my .php files. Edit_profile.php [syntax=...
by TehCrayz
Sun Dec 09, 2012 10:04 pm
Forum: Tutorials
Topic: Session variable in string
Replies: 7
Views: 1296

Re: Quick help plz

Thanks, you are literally 'AWESOME'. ;) ;) ;) ;) ;)
by TehCrayz
Sun Dec 09, 2012 9:39 pm
Forum: Tutorials
Topic: Session variable in string
Replies: 7
Views: 1296

Re: Quick help plz

Single quoted variables don't get parsed in php [syntax=php]<script type="text/javascript"> <!--Invocation code--> var infobar=new informationbar() infobar.setContent('<?php if ($_SESSION['username']){ echo "Welcome $_SESSION['username']"; }else{ echo 'Welcome to GameCrayz! Plea...
by TehCrayz
Sun Dec 09, 2012 9:08 pm
Forum: Tutorials
Topic: Session variable in string
Replies: 7
Views: 1296

Re: Quick help plz

[quote="ExtremeGaming"][syntax=php]<?php if(isset($_SESSION['username'])) { ?> <script type="text/javascript"> window.alert("Welcome <?php echo $_SESSION['username']; ?>!"); </script> <?php } else { ?> <script type="text/javascript"> window.alert("Welcome...
by TehCrayz
Sun Dec 09, 2012 8:49 pm
Forum: Tutorials
Topic: Session variable in string
Replies: 7
Views: 1296

Session variable in string

Hey, i want to do something like. for example. a popup bar appears and if i'm logged in, it would say welcome $_SESSION['username'] and if i'm not, then it will say some stuff bout signing up. anyways how am i able to make it say the username in the echo''; i've tried a lot of thins and now i'm out ...
by TehCrayz
Sun Dec 09, 2012 7:44 pm
Forum: Tutorials
Topic: Login error
Replies: 10
Views: 1743

Re: Login error

lol, i saw your little 32 - 40 change there, but now it works. THANKS SOO MUCH! YOU ARE A LIFESAVER! :D
by TehCrayz
Sun Dec 09, 2012 7:42 pm
Forum: Tutorials
Topic: Login error
Replies: 10
Views: 1743

Re: Login error

Your error is that sha1() creates a 32-byte password (32 characters in length) and you have a limit of 30 characters in the password field, thus cutting off 2 from the string. Until you fix that and register a new user, you will never be able to log in. So i should just make the password length 32?...
by TehCrayz
Sun Dec 09, 2012 7:18 pm
Forum: Tutorials
Topic: Login error
Replies: 10
Views: 1743

Re: Login error

ExtremeGaming wrote:If there are no errors that means everything should be working correctly. Remove that part because it's useless now.

What is your database structure? The type and max length of characters in your password column.

Example: Varchar (50)


http://gyazo.com/3adf950ac618cdce669fd0edb40d9e55
by TehCrayz
Sun Dec 09, 2012 8:55 am
Forum: Tutorials
Topic: Login error
Replies: 10
Views: 1743

Re: Login error

Add this to the very first line within your php on login.php, then run your form again. [syntax=php]error_reporting(E_ALL); ini_set('display_errors', '1');[/syntax] Ok, i did that but still, it doesn't show anything, it just says incorrect password. m [syntax=php]<?php error_reporting(E_ALL); ini_s...
by TehCrayz
Sat Dec 08, 2012 10:08 pm
Forum: Tutorials
Topic: Login error
Replies: 10
Views: 1743

Re: Login error

ExtremeGaming wrote:The only thing I see that could be happening is your query is failing or you are entering the wrong username and password...try changing your query in the valid_credentials functions to match the one below.


I have changed it but still...no luck... :(
http://gyazo.com/bfc251404b1682c1ff9f41ac1acfa9c1
by TehCrayz
Sat Dec 08, 2012 9:30 pm
Forum: Tutorials
Topic: Login error
Replies: 10
Views: 1743

Login error

I Have been following the register and login tutorial but the login doesnt work, the register does though. When i try to login, it keeps saying incorrect password. i have another login code and it also says incorrect pass. Here is the codes i have. login.php [syntax=php]<?php include('core/init.inc....