ok i'm uploading it and i will get you result, BTW how do i resync members? do ihave to delete them all using phpmyadmin (except admin) and resync but also sync button is disabled no?
EDIT: the button isn't disabled syncing now..
« Last Edit: April 30, 2005, 03:38:19 AM by Gandalf »
I apologise man, i didn't notice that files permission was screwed up and ftp failed to upload the patch, so far so good, i actually see now 72 pages out of 81 (50 user each page) so still some members missing
quoting also works great!!!
man can i know what was the problem with users since they was successfully transfered why they didn't appear???
they were suppose to be inserted to 3 mambo tables. I didn't realize that it was not executed in mos_core_acl_aro and group_id_aro_id_groups_aro_map tables.
ok guys i already fixed mine by a simple dirty script (manually) it's already sync and i have all users in usermanager now, here i attach the script (fill in the first values of the script)
P.S: don't look at the code it's dirty 5 minutes job so a lot of useless maybe there's a better way also in it but it just do the trick)
P.P.S:this script will not touch SMF database, it suppose that you have already done the sync using the bridge, also don't forget to make a backup of the whole database just in case..
$missing = array(); $mos_users_temp=array(); $mos_users=array(); $mos_core_acl_aro_temp=array(); $mos_core_acl_aro=array(); $handle=mysql_connect("localhost","$username","$password"); mysql_select_db("$database"); $result = mysql_query("SELECT id FROM {$mos_prefix}users"); while ($mos_users_temp[] = mysql_fetch_assoc($result)){ $mos_users[] = $mos_users_temp[count($mos_users_temp) - 1]['id']; }
$result=mysql_query("SELECT value FROM {$mos_prefix}core_acl_aro"); while($mos_core_acl_aro_temp[] = mysql_fetch_assoc($result)){ $mos_core_acl_aro[] = $mos_core_acl_aro_temp[count($mos_core_acl_aro_temp) - 1]['value']; }
foreach ($mos_users as $value) { if(!in_array($value,$mos_core_acl_aro)) $missing[]=$value; }
/*print_r($missing); print_r($mos_users); print_r($mos_core_acl_aro);*/ foreach($missing as $value) { $result=mysql_query("SELECT name FROM {$mos_prefix}users WHERE id=$value"); $name=mysql_fetch_assoc($result); $result=mysql_query("INSERT into {$mos_prefix}core_acl_aro (value, name) VALUES ($value,'$name[name]')"); }
$aro_id_temp=array(); $aro_id=array(); $aro_id_temp2=array(); $aro_id2=array(); $missing=array(); $result=mysql_query("SELECT aro_id FROM {$mos_prefix}core_acl_aro"); while ($aro_id_temp[] = mysql_fetch_assoc($result)){ $aro_id[] = $aro_id_temp[count($aro_id_temp) - 1]['aro_id']; }
$result=mysql_query("SELECT aro_id FROM {$mos_prefix}core_acl_groups_aro_map"); while ($aro_id_temp2[] = mysql_fetch_assoc($result)){ $aro_id2[] = $aro_id_temp2[count($aro_id_temp2) - 1]['aro_id']; }
foreach ($aro_id as $value) { if(!in_array($value,$aro_id2)) $missing[]=$value; }
foreach($missing as $value) { $result=mysql_query("INSERT into mos_core_acl_groups_aro_map (group_id, aro_id) VALUES (18,$value)"); }
is it already there( i mean the fixed one, because i'm trying to find out now why the modify doesn't work by installing fresh install of both mambo + SMF
man please before going with final release, verify that no problems with statistics as i describe it [ur=http://www.mambohacks.com/component/option,com_smf/Itemid,66/expv,2/topic,205.0]here[/url]
Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved. Terms of Use