Search found 38 matches

by hys
Fri May 11, 2012 11:39 am
Forum: Suggestions
Topic: Change and forgot password for the login system
Replies: 4
Views: 1288

Re: Change and forgot password for the login system

Temor wrote:I could write a short tutorial on this subject and post it to the forums if you'd like. Saves Jacek the time to make a video about it. It's really simple so there's really no need for a video tutorial.
yes please :)
by hys
Mon May 07, 2012 9:30 pm
Forum: Tutorials
Topic: Add first name and last name to the register system help me.
Replies: 3
Views: 958

Re: Add first name and last name to the register system help

I'm sure I replied to this already ! Oh well, double explanation ! In the add_user() function you need to modify the INSERT query to account for the new columns. It would also be a good idea to add the new $_POST fields to the isset check and do some simple validation like with all the other fields...
by hys
Mon May 07, 2012 7:34 pm
Forum: Suggestions
Topic: Change and forgot password for the login system
Replies: 4
Views: 1288

Re: Change and forgot password for the login system

jacek wrote:I could. The login system has already had too many addons though :?
No :) u only need this bit then its the best login system i ever had seen :) i love it
by hys
Mon May 07, 2012 9:09 am
Forum: Tutorials
Topic: Add first name and last name to the register system help me.
Replies: 3
Views: 958

Add first name and last name to the register system help me.

Hello I have tryed to fix the first name and last name for the register system. But i can't get it to work it well not put the date to my mysql. here is the register.php code: <?php include('core/init.inc.php'); $errors = array(); if (isset($_POST['username'], $_POST['password'], $_POST['repeat_pass...
by hys
Sun May 06, 2012 10:08 pm
Forum: Suggestions
Topic: Change and forgot password for the login system
Replies: 4
Views: 1288

Change and forgot password for the login system

Hello

It could be nice that u can make an change password and forgot password for the login system u have done :)

Or maby do so ppl get a new random code if they forgot the password so they can change it again.

Regards
Hys
by hys
Sun May 06, 2012 6:45 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

i found out :D thanks anyway :d
by hys
Thu Apr 26, 2012 1:12 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

i have a problem now :s i deleted all my mysql and can't do the same as i had done :(
by hys
Mon Feb 06, 2012 10:33 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

Omg :d and i couldt see that hehe sorry for that mate :D

i have a question more how much code do i have to make if i want to see when users are online ? like when u click user list then u see the name " Bob (online)" .

Hys
by hys
Mon Feb 06, 2012 8:23 am
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

Can it be this?
$sql = 'SELECT `user_name` FROM `users` WHERE `user_id` = '{$username}'';
by hys
Sun Feb 05, 2012 6:41 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

waiting for jacek to look at code :)
by hys
Sun Feb 05, 2012 9:54 am
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

waleed3011, please don't take the code try go true the tut vids.

i had to past all my code so he could help me.
by hys
Sat Feb 04, 2012 9:56 am
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

Okay here is all the code i have. login.php <?php include('core/init.inc.php'); $errors = array(); if (isset($_POST['username'], $_POST['password'])) { if (empty($_POST['username'])) { $errors[] = 'The username cannot be empty.'; } if (empty($_POST['password'])) { $errors[] = 'The password cannot be...
by hys
Fri Feb 03, 2012 5:06 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

Check site one. and the top i passed the code and the problem i have :D

i have tryed so menny things but nothing is working for me at all.
by hys
Thu Feb 02, 2012 11:31 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

its still not working :s i well be really glad if someone can find the problem and say whats wrong. :s
by hys
Wed Jan 25, 2012 4:21 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

When i take this code out of init.inc.php function fetch_current_user_id($username){ $username = mysql_real_escape_string($username); $sql = 'SELECT `user_id` FROM `users` WHERE `user_name` = '{$username}''; $result = mysql_query($sql); return mysql_result($result, 0); } if(empty($_SESSION['uid'])) ...
by hys
Wed Jan 25, 2012 3:45 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

Oh my gosh,

How do i make a localserver so i can try it myself :)

Regards
Hys
by hys
Wed Jan 25, 2012 9:18 am
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

Hi, no the server is not down. the only file i have changed is the init.inc.php i have not changed the other sites. when i delete this code function fetch_current_user_id($username){ $username = mysql_real_escape_string($username); $sql = 'SELECT `user_id` FROM `users` WHERE `user_name` = '{$usernam...
by hys
Tue Jan 24, 2012 11:00 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

Hi there now i used the code u send me and i putted it into init file init.inc.php <?php function fetch_current_user_id($username){ $username = mysql_real_escape_string($username); $sql = 'SELECT `user_id` FROM `users` WHERE `user_name` = '{$username}''; $result = mysql_query($sql); return mysql_res...
by hys
Tue Jan 24, 2012 6:08 pm
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

function fetch_current_user_id($username){
$username = mysql_real_escape_string($username);
$sql = 'SELECT `user_id` FROM `users` WHERE `user_name` = '{$username}'';
 
$result = mysql_query($sql);
 
return mysql_result($result, 0);
 
}
by hys
Tue Jan 24, 2012 9:52 am
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

Hi mate I'm really glad that u help me but its still not working getting a blank site :(

im confused now

Regards
Mike aka hys
by hys
Tue Jan 24, 2012 9:23 am
Forum: Tutorials
Topic: User Profile with your login system.
Replies: 50
Views: 9645

Re: User Profile with your login system.

Hello again :) Now i changed the table to my info. its still not working :D empty site Where shall i put an error to look whats going on. Regards Mike aka hys <?php function fetch_current_user_id($user_id){ $sql = 'SELECT `user_id` FROM `users` WHERE `user_name` = '{$_SESSION['username']''; $result ...