mChat add message

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
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
deejay_xb
Member
Member
Posts: 87
Joined: 03 Apr 2011, 06:29

Re: mChat add message

Postby deejay_xb » 27 Jan 2015, 10:30

do i need to send also some session id?
like mchat.php?sid=dsahfkah114143mhaafa&mode=add&......

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.

Re: mChat add message

Postby tumba25 » 27 Jan 2015, 15:51


deejay_xb
Member
Member
Posts: 87
Joined: 03 Apr 2011, 06:29

Re: mChat add message

Postby deejay_xb » 27 Jan 2015, 21:55

doesnt work..
when posting message it says that i'm not logged in, but i am..

@rich - can you please help? :D
why mchat says i'm not logged in but i am logged in in phpbb? how to post message without using cookies? with sid (from users_table) it does not work..

deejay_xb
Member
Member
Posts: 87
Joined: 03 Apr 2011, 06:29

Re: mChat add message

Postby deejay_xb » 28 Jan 2015, 00:43

nevermid my previous messages i've succeded in postin mchat message from outside :D

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.

Re: mChat add message

Postby tumba25 » 28 Jan 2015, 11:14

Great. Want to share the needed info?

deejay_xb
Member
Member
Posts: 87
Joined: 03 Apr 2011, 06:29

Re: mChat add message

Postby deejay_xb » 28 Jan 2015, 11:45

the problem was curl related, and mchat post link is like this:
mchat.php?sid=usersessionid&mode=add&the rest of variables autogenerated like time form_token..

so i made a custom login.php that returns in json format all the variables i need when i login, then with that variables i make the post url and send to mchat. that's all and it works.

do you need any more info?

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.

Re: mChat add message

Postby tumba25 » 28 Jan 2015, 14:35


deejay_xb
Member
Member
Posts: 87
Joined: 03 Apr 2011, 06:29

Re: mChat add message

Postby deejay_xb » 28 Jan 2015, 15:38


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: mChat add message

Postby RMcGirr83 » 29 Jan 2015, 15:30

Rich will not be making an API for a mod that isn't going to get ported to 3.1.

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.

Re: mChat add message

Postby tumba25 » 30 Jan 2015, 15:44


deejay_xb
Member
Member
Posts: 87
Joined: 03 Apr 2011, 06:29

Re: mChat add message

Postby deejay_xb » 30 Jan 2015, 17:23

the app will be available on google play when it will be ready.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Modders MOD support”

Who is online

Users browsing this forum: Google [Bot], Yandex [Bot] and 2 guests