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
User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: mChat add message

Postby tumba25 » 20 Jan 2015, 09:05

Ok, great. I'll set up a test site. phpBB 3.0 or 3.1?

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

Re: mChat add message

Postby deejay_xb » 20 Jan 2015, 09:14

phpbb 3.0.12 :D

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

Re: mChat add message

Postby tumba25 » 23 Jan 2015, 17:58


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

Re: mChat add message

Postby deejay_xb » 24 Jan 2015, 10:36

ty, but i need to find how the autogenerate form_token is made..
maybe rich can help?

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

Re: mChat add message

Postby tumba25 » 24 Jan 2015, 13:23


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[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

Re: mChat add message

Postby RMcGirr83 » 24 Jan 2015, 14:06

The form token is generated within the includes/functions.php file within the add_form_key function which is done within mchat.php file via

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

Re: mChat add message

Postby deejay_xb » 24 Jan 2015, 16:46


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

Re: mChat add message

Postby tumba25 » 25 Jan 2015, 10:14


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

Re: mChat add message

Postby tumba25 » 25 Jan 2015, 11:48


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

Re: mChat add message

Postby tumba25 » 25 Jan 2015, 12:52

@RMcGirr83: Do you have a non mini version of mchat_ajax_mini.js?

@deejay_xb: You really need to get the form token and form created time from mChat. The best would have been a API, but since the author didn't think about that you need to scrape it from the site.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[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

Re: mChat add message

Postby RMcGirr83 » 25 Jan 2015, 13:24


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

Re: mChat add message

Postby tumba25 » 25 Jan 2015, 14:25


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

Re: mChat add message

Postby deejay_xb » 25 Jan 2015, 15:40


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[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

Re: mChat add message

Postby RMcGirr83 » 25 Jan 2015, 20:02

The code you posted doesn't look anything like what tumba25 posted. Well it does but it isn't correct. Use what tumba25 posted.

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

Re: mChat add message

Postby deejay_xb » 27 Jan 2015, 07:02



[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] and 22 guests