I'm trying to make an android app that connects to mchat, displays messages and user can post message after login.
I can get the messages from mchat but for posting the link is something like this:
/mchat.php?mode=add&message=testtestest&addbbcode20=100&addbbcode_custom=%23&creation_time=1421350220&form_token=cc82asdadsa122141faac5c4493aa220fe57
as i've seen the creation_time is unix current time and the form_token is somehow generated at each message.
If so how can i generate that form_token, what is it based of, sessionid+time, or what?
if i am wrong then please tell me if there is some solution to post message in mchat from outside..
mChat add message
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
- tumba25
- Past Contributor
- Posts: 1058
- Joined: 24 Oct 2007, 13:10
- Real name: Jari Kanerva
- Location: Kokkola, Finland.
- Contact:
Re: mChat add message
You have to look in the mChat sources or the page source of a site running mChat for that value. You are looking for something like .
- tumba25
- Past Contributor
- Posts: 1058
- Joined: 24 Oct 2007, 13:10
- Real name: Jari Kanerva
- Location: Kokkola, Finland.
- Contact:
Re: mChat add message
don't exist. It is . Unless you create it and ship it with your app. And those values are not returned by default, you need to query for them when you have a user id and a session id.
- tumba25
- Past Contributor
- Posts: 1058
- Joined: 24 Oct 2007, 13:10
- Real name: Jari Kanerva
- Location: Kokkola, Finland.
- Contact:
Re: mChat add message
If is a custom made file for your board you can have it return what you want. I would suggest returning a json encoded array.
- tumba25
- Past Contributor
- Posts: 1058
- Joined: 24 Oct 2007, 13:10
- Real name: Jari Kanerva
- Location: Kokkola, Finland.
- Contact:
Re: mChat add message
might differ?
I had a quick look in mChat files and could not find any form name there only form id. That is not the same thing. Maybe try to leave that empty?
I had a quick look in mChat files and could not find any form name there only form id. That is not the same thing. Maybe try to leave that empty?
Re: mChat add message
time() is the same, i've used the time() from the mchat autogenerated url
also i put form_name empty but also got different sha1..
also i put form_name empty but also got different sha1..
- tumba25
- Past Contributor
- Posts: 1058
- Joined: 24 Oct 2007, 13:10
- Real name: Jari Kanerva
- Location: Kokkola, Finland.
- Contact:
Re: mChat add message
I should probably install mChat somewhere here.
Re: mChat add message
cool, then we can make some tests also here
Re: mChat add message
IF the app will work then it will be a free app.
for now to start and develop the app i need to figure out how to make the generated add mchat link..
for now to start and develop the app i need to figure out how to make the generated add mchat link..
Return to “Modders MOD support”
Who is online
Users browsing this forum: No registered users and 26 guests