Seite 2 von 4

Verfasst: 18.11.2004 23:05
von axel2004
Ok..

templates/subSilver sind im richtigen Ordner

admin sind im admin

attach_mod. Diesen habe ich im root angelegt und die dateien dort hinein kopiert.
includes das gleiche wie bei attach_mod

root ins root.

Stimmt da was nicht?

Verfasst: 18.11.2004 23:11
von Markus67
Hi ...

nein das sind 2 verschiedene Sachen ....

Schritt 1
Die Dateien im Ordner root müssen ebenfalls alle hochgeladen werden, das sind die die der Attachment MOD benötigt. Die sind alle neu und noch nicht vorhanden. Die ganzen Dateien müssen in die entsprechenden Verzeichnisse hochgeladen werden. Die Struktur ist ja vorgegeben ...
Dateien im admin-Ordner müssen in den admin-Ordner ... etc.

Schritt 2
Das sind die bereits voreditierten Datein damit du die ganzen Änderungen wie in der Installationsanleitung beschrieben nicht selbst machen musst.
die sind im Ordner contrib/phpbb_attach
Diese sind bereits auf deinem Webspace alle vorhanden.
Die musst du alle auch gem. der Ordnersturktur in die entsprechenden Verzeichnisse hochladen und die bereits vorhandenen überschreiben.
Also ... die Dateien im Ordner admin ... wieder nach admin hochladen und die vorhandenen überschreiben ...

verstanden ?

Markus

Verfasst: 18.11.2004 23:23
von axel2004
:D

Hab den Fehler. Die voreditierten Datein im Contrib Ordner sind die im phpbb_attach und die müssen in die entsprechenden Ordner im root. da lag der Fehler. Ich hatte verstanden man soll einen Contrib Ordner im Root anlegen und diese Dateien dann dort hinein.

Nun klappt alles und auch im Admin ist alles auf deutsch.

Meine Respekt für Dich und deine Arbeit hier im Board!!!!!!!!!


D A N K E

Verfasst: 19.11.2004 12:23
von powersilie
Hab Attachment Mod eingebaut, soweit alles ok, läuft auch, bloß im Admin-Bereich bekomme ich diese Fehlermeldung, wenn ich unter Attachments ins Kontrollzentrum gehe, dann kommt das:
SecureSSI: Das Script (/usr/export/www/hosting/bienemaus/admin/admin_attach_cp.php) hat versucht ausserhalb von ihrem Userverzeichniss auf die Datei ../files/.. zuzugreifen.
Dies ist nicht erlaubt!
Hab schon gesucht, aber Fehler nicht gefunden, bitte help!

Danke und lg
Karin

Verfasst: 19.11.2004 12:34
von Markus67
@powersilie

KB:open_basedir

Markus

Verfasst: 19.11.2004 13:22
von powersilie
Danke für den Hinweis!
Nur so richtig schlau werd ich nicht, ok, ich soll mich mit dem Host in verbindung setzen.
Aber kann man Safe Mod irgendwie umgehen?

Weil die Seite des Kontrollzentrums öffnet ja auch problemlos, nur über der Statistik erscheint halt diese Secure SSI-Fehlermeldung.

lg
Karin

Verfasst: 20.11.2004 18:45
von powersilie
Ich kann mein forum nicht mehr aufrufen, nachdem ich was korrigieren wollte. Bekomme folgende Fehlermeldung:
Fatal error: Cannot redeclare attach_faq_include() (previously declared in /usr/export/www/hosting/bienemaus/attach_mod/includes/functions_includes.php:31) in /usr/export/www/hosting/bienemaus/attach_mod/includes/functions_includes.php on line 31
wenn ich das Forum aufrufen will.

Hier ist noch die includes/functions_includes.php in verkürzter Form, weil ja angeblich in line 31 was nicht stimmt:
//
// These are functions called directly from phpBB2 Files
//

