![]() |
I need help with a PHP script. I would like users to be able to login to the forums from a non-vB page. If someone could make a script for me or show me how to do this, it would be much appreciated. I know HTML, so i can do the layout myself. I have tried one of the hacks posted here, but it didn't work. I have include what I would like it to look like below.
If user is not logged in: ------------------------------------------------------------------------------ Welcome Guest! Click Here to register or login below. Username: |--------| Password: |--------| ------------------------------------------------------------------------------ And if a user is logged in: ------------------------------------------------------------------------------ Wecome back Username. Click here to go to the forums or click here to logout. You have # of Private Messages new messages. Click here to read them! ----------------------------------------------------------------------------- Thanks |
Check the released hacks forum. Search for login. It's there already.
Amy |
I already tried that, and it didn't work.
|
What didn't work? The script or the search?
Amy |
the script
|
url to hack please.. i tried searching for it but couldnt find it =\
|
Code:
<?PHP this should work, don't forget to fill in your own path to your board directory in the chdir() routine. |
I tried the above script. HOwever, I want to use it with cookies, and on a non vB page. The login works fine, but when i got back to the page where I want the login, it doesn't have my username. It still acts like I am not logged in.
|
Lotus Ims
If you have included the script with the url instead of the path to the file, that's probably why it doesn't work. Amy |
don't forget to set your cookie domain .mydomain.com (notice the first dot) in your board options
|
well hmmm
I was able to do this myself ! Surprised as I was ! though I cannot figure out how to give en error message back if password or username are not correct. anyone can point this out please? greets, Tomba Sciatori |
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|