Seite 1 von 1
Fehler in Calendar
Verfasst: 08.01.2003 18:04
von clubbiker
Hallo,
schaut doch bitte mal einer hier
http://www.flora-forum.de/calendar.php und klickt dann auf ein datum. das ziehl sollte dann eigentlich folgendes sein:
Code: Alles auswählen
http://www.flora-forum.de/calendar.php?day=8&month=01&year=2003&mode=display
leider kommt jedoch etwas anderes dabei heraus:
Code: Alles auswählen
http://www.flora-forum.de/flora-forum/calendar.php?day=8&month=01&year=2003&mode=display
das ziehl wurde in der URL also um
../flora-forum/.. erweitert, was ja falsch ist. kann mir jemand sagen, wie ich diesen fehler beseitige?
Verfasst: 08.01.2003 18:14
von saerdnaer
hab ich das nicht schon irgendwo gelesen oder seh ich doppelt?
ah
Verfasst: 08.01.2003 18:28
von codemonkey
speicher die Datei calender.php mal als calender.txt ab und poste den link dazu....
Verfasst: 08.01.2003 18:30
von clubbiker
Verfasst: 08.01.2003 18:35
von codemonkey
<?
/*###############################################################
## Mod Title: phpBB2 Calendar
## Mod Version: 1.2.2m (WebSnail.mod)
## Author: Martin Smallridge <
www.snailsource.com >
## Original Author: Matthew D. Sluss <
mds@isparian.com >
## Description: Add a Calendar to your phpBB2 installation!
## All registerd and logged in users can post to the calendar
## And Admins can modify, remove, add also.
##
## Installation Level: MEDIUM
## Installation Time: 5 minutes
## Files to Edit: 2
## Files to Execute: 1(?) Dependent on upgrade/install of previous version.
##
##
## NOTE: Please read Calendar-README.txt for version information
#################################################################
*/
// Set $phpbb_root_path to location of phpBB2 root directory.
$phpbb_root_path = "
../";
Ein Ausschnitt vom Anfang. Das rote ist geändert. So sollte es funzen.

Verfasst: 08.01.2003 19:32
von clubbiker
leider war das auch nicht richtig. der fehler muss woanders liegen
Verfasst: 09.01.2003 00:54
von SQRT
was haste in dein AP für einen Link angegeben für das Verzeichnis?
Verfasst: 09.01.2003 12:52
von clubbiker
dazu muss ich dich fragen: was ist AP? meinst du im bereich administration -> konfiguration -> script pfat ? dort hab ich ein einfaches / (slash) stehen
Verfasst: 09.01.2003 14:04
von saerdnaer
suche mal folgendes:
Code: Alles auswählen
if (!isset($PHP_SELF)) {
include_once($phpbb_root_path . 'cal_reg_glob.php');
// use $thisscript in Form and URL tags if no $PHP_SELF
$thisscript = $phpbb_root_path.$scriptname;
}
else {
$thisscript = $PHP_SELF;
}
und ersetz es durch
ah
Verfasst: 09.01.2003 19:39
von clubbiker