Author

Topic: how does posting work here (technical details)? (Read 885 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
October 01, 2015, 10:12:00 PM
#5
http://www.simplemachines.org/community/index.php?topic=453008.0 updated with http://wiki.simplemachines.org/smf/SMF_API should help. Both link to further documentation on SM's API which is at least a start for bitcointalk which is a semi-custom SMF implementation.

bitcointalk.org is SMF 1.x. That's not going to work.

submitThisOnce doesn't make the post. Just send an HTTP POST in the same way that the form does. Note that you need to pass a valid session key as "sc" (which the form does via a hidden ).
Thanks. I will try that.
administrator
Activity: 5222
Merit: 13032
http://www.simplemachines.org/community/index.php?topic=453008.0 updated with http://wiki.simplemachines.org/smf/SMF_API should help. Both link to further documentation on SM's API which is at least a start for bitcointalk which is a semi-custom SMF implementation.

bitcointalk.org is SMF 1.x. That's not going to work.

submitThisOnce doesn't make the post. Just send an HTTP POST in the same way that the form does. Note that you need to pass a valid session key as "sc" (which the form does via a hidden ).
legendary
Activity: 1666
Merit: 1185
dogiecoin.com
http://www.simplemachines.org/community/index.php?topic=453008.0 updated with http://wiki.simplemachines.org/smf/SMF_API should help. Both link to further documentation on SM's API which is at least a start for bitcointalk which is a semi-custom SMF implementation.
staff
Activity: 3458
Merit: 6793
Just writing some code
bump
staff
Activity: 3458
Merit: 6793
Just writing some code
I am writing an android app for this forum (thread: https://bitcointalksearch.org/topic/ann-bitcointalk-android-app-1195830) and part of the app is actually creating and editing posts. Since bitcointalk doesn't have any api that I can use for posting, the app must scrape the forum pages and send the proper requests in order to do anything. However, I can't seem to figure out how the actual posting mechanism works. I have looked at page source, and I found that clicking the post button submits the form for the post and it has an attribute
Code:
onclick="return submitThisOnce(this)"
which I think is the function that actually does the posting. But my problem is that I can't actually figure out what that is doing, and thus I can't figure out what my app should be doing in order to submit a post.
Jump to: