spasm37 Posted April 22, 2006 Share Posted April 22, 2006 hey, I'm looking to create a members only section in which when they log in, they can have a personal profile, upload their own files to contribute to the site, enable them to chat in the forums, etc. Does anyone know a good script for it, or would it be better to have it premade by someone who offers it? I'm looking for the easiest /quickest way to do it. Quote Link to comment Share on other sites More sharing options...
legohead6 Posted April 22, 2006 Share Posted April 22, 2006 [!--quoteo(post=367484:date=Apr 22 2006, 11:57 AM:name=spasm37)--][div class=\'quotetop\']QUOTE(spasm37 @ Apr 22 2006, 11:57 AM) [snapback]367484[/snapback][/div][div class=\'quotemain\'][!--quotec--]hey, I'm looking to create a members only section in which when they log in, they can have a personal profile, upload their own files to contribute to the site, enable them to chat in the forums, etc. Does anyone know a good script for it, or would it be better to have it premade by someone who offers it? I'm looking for the easiest /quickest way to do it.[/quote]Thats very complex php.....i bought this 700 page book and thats like the final task.....and it only comes up to welcome (name) when they do login!..... Quote Link to comment Share on other sites More sharing options...
hostfreak Posted April 22, 2006 Share Posted April 22, 2006 Might be best to pay someone to make it if you need a lot of custom work. Or you can check for tutorials. I know pixel2life has some, but they won't tell you everything you need to know... Just the basics. Quote Link to comment Share on other sites More sharing options...
Doqrs Posted April 23, 2006 Share Posted April 23, 2006 install phpbb, thats what i use for everything.. their session management is excelent. when you download it, only upload the following files/directories to your server:Directories: db, includes, language, templatesFiles: common.php, config.php, index.php, install.php, login.phpThis will give you the basic structure for a session managementTo make integration easier on other pages, make the following file (bbcon.php):[code]<?define('IN_PHPBB', true);$phpbb_root_path = './';include($phpbb_root_path . 'extension.inc');include($phpbb_root_path . 'common.'.$phpEx);$userdata = session_pagestart($user_ip, PAGE_INDEX);init_userprefs($userdata);?>[/code]Then on every page you want to require login stuff, do[code]include('bbcon.php');[/code]to see if the user is logged in, use the $userdata array that is used through out the forum system[code]if( $userdata['session_logged_in'] ){ echo "You are logged in as".$userdata['username'];}else{ echo "You are not logged in,<br>Please <a href=login.php>Login</a>";}[/code]its a start, PM me if you have questions Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.