![Smile :)](./images/smilies/icon_e_smile.gif)
Search found 30 matches
- Sun Jul 17, 2011 2:25 pm
- Forum: Tutorials
- Topic: Two in one
- Replies: 5
- Views: 987
Re: Two in one
i already did that.. ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
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: 1082
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: 7954
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 thin...
- Wed Jun 15, 2011 8:41 am
- Forum: Tutorials
- Topic: If logged in...
- Replies: 3
- Views: 836
Re: If logged in...
OK. I have found a solution... [syntax=php]<?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>."; } ?> [/syntax] Just in case someone else will need it...
- Wed Jun 15, 2011 6:38 am
- Forum: Tutorials
- Topic: If logged in...
- Replies: 3
- Views: 836
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: 836
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: 11342
Re: PHP Login: expects parameter 1 to be resource, boolean g
here...try this and tell me if it works: [syntax=php] <?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_res...
- Tue Jun 14, 2011 6:48 am
- Forum: Tutorials
- Topic: New Tutorial
- Replies: 2
- Views: 718
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: 3219
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. [syntax=php]function is_logged_in(){ if(empty($_SESSION['username'])){ return false; }else{ return true; } }[/syntax] [syntax=php]if(is_logged_in ===...
- Sun Jun 12, 2011 10:33 pm
- Forum: Tutorials
- Topic: Register and Login (Email Activation) and User profile
- Replies: 16
- Views: 3219
Re: Register and Login (Email Activation) and User profile
Yeah...i was expecting this answer.. ![Razz :P](./images/smilies/icon_razz.gif)
You don't want to give any tips... lol![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Razz :P](./images/smilies/icon_razz.gif)
You don't want to give any tips... lol
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
- Sun Jun 12, 2011 2:31 pm
- Forum: Tutorials
- Topic: Register and Login (Email Activation) and User profile
- Replies: 16
- Views: 3219
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: 2395
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: 2395
Re: User profile No Data Displayed
jacek wrote:you cant have output before the session_start function, you will have to add it after the include.
I found the error source...
I had a space before
[syntax=php]<?php include('core/init.inc.php'); ?>[/syntax]
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: 2395
Re: User profile No Data Displayed
OK.
I added this code in init.inc.php from user register/login system [syntax=php]$_SESSION['uid'] = 12;[/syntax]
This is the result:
![Image](http://decographics.net/profiles/this.png)
if i remove that code, the edit form is empty..
I added this code in init.inc.php from user register/login system [syntax=php]$_SESSION['uid'] = 12;[/syntax]
This is the result:
![Image](http://decographics.net/profiles/this.png)
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: 2395
Re: User profile No Data Displayed
jacek wrote:kalipsso wrote:That is the edit_profile.php file..
Okay, try it there then.
i get an error on the line i put the code...
- Fri Jun 10, 2011 7:27 pm
- Forum: Tutorials
- Topic: User profile No Data Displayed
- Replies: 16
- Views: 2395
Re: User profile No Data Displayed
jacek wrote:the profile page I guess, which ever you posted in the first post of this topic.
That is the edit_profile.php file..
- Fri Jun 10, 2011 7:12 pm
- Forum: Tutorials
- Topic: User profile No Data Displayed
- Replies: 16
- Views: 2395
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: 2395
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: [syntax=php]<?php session_start(); $exceptions = array('register', 'login', 'activate'); $page = substr(end(explode('/', $_SERVER['SCRIPT_NAME'])), 0, -4); mysql_connect('...
- Fri Jun 10, 2011 5:47 pm
- Forum: Tutorials
- Topic: Register and Login (Email Activation) and User profile
- Replies: 16
- Views: 3219
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: 1278
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...