Although dedecms comes with a message board plug-in, that function is really not very good, and there is also a message board that is not very suitable for corporate websites. Below, the great god will make a message board suitable for enterprises for everyone, without plug-ins.
1. Go to the backend core-> Channel Model-> Custom Forms-> Add new custom forms
2. Click to add a new custom form and enter
Diyid: Just default
Custom form name: Name it according to your own needs, such as suggestions and messages.
Data table: Default is fine
List template, content template, release template.
Front desk lists and content pages are public?: Select publicly reviewed ones.
Then click Add Field
the third step
Just add the field name and the prompt text as you add it
the fourth
Then in diy.php in plus in the root directory
$query = “INSERT INTO `{$diy->table}` (`id`, `ifcheck` $addvar) VALUES (NULL, 0 $addvalue); “;
if($dsql->ExecuteNoneQuery($query))
{
$id = $dsql->GetLastID();
if($diy->public == 2)
{
//diy.php? action=view&diyid={$diy->diyid}&id=$id
$goto = “diy.php? action=list&diyid={$diy->diyid}”;
$bkmsg ='Published successfully, now turn to the form list page...';
}
Add email verification above
if (! eregi(“^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+ [a-z]{2,3}$”,$email)) {
showMsg ('Please fill in the correct E-Mail address!',‘-1’);
exit();
}
Step 5 Let's test it now. First of all, let's enter a random
Then click Preview on Front Desk and click Post Information
The results suggest this.
Enter the correct one and see the effect
Some friends below may ask. Then where should I read the information I submitted? Don't rush.Jinan GodLet me tell you back to Custom Form-> Then click the name below Custom Form Customize Form 1
Dear, this is what we just submitted. The tutorial is over. There are also friends who don't understand who can communicate online. My qq is on the front page of the website.
Finally, post the mobile phone verification code
if(!eregi("^13[0-9]{9}|15[0-9]{9}$",$telphone))
{
showMsg('手机号码不对,请正确填写', '-1');
exit();
}