1
worlds
Reloading templates fails. Sometimes...
  • 2004/4/2 11:27

  • worlds

  • Just popping in

  • Posts: 61

  • Since: 2004/3/13


Hi -

I'm seem to be losing a block, when I reload a module. I see this on the output from the reload:

Block Bookstore: Titles deleted. Block ID: 563
Block template bookstore_title.html deprecated.

Then when I hit reload again, I the block is just not listed at all in the output from reload.

The block definition looks like this:

// Blocks
$modversion['blocks'][0]['file'] = "bookstore.php";
$modversion['blocks'][0]['name'] = _MI_BOOKSTORE_TITLES;
$modversion['blocks'][0]['description'] = _MI_BOOKSTORE_TITLES_DESC;
$modversion['blocks'][0]['show_func'] = "b_bookstore_show_titles";
$modversion['blocks'][0]['template'] = 'bookstore_title.html';
// options: max title length displayed |
$modversion['blocks'][0]['options'] = 16;

$modversion['blocks'][1]['file'] = "bookstore.php";
$modversion['blocks'][1]['name'] = _MI_BOOKSTORE_COVERS;
$modversion['blocks'][1]['description'] = _MI_BOOKSTORE_COVERS_DESC;
$modversion['blocks'][1]['show_func'] = "b_bookstore_show_covers";
$modversion['blocks'][1]['template'] = 'bookstore_cover.html';
...
and so on.

There are no other occurances of ['blocks'][0] anywhere in the file.

Any ideas where to start?

Thanks,

Tom

2
svaha
Re: Reloading templates fails. Sometimes...
  • 2004/4/2 16:50

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Hi Tom,
maybe I found now also an answer why multilingo is not working.
I think that it is maybe so that you can't begin with block [0], but the first block should be block [1]
I don't know this for sure, because I just looked at other modules.

Hope this helps
Aloha

3
worlds
Re: Reloading templates fails. Sometimes...
  • 2004/4/6 0:55

  • worlds

  • Just popping in

  • Posts: 61

  • Since: 2004/3/13


Well, that did seem to make the reloading problem go away.

I wonder why?

Tom

Login

Who's Online

195 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 195


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits