I notice in Arthur's very fine comment componnent he instals a mambot by using this code:
PHP Code:
# Copy Mambot to corresponding diretory
echo "Start copying AkoCommentBot to Mambot directory.<br />";
$botsrc = $mosConfig_absolute_path."/components/com_akocomment/akocommentbot.php";
$botdst = $mosConfig_absolute_path."/mambots/akocommentbot.php";
if (!@copy($botsrc, $botdst)) {
echo "<font color='red'>ERROR:</font> AkoCommentBot could not be copied. Please copy the bot by hand.<br />";
} else {
echo "<font color='green'>FINISHED:</font> AkoCommentBot has been copied to bot directory.<br />";
}
Does this work around the fact that you cannot install directly to the mambot sub directory?
Thanks for any help.