Version: , by (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 01-24-2001
Last Update: Never
Installs: 0
No support by the author.
I'd like membership of the BB to be the same as website membership and vice versa. So when you register on the front page to join the site, you end up registering for the BB and viceversa. Then I want to be able to make some parts of the website only available to members.
How easy will it be to extend membership from the BB to the whole site. Perhaps a login box on the front page as well.
I'm pretty clued up with php and mysql, so I'm sure I can hack something together, but I was wondering if anyone else had attempted this. And would it be possible do you think to start extending the mysql tables so I can store extra info about members like the ratings they give for links, and comments about other sections of the site.
I think this is a better solution that having two seperate memberships, one for the BB and another for the site.
Comments please,
Pigsy.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
yes it can be done, ditch your current website membership scheme (if you have one) and put all the data into the vbulletin tables, then just require config.php on each page and use the same validation scheme as vb (will be sessions soon so you can use them), adding new fields to the member database is just a matter of using myphpadmin and should be no problem.
others have done it i know, a search here will probably find them
i will tell you more about how it works i have a hack done that is going to merge links SQL and vbulletin together (not being made by me though)
I would very much appreciate it if someone could help me with a problem I am currently having when I try to use the VB registration system for other pages on my site.
if ($bbusername == "" || (isset($bbusername))==0)
{
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid");
$username=$getusername[username];
$bbusername = $username;
}
else
{
$username = $bbusername;
}
?>
The code appears to work bar the fact that I get a message as follows:
Fatal error: Failed opening required 'admin/config.php' (include_path='') in /usr/local/etc/httpd/htdocs/forums/global.php on line 33
I don't understand why it is unable to access the config file in the directory.
The fundamental problem is that I really know nothing about php.
If someone could give some pointers that would be greatly appreciated. I have read previous threads here but had no joy. The code above comes from another VB user and it works on his site.
I have just tried that and it hasn't worked. It's as if the fault is within the 'global.php' file but obviously it isn't as it works fine under normal conditions.
I am sure that the error is very simple but I just do not know enough to be able to see it.
The only change I have made to the code since being sent it by another VB user is that I changed the directory url to obviously match the directories on my site rather than his. There aren't errors there though or it would not be able to access the 'global.php' file.