Thread:Project:Support desk/iSC Dev BP Wiki - problem: picture & thumb/reply (21)

I typed the same like this:

$wgEnableUploads = true; $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php"; if ( $wgUseSharedUploads ) { if ( $wgSharedUploadDBname ) { $wgForeignFileRepos[] = array(     'class' => 'ForeignDBRepo',      'name' => 'shared',      'directory' => $wgSharedUploadDirectory,      'url' => $wgSharedUploadPath,      'hashLevels' => $wgHashedSharedUploadDirectory ? 2 : 0,      'thumbScriptUrl' => $wgSharedThumbnailScriptPath,      'transformVia404' => !$wgGenerateThumbnailOnParse,      'dbType' => $wgDBtype,      'dbServer' => myDBserver,      'dbUser' => myDBusername,      'dbPassword' => myDBpassword,      'dbName' => $wgSharedUploadDBname,      'dbFlags' => ($wgDebugDumpSql ? DBO_DEBUG : 0) | DBO_DEFAULT,     'tablePrefix' => $wgSharedUploadDBprefix,      'hasSharedCache' => $wgCacheSharedUploads,      'descBaseUrl' => $wgRepositoryBaseUrl,      'fetchDescription' => $wgFetchCommonsDescriptions,    ); } else { $wgForeignFileRepos[] = array(      'class' => 'FSRepo',      'name' => 'shared',      'directory' => $wgSharedUploadDirectory,      'url' => $wgSharedUploadPath,      'hashLevels' => $wgHashedSharedUploadDirectory ? 2 : 0,      'thumbScriptUrl' => $wgSharedThumbnailScriptPath,      'transformVia404' => !$wgGenerateThumbnailOnParse,      'descBaseUrl' => $wgRepositoryBaseUrl,      'fetchDescription' => $wgFetchCommonsDescriptions,    ); } } $wgForeignFileRepos[] = array(  'class'                   => 'ForeignAPIRepo',   'name'                    => 'shared',   'apibase'                 => 'http://commons.wikimedia.org/w/api.php',   'fetchDescription'        => true, // Optional   'descriptionCacheExpiry'  => 43200, // 12 hours, optional (values are seconds)   'apiThumbCacheExpiry'     => 43200, // 12 hours, optional, but required for local thumb caching ); $wgForeignFileRepos[] = array(   'class' => 'ForeignDBRepo',    'name' => 'otherwiki',    'url' => "http://pool.suriyaakudo.bplaced.net/images",    'directory' => 'http://pool.suriyaakudo.bplaced.net/images',    'hashLevels' => 2, // This must be the same for the other family member    'dbType' => $wgDBtype,    'dbServer' => $wgDBserver,    'dbUser' => $wgDBuser,    'dbPassword' => $wgDBpassword,    'dbFlags' => DBO_DEFAULT,    'dbName' => 'mydb',    'tablePrefix' => 'mw_',    'hasSharedCache' => false,    'descBaseUrl' => 'http://pool.suriyaakudo.bplaced.net/Image:',    'fetchDescription' => true ); $wgDebugLogFile = "$IP/temp/wikidebug.log"; $wgShowDBErrorBacktrace = true; $wgShowSQLErrors = true; $wgDebugDumpSql = true; $wgShowDBErrorBacktrace = true; $wgFileExtensions[] = 'doc'; $wgFileExtensions[] = 'xls'; $wgFileExtensions[] = 'pdf'; $wgFileExtensions[] = 'mpp'; $wgFileExtensions[] = 'odt'; $wgFileExtensions[] = 'ods'; $wgFileExtensions[] = 'svg';
 * 1) Uploads
 * 2) To enable image uploads, make sure the 'images' directory
 * 3) is writable, then set this to true:
 * 1) Add new types to the existing list from DefaultSettings.php