Jump to content


Photo

members only


  • Please log in to reply
3 replies to this topic

#1 spasm37

spasm37
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 22 April 2006 - 04:57 PM

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.

#2 legohead6

legohead6
  • Members
  • PipPipPip
  • Advanced Member
  • 434 posts

Posted 22 April 2006 - 05:50 PM

[!--quoteo(post=367484:date=Apr 22 2006, 11:57 AM:name=spasm37)--][div class=\'quotetop\']QUOTE(spasm37 @ Apr 22 2006, 11:57 AM) View Post[/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!.....
"Syntax error" .. WHERE THE **** IS IT?!

#3 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 22 April 2006 - 07:45 PM

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.

#4 Doqrs

Doqrs
  • Members
  • PipPip
  • Member
  • 19 posts

Posted 23 April 2006 - 02:07 AM

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, templates
Files: common.php, config.php, index.php, install.php, login.php

This will give you the basic structure for a session management

To make integration easier on other pages, make the following file (bbcon.php):
<?
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);
?>

Then on every page you want to require login stuff, do
include('bbcon.php');

to see if the user is logged in, use the $userdata array that is used through out the forum system
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>";
}

its a start, PM me if you have questions




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users