[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 258: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 320: mysqli_free_result(): Couldn't fetch mysqli_result
rusefi.com • rusEfi social network
Page 1 of 1

rusEfi social network

Posted: Tue Apr 18, 2017 12:09 am
by AndreyB
With all these "let's look at your logs" and "please share your tune" I am thinking that rusEfi console should allow one to upload logs and tune - and we need a page where one's logs and tunes would be available.

To make things easier I am thinking to use existing forum username/password for authentication, I guess in the beginning I am looking to hack some custom code into existing phpbb codebase. Next step is for me to learn some PHP :)

Any PHP developers looking to contribute?

Re: rusEfi social network

Posted: Tue Apr 18, 2017 12:24 am
by AndreyB

Re: rusEfi social network

Posted: Tue Apr 18, 2017 6:55 am
by andreika
Consider using existing Tapatalk API (this "mobiquo mod" is already installed in this phpbb3!).
It uses XML-RPC for communication protocol: https://tapatalk.com/api.php
And several java implementations already exist: https://github.com/francescomuia/tapatalk-api
This particular project doesn't have "new_topic", but you can add it, I guess:

Code: Select all

// see TopicService.java 
public class TopicService extends TapatalkBaseService
{
//...
	public void newTopic(.........) throws TapatalkApiException
	{
		this.invokeFuntion(TopicFunction.NEW_TOPIC, .........);
	}
}
Then, you could add something like this to your rusEFIconsole java code:

Code: Select all

TapatalkServices ts = new TapatalkServices(urlOfOurRusEfiForum);
ts.getUserService().login(loginName, password);
String[] ids = ts.getForumService().getIdByUrl(forumUrl);
ts.getTopicServices().newTopic(.......);
It requires "(String forum_id, byte [] subject, byte [] text_body, String prefix_id, ..........)"
See the description of all these fields: https://tapatalk.com/api/api_section.php?id=3#new_topic
There's also "reply_post", etc.
You just need to study those xml field names - and voila!

So, what I'm trying to say is that there's no need to write your own php code - it's already there! 8-)

Re: rusEfi social network

Posted: Wed Apr 19, 2017 9:24 pm
by AndreyB
Oh, that's actually a great idea. Originally I was thinking to go with completely custom tables but as a simpler solution we can begin by programmatially posting logs or tune as attachments into either normal threads or special auto-updated threads...