Hi my forum url is :
http://uniqueminds.in
I have several sections in it. In that i have Jobs posting section, here how can i post a new thread with inputing data from a form as in below image
I would appreciate any knowledgeable responses.
Thanks
Try
xThreads. You can create such a feature, and there is a tutorial
here.
(2012-08-09, 07:36 AM)Seabody Wrote: [ -> ]Try xThreads. You can create such a feature, and there is a tutorial here.
Thanks for your reply, xthread seems good for me, but can you guys suggest me is there any other similar mods or any tutorials for this.
I guess Nickman (mybbsource.com) has a similar plugin.
I have something that you'd might be glad for.
First of all, take time downloading this script (
http://phpdave.com/MyBBIntegrator/), it'll make your ideas way simplier.
Lets say you had a html form with form inputs named "company_name", "jobtitle_position" and so on..
Then your post variables would be named the same, see my code below:
<?php
define('IN_MYBB', NULL);
global $mybb, $lang, $query, $db, $cache, $plugins, $displaygroupfields;
require_once '/path/to/mybb/global.php';
require_once '/path/to/MyBBIntegrator.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);
$postmsg = 'Company Name: ', $_POST['company_name'], ' Job Title/Position: ', $_POST['jobtitle_position'], ';
$data = array(
'subject' => 'Requesting a Job',
'uid' => $MyBBI->mybb->user['uid'],
'username' => $MyBBI->mybb->user['username'],
'message' => $postmsg
);
$create = $MyBBI->createThread($data);
print_r($create);
?>
(2012-08-09, 10:10 PM)bowkilled Wrote: [ -> ]I have something that you'd might be glad for.
First of all, take time downloading this script (http://phpdave.com/MyBBIntegrator/), it'll make your ideas way simplier.
Lets say you had a html form with form inputs named "company_name", "jobtitle_position" and so on..
Then your post variables would be named the same, see my code below:
<?php
define('IN_MYBB', NULL);
global $mybb, $lang, $query, $db, $cache, $plugins, $displaygroupfields;
require_once '/path/to/mybb/global.php';
require_once '/path/to/MyBBIntegrator.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);
$postmsg = 'Company Name: ', $_POST['company_name'], ' Job Title/Position: ', $_POST['jobtitle_position'], ';
$data = array(
'subject' => 'Requesting a Job',
'uid' => $MyBBI->mybb->user['uid'],
'username' => $MyBBI->mybb->user['username'],
'message' => $postmsg
);
$create = $MyBBI->createThread($data);
print_r($create);
?>
Thanks bro, it has helped me a lot....