Old 09-02-2005   #1 (permalink)
Registered User
 
Gogeta's Avatar
 
Join Date: Sep 2005
Posts: 6

Membership Help

I have seen it done on other sites, many sites really. I was wondering how I would create a login script that would allow people that have signed up on a forum, that well phpbb forums.

Say the register with the forums. Is there a way to put a login script for Username, and Password on the main part of my site, not the forum. That will log people in using that data that they registered with. Like the username and password from the forum.

By using that data and once they login, I want to allow certain people, that are registered with the forum, and logged into the main site, again. Not the forum. So they can download certain things.

If this made no sense to you at all, please say so. I will try and explain it a bit better if so.

Last edited by Gogeta; 09-02-2005 at 01:04 AM..
Gogeta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-02-2005   #2 (permalink)
hmmmmmmm......
 
Join Date: Sep 2005
Posts: 22

Re

You mean what biorust is doing but with vbulletin?
jumbosheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-02-2005   #3 (permalink)
Registered User
 
Gogeta's Avatar
 
Join Date: Sep 2005
Posts: 6

Kinda, but then again. Kinda not.

I want people to be able to register with my forum. And have a simple login form on the main part of my layout. When they login, they could access certain downloads. But to be able to download anything or login to download it. They would have to register with the forums.

I don't want to have someone register with the forums, then register with something completely different just to download anything.

Also, if possible. I would like to be able to display something like the membership panel like biorust did on their home page.
Gogeta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-02-2005   #4 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
with phpBB this is especially easy, if you are trying to communicate with IPB you have to deal with their special hashing functions before you can compare passwords, but anyway:

you simply just connect to the same database as your phpBB forum does (look in the configuration file of phpBB to find the mysql credentials), open the users table and compare to those entries rather than your own database.

phpBB uses a plain text username and an md5 hashed password, so here's an example of what you'd do:

PHP Code:
<?php
mysql_connect
("localhost","my_phpbb_database_user","password");
mysql_select_db("my_php_database");

$username "fred_test_username";
$password md5(     "freds password"     );

$query mysql_query("SELECT * FROM phpbb_users WHERE Username LIKE '$username' AND Password = '$password' LIMIT 1");
if(
mysql_num_rows($query) > 0){
echo 
'Logged in!';
} else {
echo 
'Error logging in, something\'s wrong!';
}

?>
assuming you change your database options and double check on the users table name and column names (i'm not 100% sure they're right, i'm doing it from memory) then this will try and log "fred_test_username" in into the phpBB users database.

i don't have time to explain anything further, i assume you know how to keep them logged in etc...

hope that helped, cya
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-04-2005   #5 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
I would check and verify how to do this at the forums maker site. phpBB has a few mods that will allow you do this easily.
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-08-2005   #6 (permalink)
Registered User
 
Gogeta's Avatar
 
Join Date: Sep 2005
Posts: 6

Quote:
Originally Posted by Order
I would check and verify how to do this at the forums maker site. phpBB has a few mods that will allow you do this easily.
Then can you give me the link to a mod that works? I forgot all about that stuff, though I just searched it all and I couldn't find anything. And the other post didn't help me much either. Guessing I might have to find an example and show you want I want to be able to do.

----------------------------------------------------------

Okay, forget about phpbb, I found an example of what they did on their site. But they use invision. I can show you an example of what they did too. They have it so you can register on the main site, not the forums. Yet the forum and site all share the data. You can login on the site with the forum info, and you have to be logged in to download ceratain things.

You can register, login, and more without even going to the forum. This is all I want to be able to do. So I wouldn't need more then one member script such as. One to download certain things, and one for my forums. Don't need things getting ugly.

Example Site

You can see how they have the login thing on the left, and if you click the register thing it is on the main site, so you can register there instead of going to the forums to register.

Last edited by Gogeta; 09-08-2005 at 03:53 PM..
Gogeta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-08-2005   #7 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
To do this is much more complicated, and I do not know of such a mod existing for phpBB (I could be wrong).

This usually requires reverse engineering at a semi-major scale, since you have to know how the forums fully work and operate.
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-08-2005   #8 (permalink)
Registered User
 
Gogeta's Avatar
 
Join Date: Sep 2005
Posts: 6

Quote:
Originally Posted by Order
To do this is much more complicated, and I do not know of such a mod existing for phpBB (I could be wrong).

This usually requires reverse engineering at a semi-major scale, since you have to know how the forums fully work and operate.
I know the person that did that for their site. They are completely ignorant when it comes to anything besides html, such as php. So it couldn't be all that hard. Many people know how to do it and do it. There has to be ways to do it, just hope someone here knows how and can help me out.
Gogeta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-10-2005   #9 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
it appears that you know more about it than anyone here..
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete Membership Tutorial Error Melissa HTML / PHP / ASP / JS 4 12-02-2005 12:40 AM
Membership problems comtek HTML / PHP / ASP / JS 5 07-28-2005 10:13 AM
question about membership package davehaz HTML / PHP / ASP / JS 3 05-08-2005 05:11 PM
Membership Script Error indianguy8897 HTML / PHP / ASP / JS 3 04-17-2005 11:48 PM


All times are GMT +1. The time now is 05:55 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT