Customizing SMF > Modifications and Packages
Custom Form Mod
Taglar Dreskk:
Has anyone looked into replacing the built-in captcha (image verification) for guest posting? I tried to fill out a form as a guest on my own site and it took me like 8 tries on the captcha because most images are just so unreadable. I realize this is to keep bots from reading the letters...but damn! I'm only 30 years old and felt like I needed reading glasses!
Also, I am also in favor of seeing an option to allow the upload of images through the form. We run a site that uses a membership form that collects data and images of a costume made by the person for approval. We're currently doing it through a form that emails the data...but if it could be posted straight to the forum with this mod it would be AMAZING.
DBAllTerrain:
I'd like all topics posted using my custom forms to automatically have the 'notify' option set so the poster receives an email on replies. Is this possible?
DBAllTerrain:
Solved my own problem. For others...
In the CustomForm.php file, after the following line:
--- Code: --- createPost($msgOptions, $topicOptions, $posterOptions);
--- End code ---
I added this:
--- Code: --- if (isset($topicOptions['id'])) {
$topic = $topicOptions['id'];
$smcFunc['db_insert']('ignore',
'{db_prefix}log_notify',
array('id_member' => 'int', 'id_topic' => 'int', 'id_board' => 'int'),
array($user_info['id'], $topic, 0),
array('id_member', 'id_topic', 'id_board')
);
}
--- End code ---
Seems to work.
FragaCampos:
Thanks for sharing, DBAllTerrain.
PsYc0TiC:
any way to make this be able to upload attachments as well? I want this for submitting cheaters on my game servers
Thanks in advance
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version