Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating new thread with a form?
#1
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

[Image: formimg.png]


I would appreciate any knowledgeable responses.

Thanks
[Image: uniqueminds.png]
Reply
#2
Try xThreads. You can create such a feature, and there is a tutorial here.
Please don't PM me for support. Smile
Reply
#3
(08-09-2012, 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.
[Image: uniqueminds.png]
Reply
#4
This user has been denied support. This user has been denied support.
I guess Nickman (mybbsource.com) has a similar plugin.
Reply
#5
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);
?>
Give me reputation if you find my replies helpful

MODx, I'd recommend you to use it, you'll save time in your development.
Reply
#6
(08-09-2012, 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....
[Image: uniqueminds.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)