The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
log-in to non-vb pages using vb passwords?
Before I purchased vBulletin I asked a question in the pre-sales forum about creating a login page for a php/mysql directory I created using the vbulletin username and passwords. I was told at that time that it would be pretty easy to do. I want to get started on this now, but I haven't been able to find any more info about doing this.
What I have is a member directory for photographers that is searchable by speciality, location, name, etc. I currently have to maintain all the listings myself, so I would really like members to be able to update their own listings and log-in using their vBulletin username and password. Any advice would be much appreciated. Thanks, Andrew |
#2
|
||||
|
||||
Andrew, logins on external pages are simple IF there isn't already a login system for the page. If there's not, you simply require global.php at the top of the file. You can check what usergroup the user is in and allow permission to certain functions based on that info.
|
#3
|
|||
|
|||
Thanks for your response Amy. I've already installed the Deluxe vB User login and I understand a little bit about how you can use global.php.
However, I'm not sure how I'm supposed implement something like that with my current member database. What I'm trying to do is allow users to login and edit their details in our member directory using on their forum username and password. It's very important that they only be able to access their record in the database, so I think it would have to based on user id or something similar. I also imagine I would have to modify my contact table and ad some of the vB info like username or userid so I can restrict access, wouldn't I? I started working on this when I was using Ikonboard, and one of the main reasons I switched to vB is I was told this could easily be done and would take about 5 minutes of coding. I'm no coder, but with a little direction I can usually figure some of this stuff out. Any further advice would be much appreciated. Thanks, Andrew |
#4
|
|||
|
|||
I hate to complain, but when I asked this question prior to purchasing vBulletin three or four people responded telling me how easy it was to do.
Now that I've bought it and want to do this all I get is silence. What's up with that? Andrew |
#5
|
||||
|
||||
Andrew, with your existing member database, do you plan to add more members to it?
What is the unique identifier for those logins? Is it a name or a number? What I would probably do, to make things simple, is to create a new custom profile field in the admincp. Fill that field with the login name or id from your other table. Then, all you have to do is check for $user[fieldx] and restrict based on that. It becomes more complicated if you're still adding users to the old database. |
#6
|
|||
|
|||
Thanks Amy,
I'm the only one who has access to the current directory, so I add all new listings and make changes to current ones as required. So I have one central password that give me access to all records. I will be adding new members and I was thinking it's probably best and easiest for me to create each new listings and then give members access to make any changes to their own listing. There less than 50 records right now, so it wouldn't be too hard to add a field to the current database table if that's necessary. So instead of adding a custom field to the vB profile, what if I added the vB username or id to the current contact table when I create a new record? I only add listings for members who have purchased a paid subscription, so ideally I'd like to have the listings visible in the directory based on the member's usergroup. So if they don't renew their subscription their listing is dropped from the directory. But maybe that's asking too much right now Thanks again, Andrew |
#7
|
||||
|
||||
Is it an all or nothing thing with the old database? I mean, if they are in the database, do you want them to have access? Or, are there different levels of access?
|
#8
|
||||
|
||||
I think going the custom field route in vbulletin will be easier. but it'll work either way. As long as you can corrolate which forum member = which custom script member, you'll be fine.
|
#9
|
|||
|
|||
Quote:
Quote:
On the other hand, if I just put their username or id into the new record I could just email them and let them login and do the rest. Either way, I'm still not sure how I would create the log-in. Can I use the Deluxe vB User login mod? The example below restricts access based on usergroup. Would you just edit it this somehow to restrict by userid? Code:
<?php if ($vbulletin->userinfo['usergroupid'] == '6' ) { echo "This is only visible to people in usergroup 6";} ?> |
#10
|
|||
|
|||
I have a script on one of my sites that I curently don't have integrated but the directions here make me want to give it a try...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|