Home arrow Forum
Latest posts of: Gandalf
  Welcome, Guest. Please login or register.
December 03, 2008, 04:05:14 PM
Home New Posts Search Calendar


Login with username, password and session length
  Show Posts
Pages: 1 2 [3] 4 5 6
31  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: How do I integrate existing SMF Database ? on: May 01, 2005, 05:00:10 PM
your SMF database isn't the same as mambo database??? if not well import SMF tables into the database where mambo is, make the changes to Settings.php of SMF just to update database name and it will work!
32  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: Urgent Fix Available!!! on: April 30, 2005, 10:58:13 PM
Man please i need your help in this, i can't do it myself since i'm not that good with ob_ things
actually inside my post.template.php there's a part of the code like this (code that display the smilies)
Code:
echo '];
var smileyPopupWindow;

function moreSmileys()
{
var row, i;

if (smileyPopupWindow)
smileyPopupWindow.close();

smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\');
smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />\n\t</head>\');
smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');

for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'&quot;\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; \' + smileys[row][i][0] + \'&quot;, window.opener.document.', $context['post_form'], '.', $context['post_box_name'], '); window.focus(); return false;"><img src="', $settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a>\');
}
smileyPopupWindow.document.write("<br />");
}

smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\\">', $txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
smileyPopupWindow.document.close();
}
// --></script>';
}

when i open the sources of the page above i can only find
Code:
function moreSmileys()
{
var row, i;

if (smileyPopupWindow)
smileyPopupWindow.close();
all that code part are gone and of course with the //--> which makes all the HTML code a comments till the next //--> which is the one in the google ad at the bottom of the page, can you explain this??? is it possible Shocked
please man, it's the only thing that worries me till i get (finally) into SEF mode
33  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: error when sync ing user on: April 30, 2005, 10:42:16 PM
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]
34  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: Urgent Fix Available!!! on: April 30, 2005, 10:41:10 PM
hmmmMMM... i installed a fresh mambo/smf (using same themes) and it worked, i taked a closer lock to the sources i think something wrong inside one of the mods, i will debug it to see
35  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: error when sync ing user on: April 30, 2005, 10:19:37 PM
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
36  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: error when sync ing user on: April 30, 2005, 10:03:09 PM
no problem it's just a 5min job lol, i'm laughing when i see my code lol Cheesy
37  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: Urgent Fix Available!!! on: April 30, 2005, 03:07:41 PM
yes it is, the template is screwed up don't know the reason!
38  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: error when sync ing user on: April 30, 2005, 02:37:52 PM
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) Tongue Tongue

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..

Code:
<?
$username="";
$password="";
$database="";
$mos_prefix="";



$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)");
}

print "done";
?>

or just copy
http://www.siemens-mobiles.org/blablo.phps and rename it to whatver .php
39  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: error when sync ing user on: April 30, 2005, 01:11:11 PM
k then there's still a problem

mos_core_acl_aro :  3,838
mos_core_acl_groups_aro_map :  3,573
mos_users :  4,034
40  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Problem with SMF statistics on: April 30, 2005, 07:32:02 AM
there's a problem with SMF statistcis, neither posts counting nor topic counting nor daily hits are counted anymore!!
41  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: Urgent Fix Available!!! on: April 30, 2005, 04:43:33 AM
Great man, so far so good except one new problem using SEF, it's when trying to modify a message, look at the attached image
42  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: error when sync ing user on: April 30, 2005, 04:33:06 AM
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???
43  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: error when sync ing user on: April 30, 2005, 03:54:20 AM
hmmmmmmm.. still in the same situation, neither usermanager neither quoting works Shocked
44  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: error when sync ing user on: April 30, 2005, 03:43:28 AM
nope i still have 10 pages out of 81 Cry
what i've done, uploaded the new patch, "click to sync"

quoting still doesn't work for me Cry

EDIT: ok since you answered yes, i will delete all users from phpmyadmin
45  MamboHacks.com / Mambo-SMF Forum 1.3.0 Support / Re: error when sync ing user on: April 30, 2005, 03:35:26 AM
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..
Pages: 1 2 [3] 4 5 6


Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE