Jump to content

PHPBB Auto poster help


bharan_n

Recommended Posts

I am trying to develop a phpbb forum auto poster.

 

I am able to login but i can't post the content and submit into the phpbb forum.

 

If anyone has any idea or done a phpbb posting.Please post your suggestions here.

 

What are the post fields required while posting to phpbb new topic other than message,subject ,mode.

 

If you know any info please post here.

 

Below is the code which i tried to use.

 

I am definetly making some mistake here.

 

$post_fields1 = array(

            'mode'     => 'post',

            'f'     => $forum_id,

'message'     => $message,

'subject'     => $subject,

'disable_bbcode'    => 0,

'disable_smilies'    => 0,

'attach_sig'     => 1,

'topic_type'        => 0,

            'topic_time_limit'  => 0,

            'creation_time'      => 1241549667,

            'lastclick'          => 1241549667,

            'form_token'        => $form_taken,

            'poll_title'        => '',

            'poll_max_options'  => 1,

            'poll_length'        => 1,

            'sid'                => $sid2[0],

            'post'              => 'Submit'

           

);

 

// $form_taken  and sid i tried to get them from the site and tried to post them

$ch1 = curl_init();

curl_setopt($ch1, CURLOPT_URL,$lurl);

curl_setopt($ch1, CURLOPT_POST, 4);

curl_setopt($ch1, CURLOPT_POSTFIELDS, $post_fields1);

curl_setopt($ch1,CURLOPT_RETURNTRANSFER,1);

curl_setopt($ch1,CURLOPT_COOKIEFILE,"cookie6.txt");

$result1= curl_exec ($ch1);

curl_close ($ch1);

Link to comment
https://forums.phpfreaks.com/topic/157073-phpbb-auto-poster-help/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.