Hi there, I am sorry for post in english. I speak in Brazilian Portuguese.
I set up Kalender 1.4.a and set up the Calendar_centerlist_scroll (block-Calendar_centerlist_scroll.php) in the top center page.
But, when I visit the home page, I get this message error:
Error!
You must change the constant '"CAL_MODULE_NAME"' in file:
d:\webroot\apg\apgnuke\blocks\block-Calendar_centerlist_scroll.php
But, I dont make any change in the Module Name!!
If I put it in the left block section, it works very fine!!!
I test it in phpnuke 7.4 and 7.5.
How do I do to solve this problem?? I would like that the block works in the center page.
Thanks a lot
Marcelo
Hi!
if (!defined("_CAL_MODULE_NAME")) define("_CAL_MODULE_NAME","Kalender"); // CHANGE THIS IF YOU CHANGE THE CALENDAR-MODULES FOLDER NAME
L.g
Hello Marcelo,
you are already the second user with this problem. That must be somehow because of the compatibility with phpNuke 7.5.
I still am on the search for this error.
Hi Marcelo :)
here is the solution:
Edit the 2 centerblock-files, change this lines:
global $calconf;
$conftest = false;
if (!isset($calconf)) {
$conftest = @include("modules/".CAL_MODULE_NAME."/config/config.php");
}
if (!$conftest){
$content = "<b>Error!</b><br>You must change the constant '\"CAL_MODULE_NAME\"' in file: <br>".__file__."";
return;
}
to this:
$conftest = @include("modules/".CAL_MODULE_NAME."/config/config.php");
if (!$conftest){
$content = "<b>Error!</b><br>You must change the constant '\"CAL_MODULE_NAME\"' in file: <br>".__file__."";
return;
}
than it's ok ;)
Dear Tora,
You are great!!!!
In a few time you solve the problem!!!
Thanks very much!!!
Marcelo
Zitathere is the solution:
[snip]
than it's ok ;)
Hi Tora,
after this changes the error message is gone, but now there is no content in this block :( (Dieser Block hat derzeit keinen Inhalt.)
Nuke 7.2 - KalenderMX 1.4a
Regards
chiroptera
[Editiert am 27/9/2004 von chiroptera]
Hi Chiroptera,
I test it after changes in phpnuke 7.4 and 7.5 and works fine in both!!!
Marcelo :)
ZitatHi Chiroptera,
I test it after changes in phpnuke 7.4 and 7.5 and works fine in both!!!
Marcelo :)
Sorry - it was my mistake. I have wrongly copied the code :redhead:
Now it works fine. :)
Thanks
chiroptera