rusEfi social network

It's all about the code!
Post Reply
User avatar
AndreyB
Site Admin
Posts: 14325
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

rusEfi social network

Post 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?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14325
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: rusEfi social network

Post by AndreyB »

Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
andreika
donator
donator
Posts: 461
Joined: Mon Feb 13, 2017 2:35 pm
Location: Kiev

Re: rusEfi social network

Post 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-)
User avatar
AndreyB
Site Admin
Posts: 14325
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: rusEfi social network

Post 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...
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Post Reply