We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Sync users with another site | Forum

Andrea Verde
Andrea Verde Oct 22 '16
Hi,


I'm evaluating Oxwall for my next project. Here is my scenario: i'm working on a website (base on Processwire CMS) where users can register. Now, i would like to sync users between Processwire and Oxwall, but I can not do that manually using csv import. Is there a way to register a user to oxwall everytime he/she registers to Processwire. What could be the best solution for this problem?


Thanks

dave Leader
dave Oct 23 '16
Hi Andrea,  The short answer is no, well not without special programming to build a bridge between the two DB's.   I am not aware of any plugin or bridge at this time that would allow you to do that.  Also remember that doing that would also prevent them from accepting the TOS as well which is important.  
The Forum post is edited by dave Oct 23 '16
ross Team
ross Oct 24 '16
Topic was moved from General Questions.
Andrea Verde
Andrea Verde Oct 24 '16
Thanks @dave. Do you think that would be too complicated? I can work with php (i'm not a pro, but i can write some code)
dave Leader
dave Oct 24 '16
It really depends on what is in the data you have.  I have built bridges and converted data from one social site to another in the past, but not to oxwall (yet).  So im not sure what all would be required, there are always surprises. 


I dont think it would be that hard but again every time i do it i have found there to be little surprises that i didnt know or think about.  


Basically you would just have to build a query to take the old data and push it into a new query that would use the new table names and field names.  Remember there is more to this than just the user table. 


Probably the easiest way would be to have a temp DB set up with just the oxwall structure and no data. Then build a script to grab one record from the old DB, move the data into the new tables and field names (code wise) and then open the connection to the temp DB and store the data. Then export the data into a sql file and import it into the real Oxwall DB.  


Just do one record, that way if you need to tweek it or remove it then it will be easy to do.  Once you get the new record working on the real Oxwall DB then you can change your counter to grab 50 or so at a time. 


Another way is to add a user to Oxwall via registration, and then look thru the tables in the Oxwall DB and see where the data is for that user. Once you have that then you basically have the blueprint for what you need in your sql import. 


Hope that helps.   

Andrea Verde
Andrea Verde Oct 26 '16
Thanks @dave.

Ok, i'll try to break the thing in smaller problems.


I was thinking about sending a cUrl request from my site to oxwall. Is there a documentation about how to create a news user by code?


I found this http://www.ipragmatech.com/migrating-users-into-oxwall/

and there i see 


public function importUser( $username, $password, $email, $gender){    $joinStamp= mt_rand(1388552400,1420002000);    $user = new BOL_User();        if($gender == "female"){    $userAccountType = "8cc28eaddb382d7c6a94aeea9ec029fb";    }    elseif ($gender == "male"){    $userAccountType = "808aa8ca354f51c5a3868dad5298cd72";    }    else {    $userAccountType = "1301fca1a46f0bff7f21a3ffa0db3aad";    }    $user->username = trim($username);    $user->password = BOL_UserService::getInstance()->hashPassword($password);    $user->email = trim($email);    $user->joinStamp = $joinStamp;    $user->activityStamp = time();    $user->accountType = $userAccountType;    $user->joinIp = ip2long(OW::getRequest()->getRemoteAddress());        $this->saveOrUpdate($user);        BOL_AuthorizationService::getInstance()->assignDefaultRoleToUser($user->id);        return $user;    }


is that valid code? Is there documentation about that?


Thanks again for your support

dave Leader
dave Oct 26 '16
Im not aware of any documentation.  But there seems to be something missing in that code, looks like its not all there.  And im not sure if i would trust those account types just yet.  Make sure they are accurate first.  In no time that post will be 2 years old so i would check it closely first. 
The Forum post is edited by dave Oct 26 '16
Jami
Jami Aug 11 '23
we'll explore the capacity of a typical 4-person tent and provide some insights to help you make the most of your camping experience.A 4-person tent is designed to accommodate four individuals, as the name suggests. However, it's worth noting that the advertised capacity of a tent doesn't always mean optimal comfort. best site
Akshat Diwan
Akshat Diwan Aug 12 '23
The independent escorts in Delhi follow their job well and deliver standard services. It means you will get highly appreciable services from our beauties. Our Call Girls in Delhi won’t compromise on service quality and the satisfaction of clients.
Heena
Heena Aug 16 '23
 You need to allow the service provider know and they'll be helping you to choose the ideal Call Girls in Aerocity for you. Female escorts in Aerocity will be certain that their customer enjoys their moment.
Heena
Heena Aug 21 '23
Andheri Escorts are partners, that is true. You'll have a wonderful time with them, you can go out for a candlelight dinner together Andheri Call Girls or you can go out for a short or long trip together.
basit55
basit55 Aug 24 '23
I was reading your article and wondered if you had considered creating an ebook on this subject. Your writing would sell it fast. You have a lot of writing talent. تأشيرة عمل تركيا
basit55
basit55 Aug 27 '23
hank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information. Likes
basit55
basit55 Aug 28 '23
I’ve been surfing online more than 5 hours today, yet I never found any interesting article like yours without a doubt. It’s pretty worth enough for me. Thanks... INDIAN VISA FOR DOMINICA CITIZENS
Carolyn Wenzz
Carolyn Wenzz Aug 29 '23
Absolutely, you can streamline the user registration process between ProcessWire and Oxwall by implementing an automated synchronization solution. This will save you time and effort while ensuring seamless user registration across both platforms. Here's a step-by-step approach to achieve this: 

1. Utilize APIs: Both ProcessWire and Oxwall might offer APIs (Application Programming Interfaces) that allow you to interact with their systems programmatically. Look into the documentation of both platforms to find out if they offer APIs for user management. 

2. Webhooks or Triggers: You can set up webhooks or triggers in ProcessWire that are triggered whenever a user registers. These webhooks can then send a request to Oxwall's API to create a corresponding user account on their platform. This would automate the registration process between the two systems.

basit55
basit55 Aug 29 '23
We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. CANADA VISA FROM BULGARIA
basit55
basit55 Aug 29 '23
I found this is an informative and interesting post so i think so it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this article. guía turística de lugares imprescindibles en toronto
basit55
basit55 Aug 30 '23
Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon.  voyance par telephone
basit55
basit55 Sep 1 '23
Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. VISA CHO ẤN ĐỘ
basit55
basit55 Sep 2 '23
I am continually amazed by the amount of information available on this subject. What you presented was well researched and well worded in order to get your stand on this across to all your readers. AOTEAROA VISA
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 »