//
// Include the FAQ-File (faq.php)
//
function attach_faq_include($lang_file)
{
global $phpbb_root_path, $board_config, $phpEx, $faq, $attach_config;

if (intval($attach_config['disable_mod']))
{
return;
}

if ($lang_file == 'lang_faq')
{
if (!file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq_attach.'.$phpEx))
{
include($phpbb_root_path . 'language/lang_english/lang_faq_attach.'.$phpEx);
}
else
{
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq_attach.' . $phpEx);
}
}
}

//
// Setup Basic Authentication (auth.php)
//
function attach_setup_basic_auth($type, &$auth_fields, &$a_sql)
{
switch ($type)
{
case AUTH_ALL:
$a_sql .= ', a.auth_attachments, a.auth_download';
$auth_fields[] = 'auth_attachments';
$auth_fields[] = 'auth_download';
break;

case AUTH_ATTACH:
$a_sql = 'a.auth_attachments';
$auth_fields = array('auth_attachments');
break;

case AUTH_DOWNLOAD:
$a_sql = 'a.auth_download';
$auth_fields = array('auth_download');
break;

default:
break;
}
}

//
// Setup Forum Authentication (admin_forumauth.php)
//
function attach_setup_forum_auth(&$simple_auth_ary, &$forum_auth_fields, &$field_names)
{
global $lang;

//
// Add Attachment Auth
//
// Post Attachments
$simple_auth_ary[0][] = AUTH_MOD;
$simple_auth_ary[1][] = AUTH_MOD;
$simple_auth_ary[2][] = AUTH_MOD;
$simple_auth_ary[3][] = AUTH_MOD;
$simple_auth_ary[4][] = AUTH_MOD;
$simple_auth_ary[5][] = AUTH_MOD;
$simple_auth_ary[6][] = AUTH_MOD;

// Download Attachments
$simple_auth_ary[0][] = AUTH_ALL;
$simple_auth_ary[1][] = AUTH_ALL;
$simple_auth_ary[2][] = AUTH_REG;
$simple_auth_ary[3][] = AUTH_ACL;
$simple_auth_ary[4][] = AUTH_ACL;
$simple_auth_ary[5][] = AUTH_MOD;
$simple_auth_ary[6][] = AUTH_MOD;

$forum_auth_fields[] = 'auth_attachments';
$field_names['auth_attachments'] = $lang['Auth_attach'];

$forum_auth_fields[] = 'auth_download';
$field_names['auth_download'] = $lang['Auth_download'];
}

//
// Setup Usergroup Authentication (admin_ug_auth.php)
//
function attach_setup_usergroup_auth(&$forum_auth_fields, &$auth_field_match, &$field_names)
{
global $lang;

//
// Post Attachments
//
$forum_auth_fields[] = 'auth_attachments';
$auth_field_match['auth_attachments'] = AUTH_ATTACH;
$field_names['auth_attachments'] = $lang['Auth_attach'];

//
// Download Attachments
//
$forum_auth_fields[] = 'auth_download';
$auth_field_match['auth_download'] = AUTH_DOWNLOAD;
$field_names['auth_download'] = $lang['Auth_download'];
}

//
// Setup Viewtopic Authentication for f_access
//
function attach_setup_viewtopic_auth(&$order_sql, &$sql)
{
$order_sql = str_replace('f.auth_attachments', 'f.auth_attachments, f.auth_download, t.topic_attachment', $order_sql);
$sql = str_replace('f.auth_attachments', 'f.auth_attachments, f.auth_download, t.topic_attachment', $sql);
}

//
// Setup s_auth_can in viewforum and viewtopic
//
function attach_build_auth_levels($is_auth, &$s_auth_can)
{
global $lang, $attach_config, $phpEx, $forum_id;

if (intval($attach_config['disable_mod']))
{
return;
}

// If you want to have the rules window link within the forum view too, comment out the two lines, and comment the third line
// $rules_link = '(<a href="' . $phpbb_root_path . 'attach_rules.' . $phpEx . '?f=' . $forum_id . '" target="_blank">Rules</a>)';
// $s_auth_can .= ( ( $is_auth['auth_attachments'] ) ? $rules_link . ' ' . $lang['Rules_attach_can'] : $lang['Rules_attach_cannot'] ) . '<br />';
$s_auth_can .= (($is_auth['auth_attachments']) ? $lang['Rules_attach_can'] : $lang['Rules_attach_cannot'] ) . '<br />';

$s_auth_can .= (($is_auth['auth_download']) ? $lang['Rules_download_can'] : $lang['Rules_download_cannot'] ) . '<br />';
}

//
// Called from admin_users.php and admin_groups.php in order to process Quota Settings
//
function attachment_quota_settings($admin_mode, $submit = FALSE, $mode)
{
global $template, $db, $HTTP_POST_VARS, $HTTP_GET_VARS, $lang, $group_id, $lang, $phpbb_root_path, $phpEx, $attach_config;

include_once($phpbb_root_path . 'attach_mod/includes/constants.'.$phpEx);

if (!intval($attach_config['allow_ftp_upload']))
{
if ( ($attach_config['upload_dir'][0] == '/') || ( ($attach_config['upload_dir'][0] != '/') && ($attach_config['upload_dir'][1] == ':') ) )
{
$upload_dir = $attach_config['upload_dir'];
}
Bitte um Hilfe, Forum läuft nicht!

lg
Karin

Verfasst: 20.11.2004 18:50
von Markus67
Hi ...

überprüfe bitte nochmal die common.php ... dort müsste was falsch sein .... irgendwo musst was nach der Klammer eingebaut werden ....

Markus

Verfasst: 21.11.2004 10:46
von powersilie
Danke Markus :grin: ich kann das Forum wieder aufrufen, allerdings dürfte da mehr passiert sein, muß jetzt den ganzen Attachment Mod nochmals händisch überprüfen, da fehlen oft die Eingaben!
Aber ich kann wenigstens das Forum aufrufen, das wars, super!

lg
Karin

Verfasst: 21.11.2004 15:03
von Markus67
Hi ....

hast du denn irgendwelche Fehlermeldungen ... dann poste die doch einfach mal ...

Markus