| 
Welcome, Guest

Facebook Joomla works - Sync & Profile pro help
(1 viewing) (1) Guest

TOPIC: Facebook Joomla works - Sync & Profile pro help

Re:Facebook Joomla works - Sync & Profile pro help 2 years, 8 months ago #110861

www.GXI.co.za is new in the Joomla development game but we will be brining you many new free hacks, developments and designs shortly - This is just our first contribution, this and everything else to come will be posted on our website www.gxi.co.za (to see what we are working on you can view our Massive development project: www.noticeboardonline.com)

######## Solution 1: (Just cron job) ########

Example:

DB Username: username
DB Password: password
Database name: database
Host: cmysql5-1.host.com
Port: 3306
NB: change jos_ if you are using an alternative prefix e.g. joom_
Note: The info below goes into your “Command” line, you need to configure how often you want to run the cron job in the cron job settings while scheduling/setting up the cron job. For more info on setting up your cron job please contact your website host or go to our support forum: gxi.co.za/webmaster-forum.html

// SIMPLE:

Use this if your sql host is “localhost” (default in most cases)

mysql -uusername -ppassword database -e "INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users";

e.g (will run every hour):

* */1 * * * mysql -uusername -ppassword database -e "INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users";

// ADVANCED:

Use this if your sql host is not “localhost” and you need to enter a host address and port (cmysql5-1.host.com: 3306 etc)

mysql -uusername -ppassword -hcmysql5-1.host.com -P3306 database -e "INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users";

e.g (will run every hour):

* */1 * * * mysql -uusername -ppassword -hcmysql5-1.host.com -P3306 database -e "INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users";

--------------------------------------------------------------------------

######## Solution 2: (Cron job + File) ########

Create a PHP file somewhere with the following information (be sure to correct to your database settings), when you setup you crone job ensure you include the full path i.e.

* */1 * * * php /full/path/to/script.php

The PHP file must contain:

<?php

$server = 'localhost';
$username = 'mysql_username';
$password = 'mysql_password';
$database = 'mysql_database_name';

### connects to the database, or dies with error
$connection = mysql_connect($server,$username,$password);
if (!$connection)
{
die( mysql_error() );
}

### selects the db of choice, or dies with error
$db_selection = mysql_select_db($database, $connection);
if (!$db_selection)
{
die( mysql_error() );
}

### selects all tables in the db of choice, or dies with error
$alltables = mysql_query("SHOW TABLES") or die ( mysql_error() );

### loops through all of the tables and optimizes each, or dies with error
while ( $table = mysql_fetch_array($alltables) )
{
mysql_query("INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users") or die( mysql_error() );
}

### closes the mysql connection
mysql_close($connection);

?>

-------------------------------------------------------------------------------

Massive development project: www.noticeboardonline.com
GXI Solutions & Development: www.gxi.co.za

Post edited by: gxisolutions, at: 2009/09/11 19:05

Re:Facebook Joomla works - Sync & Profile pro help 2 years, 8 months ago #111559

  • Rammelbak
  • Rammelbak
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 7
  • Karma: -
Thx, i've tried the second solution works great!
CB Content 1.4
CB Gallery 1.2
CB GroupJive 2.5.1
CB Login 1.8
CB Online 1.8
CB PB Latest 1.2
CB Workflows 1.8

Re:Facebook Joomla works - Sync & Profile pro help 2 years, 8 months ago #111564

Rammelbak wrote:
Thx, i've tried the second solution works great!


It really works.

Post edited by: DeviantSmith, at: 2009/09/21 19:23

Re:Facebook Joomla works - Sync & Profile pro help 2 years, 8 months ago #112304

  • latino
  • latino
  • OFFLINE
  • Senior Boarder
    Senior Boarder
  • Posts: 46
  • Karma: 1
Hi:

Beat please update this. When a rc will be available or the final plugin?

Re:Facebook Joomla works - Sync & Profile pro help 2 years, 7 months ago #113841

  • pvh
  • pvh
  • OFFLINE
  • Senior Boarder
    Senior Boarder
  • Posts: 57
  • Karma: -
Can anyone point me to the spot where I can find the Facebook plugin (if it has been released, of course).

Re:Facebook Joomla works - Sync & Profile pro help 2 years, 7 months ago #114005

  • mamamia
  • mamamia
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 11
  • Karma: -
On Jul-10 Beat posted a message on this thread that said the Facebook plugin/integration with CB is "practically complete" and that it was being "reviewed for release soon". We are now more than 3 months past that posting. What happened? Where is the product? How much longer? Should we just go out and get something else like jConnector instead?

--mamamia
Time to create page: 0.92 seconds