Center Block with scroll - Problem !!!

Begonnen von marcelolaia, 26 September 2004, 16:47:49

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

marcelolaia

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

munzur

Hi!

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

L.g
"Debug-Mode" einschalten.
"SQL-Fehler anzeigen" einschalten
und evt. auftauchende Fehlermeldungen posten .

Andi

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.
schön´s Grüssle, Andi

Andi

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  ;)
schön´s Grüssle, Andi

marcelolaia

Dear Tora,

You are great!!!!

In a few time you solve the problem!!!

Thanks very much!!!

Marcelo

chiroptera

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]

marcelolaia

Hi Chiroptera,

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

Marcelo  :)


chiroptera

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