2010-05-09, 10:58 AM
Auto Post Button
that's an autopost button, you can add posts on the selected thread
this is the code:
example:
topic:
codice:
this code will become a button called "AutoPost Button" and it will add a post with this title "Prova AutoPost" and this text "Prova Autopost" in the topic "14"
Code made by me... peera.
______________________
Auto Thread Button
this is the same as the auto post button, but it will create a thread in a forum
axample:
i will create an auto thread button for this section
the code will be this:
Peera ^^
that's an autopost button, you can add posts on the selected thread
this is the code:
Quote:<form method="post" action="newreply.php?tid=Topic Id&processed=1" name="quick_reply_form" id="quick_reply_form">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="hidden" name="subject" value="Post Title" />
<input type="hidden" name="action" value="do_newreply" />
<input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
<input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
<input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
<input type="hidden" name="from_page" value="{$page}" />
<input type="hidden" name="tid" value="Topic ID" />
<input type="hidden" name="method" value="quickreply" />
<input type="hidden" name="message" value="Post Text" />
<input type="submit" class="button" value="Button Text" tabindex="2" accesskey="s" id="quick_reply_submit"/>
</form>
example:
topic:
Quote:forum/showthread.php?tid=14
codice:
Quote:<form method="post" action="newreply.php?tid=14&processed=1" name="quick_reply_form" id="quick_reply_form">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="hidden" name="subject" value="Autopost Test" />
<input type="hidden" name="action" value="do_newreply" />
<input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
<input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
<input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
<input type="hidden" name="from_page" value="{$page}" />
<input type="hidden" name="tid" value="14" />
<input type="hidden" name="method" value="quickreply" />
<input type="hidden" name="message" value="AutoPost Test" />
<input type="submit" class="button" value="AutoPost Button" tabindex="2" accesskey="s" id="quick_reply_submit"/>
</form>
this code will become a button called "AutoPost Button" and it will add a post with this title "Prova AutoPost" and this text "Prova Autopost" in the topic "14"
Code made by me... peera.
______________________
Auto Thread Button
this is the same as the auto post button, but it will create a thread in a forum
Quote:<form method="post" action="newthread.php?fid=ForumID&processed=1" name="quick_reply_form" id="quick_reply_form">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="hidden" name="subject" value="Thread Title" />
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
<input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
<input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
<input type="hidden" name="from_page" value="{$page}" />
<input type="hidden" name="tid" value="{$tid}" />
<input type="hidden" name="method" value="quickreply" />
<input type="hidden" name="message" value="Thread Text" />
<input type="submit" class="button" value="Button Text" tabindex="2" accesskey="s" id="quick_reply_submit"/>
</form>
axample:
i will create an auto thread button for this section
Quote:http://www.my.domine.com/forum/showthread.php?tid=2/
the code will be this:
Quote:<form method="post" action="newthread.php?fid=2&processed=1" name="quick_reply_form" id="quick_reply_form">ByeBye
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="hidden" name="subject" value="Thread Title" />
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
<input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
<input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
<input type="hidden" name="from_page" value="{$page}" />
<input type="hidden" name="tid" value="{$tid}" />
<input type="hidden" name="method" value="quickreply" />
<input type="hidden" name="message" value="Thread Text" />
<input type="submit" class="button" value="Button Text" tabindex="2" accesskey="s" id="quick_reply_submit"/>
</form>
Peera ^^