
PHP input script for use with a SMF (simple machines forum)
5711
£65(approx. $87)
- Posted:
- Proposals: 5
- Remote
- #47116
- Archived
Description
Experience Level: Intermediate
Background
SMF (Simple Machines Forum) is free open source forum software.
The required PHP script is to write (post) to an SMF forum hosted on the same server.
Project outline
The goal is for the end-user to be able to input text into a simple HTML form, the HTML form should send that data to the SMF forum as a post.
An end user should not need to login to the forum to post text to the forum.
Script
The script needs to perform two functions based on the sample HTML code below.
1. Open the SMF (Simple Machines Forum) database and create a \'new\' unique username (see note1) and unique password.
2. Open a new post on a specific SMF board and post the text collected by the HTML form with the userID from step 1.
Note 1
If the e-mail of the user exists in the SMF database already, then the post should be made in the username that exists.
i.e. to be clear, there should only ever be one username associated with an email address.
The script will create a new username if the email address is unique.
The script will use the existing username in the db if the email address is already in the db.
Important
The script should contain remarks so that it can be easily understood and modified.
Here is a very basic sample HTML form to work from:
<!DOCTYPE html>
<html lang=\"en\">
<head>
</head>
<body>
<form method=\"post\" action=\"./newscript.php\" enctype=\"multipart/form-data\">
<br />
E-mail: <input size=\"30\" name=\"email\"></div>
<br />
Text for the forum:
<br />
<textarea name=\"description\" rows=\"15\" cols=\"103\"></textarea>
<br />
<input type=\"submit\" value=\"Submit this message to the forum\">
</body>
</html>
Let me know if this is something you can do!
SMF (Simple Machines Forum) is free open source forum software.
The required PHP script is to write (post) to an SMF forum hosted on the same server.
Project outline
The goal is for the end-user to be able to input text into a simple HTML form, the HTML form should send that data to the SMF forum as a post.
An end user should not need to login to the forum to post text to the forum.
Script
The script needs to perform two functions based on the sample HTML code below.
1. Open the SMF (Simple Machines Forum) database and create a \'new\' unique username (see note1) and unique password.
2. Open a new post on a specific SMF board and post the text collected by the HTML form with the userID from step 1.
Note 1
If the e-mail of the user exists in the SMF database already, then the post should be made in the username that exists.
i.e. to be clear, there should only ever be one username associated with an email address.
The script will create a new username if the email address is unique.
The script will use the existing username in the db if the email address is already in the db.
Important
The script should contain remarks so that it can be easily understood and modified.
Here is a very basic sample HTML form to work from:
<!DOCTYPE html>
<html lang=\"en\">
<head>
</head>
<body>
<form method=\"post\" action=\"./newscript.php\" enctype=\"multipart/form-data\">
<br />
E-mail: <input size=\"30\" name=\"email\"></div>
<br />
Text for the forum:
<br />
<textarea name=\"description\" rows=\"15\" cols=\"103\"></textarea>
<br />
<input type=\"submit\" value=\"Submit this message to the forum\">
</body>
</html>
Let me know if this is something you can do!
Ivan E.
0% (0)Projects Completed
-
Freelancers worked with
-
Projects awarded
0%
Last project
18 Aug 2026
Australia
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies