bharan_n Posted May 6, 2009 Share Posted May 6, 2009 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); Quote Link to comment https://forums.phpfreaks.com/topic/157073-phpbb-auto-poster-help/ Share on other sites More sharing options...
pkchandra999 Posted May 16, 2009 Share Posted May 16, 2009 check the below thread for answers http://www.phpfreaks.com/forums/index.php/topic,248695.0.html Quote Link to comment https://forums.phpfreaks.com/topic/157073-phpbb-auto-poster-help/#findComment-835419 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.