Skip to Content Skip to Menu

Syncing Users through CRON

  • wolfcreek
  • wolfcreek
  • OFFLINE
  • Posts: 12
  • Thanks: 0
  • Karma: 0
18 years 5 months ago #16480 by wolfcreek
Syncing Users through CRON was created by wolfcreek
I'm trying to make it so that I can use an external payment system with CB, but in order to do that, I have to be able to sync the main users DB with CB's. I have successfully gotten the sync, but I'm not having any luck with getting things like join date and some of the other details to sync.

Here is the CRON script I've enacted, can anyone suggest more to build a complete CB profile? I'd appreciate it.

[code:1]<?php

// connect and select a database
$link = mysql_connect("localhost", "user", "pw"«»)
or die ("Couldn't connect"«»);

$db = "tsed";
mysql_select_db($db) or die("Could not select the database '" . $db
. "'. Are you sure it exists?"«»);

// perform the first SQL query
$query = "INSERT IGNORE INTO mjos_comprofiler(id,user_id) SELECT
id,id
FROM mjos_users";
$result = mysql_query($query) or die("Query failed"«»);


// perform the second SQL query
$query = "SELECT c.id FROM mjos_comprofiler c LEFT JOIN mjos_users u
ON
u.id = c.id WHERE u.id IS NULL";
$result = mysql_query($query) or die("Query failed"«»);

// close the connection
mysql_close($link);

?>[/code:1]

I'm getting a successful link of usernames, but am not getting any other details. Can someone suggest some other options?

Wolf.

Please Log in or Create an account to join the conversation.

17 years 7 months ago #36100 by mikeclarke
Replied by mikeclarke on topic Re:Syncing Users through CRON
There will never be an answer for this, because it's for sale here! $50us

www.elearningforce.biz/administration/synchronizeusers-cb.html

It's probley a very simple this. Can anyone help me save the $50 bucks?

Thanks, Mike

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum