pragmaMx Support Forum

Archive => veraltete bzw. unsupportete Systeme und Module => Alt Archive => KalenderMx => Thema gestartet von: marcelolaia am 26 September 2004, 16:47:49

Titel: Center Block with scroll - Problem !!!
Beitrag von: marcelolaia am 26 September 2004, 16:47:49
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
Titel: Re: Center Block with scroll - Problem !!!
Beitrag von: munzur am 26 September 2004, 17:01:21
Hi!

 if (!defined("_CAL_MODULE_NAME")) define("_CAL_MODULE_NAME","Kalender");  // CHANGE THIS IF YOU CHANGE THE CALENDAR-MODULES FOLDER NAME
 

L.g
Titel: Re: Center Block with scroll - Problem !!!
Beitrag von: Andi am 26 September 2004, 17:06:13
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.
Titel: Re: Center Block with scroll - Problem !!!
Beitrag von: Andi am 26 September 2004, 19:32:28
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  ;)
Titel: Re: Center Block with scroll - Problem !!!
Beitrag von: marcelolaia am 26 September 2004, 22:04:18
Dear Tora,

You are great!!!!

In a few time you solve the problem!!!

Thanks very much!!!

Marcelo
Titel: Re: Center Block with scroll - Problem !!!
Beitrag von: chiroptera am 27 September 2004, 15:23:09
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]
Titel: Re: Center Block with scroll - Problem !!!
Beitrag von: marcelolaia am 27 September 2004, 19:23:29
Hi Chiroptera,

I test it after changes in phpnuke 7.4 and 7.5 and works fine in both!!!

Marcelo  :)

Titel: Re: Center Block with scroll - Problem !!!
Beitrag von: chiroptera am 30 September 2004, 16:17:50
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