Search found 30 matches
- Sun Jul 17, 2011 2:25 pm
- Forum: Tutorials
- Topic: Two in one
- Replies: 5
- Views: 1249
Re: Two in one
i already did that..
WOW
Nice...new tutorial...
The voting system....yhaa.
The voting system....yhaa.
- Sat Jun 18, 2011 6:01 am
- Forum: Tutorials
- Topic: Problem with "Register and Login (User Account System)"
- Replies: 4
- Views: 1241
Re: Problem with "Register and Login (User Account System)"
add another } after the one on line 25...it should do it..
- Fri Jun 17, 2011 2:03 pm
- Forum: General Chat
- Topic: Probably No Video This Week :(
- Replies: 71
- Views: 10040
Re: Probably No Video This Week :(
Why did you send it here? Just for a joke ;) The cable has gone a bit weird, you have to wiggle it then sit very still to get the left speaker to work. Corsair said they would replace it but only if I pay £9.76 for postage. Never sent any airmail before though so there is something of the list of t...
- Wed Jun 15, 2011 8:41 am
- Forum: Tutorials
- Topic: If logged in...
- Replies: 3
- Views: 981
Re: If logged in...
OK. I have found a solution... <?php if (isset($_SESSION['username']) === false){ ?> form here <?php }else{ echo "Welcome <a href='profile.php'>" . $_SESSION['username']."</a> ! - <a href='logout.php'>Logout</a>."; } ?> Just in case someone else will need it. I also modified the ...
- Wed Jun 15, 2011 6:38 am
- Forum: Tutorials
- Topic: If logged in...
- Replies: 3
- Views: 981
Re: If logged in...
Do you have any solution?
Regards and thanks for the fast reply.
Regards and thanks for the fast reply.
- Wed Jun 15, 2011 6:06 am
- Forum: Tutorials
- Topic: If logged in...
- Replies: 3
- Views: 981
If logged in...
I made this code for users that are logged in to "Not see the log-in form" when if they are logged in. It works when i am logged in, but where i log-out, i cant access the log-in form. I am getting this: The page isn't redirecting properly Firefox has detected that the server is redirectin...
- Tue Jun 14, 2011 5:46 pm
- Forum: Tutorials
- Topic: PHP Login: expects parameter 1 to be resource, boolean given
- Replies: 12
- Views: 12969
Re: PHP Login: expects parameter 1 to be resource, boolean g
here...try this and tell me if it works: <?php //checks if given username exists in the database. function user_exists($user){ $user = mysql_real_escape_string($user); $total = mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}'"); return (mysql_result($total, 0...
- Tue Jun 14, 2011 6:48 am
- Forum: Tutorials
- Topic: New Tutorial
- Replies: 2
- Views: 796
New Tutorial
When will we have a new tutorial ?
- Mon Jun 13, 2011 7:32 am
- Forum: Tutorials
- Topic: Register and Login (Email Activation) and User profile
- Replies: 16
- Views: 3726
Re: Register and Login (Email Activation) and User profile
Since I get the feeling you're not gonna do this yourself, I will provide you with one really easy function that checks if the user is online or not. function is_logged_in(){ if(empty($_SESSION['username'])){ return false; }else{ return true; } } if(is_logged_in === false){Show login form}else{don'...
- Sun Jun 12, 2011 10:33 pm
- Forum: Tutorials
- Topic: Register and Login (Email Activation) and User profile
- Replies: 16
- Views: 3726
Re: Register and Login (Email Activation) and User profile
Yeah...i was expecting this answer..
You don't want to give any tips... lol
You don't want to give any tips... lol
- Sun Jun 12, 2011 2:31 pm
- Forum: Tutorials
- Topic: Register and Login (Email Activation) and User profile
- Replies: 16
- Views: 3726
Re: Register and Login (Email Activation) and User profile
Something is not complete in register/log-in script.
Because when a user is logged in, it still shows the log-in form..
What does it need to be added so when a user is logged in to show the log-out button(link) if he visit the log-in page again after he logs in?
Regards.
Because when a user is logged in, it still shows the log-in form..
What does it need to be added so when a user is logged in to show the log-out button(link) if he visit the log-in page again after he logs in?
Regards.
- Sat Jun 11, 2011 8:21 pm
- Forum: Tutorials
- Topic: User profile No Data Displayed
- Replies: 16
- Views: 2886
Re: User profile No Data Displayed
Alright.
i manage to connect the 2 scripts together..with no errors...
i manage to connect the 2 scripts together..with no errors...
- Sat Jun 11, 2011 12:06 pm
- Forum: Tutorials
- Topic: User profile No Data Displayed
- Replies: 16
- Views: 2886
Re: User profile No Data Displayed
I found the error source...jacek wrote:you cant have output before the session_start function, you will have to add it after the include.
I had a space before
<?php include('core/init.inc.php'); ?>But still...i cant make it reflect the logged in user details...
what to do?
- Fri Jun 10, 2011 7:40 pm
- Forum: Tutorials
- Topic: User profile No Data Displayed
- Replies: 16
- Views: 2886
Re: User profile No Data Displayed
OK.
I added this code in init.inc.php from user register/login system
if i remove that code, the edit form is empty..
I added this code in init.inc.php from user register/login system
$_SESSION['uid'] = 12;This is the result:
if i remove that code, the edit form is empty..
- Fri Jun 10, 2011 7:37 pm
- Forum: Tutorials
- Topic: User profile No Data Displayed
- Replies: 16
- Views: 2886
Re: User profile No Data Displayed
i get an error on the line i put the code...jacek wrote:Okay, try it there then.kalipsso wrote:That is the edit_profile.php file..
- Fri Jun 10, 2011 7:27 pm
- Forum: Tutorials
- Topic: User profile No Data Displayed
- Replies: 16
- Views: 2886
Re: User profile No Data Displayed
That is the edit_profile.php file..jacek wrote:the profile page I guess, which ever you posted in the first post of this topic.
- Fri Jun 10, 2011 7:12 pm
- Forum: Tutorials
- Topic: User profile No Data Displayed
- Replies: 16
- Views: 2886
Re: User profile No Data Displayed
does init.inc.php from user system conflicts wit the init.inc.php from the user profile ? the point of the init file is that it does things that are always needed, so you should not have more than one init file. Before the call to the fetch_user_info() function can you try var_dump($_SESSION['uid']...
- Fri Jun 10, 2011 6:00 pm
- Forum: Tutorials
- Topic: User profile No Data Displayed
- Replies: 16
- Views: 2886
Re: User profile No Data Displayed
does init.inc.php from user system conflicts wit the init.inc.php from the user profile ? init.inc.php from user register/login: <?php session_start(); $exceptions = array('register', 'login', 'activate'); $page = substr(end(explode('/', $_SERVER['SCRIPT_NAME'])), 0, -4); mysql_connect('localhost', ...
- Fri Jun 10, 2011 5:47 pm
- Forum: Tutorials
- Topic: Register and Login (Email Activation) and User profile
- Replies: 16
- Views: 3726
Re: Register and Login (Email Activation) and User profile
Removing session_start() is not the correct way to fix that, as it is needed for the session to work. The problem is that the session_start() function needs to send a cookie which has to be done via a header, and headers cannot be sent after output from the script has begun. The correct fix would b...
- Fri Jun 10, 2011 3:23 pm
- Forum: Suggestions
- Topic: User Profile Avatar
- Replies: 4
- Views: 1473
Re: User Profile Avatar
Its fairly simple. You probably know how to upload an image (im sure jacek has covered this) And im sure you know how to insert data into a database, and how to fetch data and how to echo out data. You have everything you need there. When you upload the image, make sure you upload it to a certain l...