The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Check vB password with main page comment script
I am writing a comment script for the news section of my website and I would like to make it so that users have to be registered on the forums to comment. I would like to set it so that when they input their password, the script queries the vB database, checks their input username and password and see if it matches the database. If so, the script should then send the comments to the main page database.
I have the entire script written except for the password check system. I just want to know what the code would be? I'm assuming it would be similar to the check code for the forums: PHP Code:
|
#2
|
||||
|
||||
[sql]SELECT userid FROM user WHERE username = 'foo' AND password = MD5(CONCAT(MD5('bar'), salt))
[/sql] Where foo ist the username and bar is the password. If this query returns a row the username/password-combination is valid |
#3
|
|||
|
|||
I figured it out last night:
PHP Code:
|
#4
|
|||
|
|||
What is the status of this script?
Does anyone know of script similar to this http://www.mylittlehomepage.net/comment_script? It should use a dedicated news comment forum (each news item being a single thread) and that requires the user to be logged in? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|