Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Block Language defines problem.
  • Posted: 11.05.2006, 22:46
     
    nuclearw
    rank:
    Freshman Freshman
    registered:
     September 2003
    Status:
    offline
    last visit:
    20.05.06
    Posts:
    20
    I'm working on some blocks for my WolfPixl module, The blocks seem to work fine but I cannot get the language defines to be picked up for the life of me.

    Currently they are in pnblocks.php (as shown in the Example module), i tried copying it to global.php and pnglobal.php with no luck.

    File permissions are all the same, and everything appears normal inside the define file(most is copied from the working user.php defines).

    My site is http://www.wolfmods.com , the two blocks are currently active on the left hand side.


    Thanks for any assistance you can provide.!

    --
    Erik Bartels
    Module Development home http://www.wolfmods.com
    Homepage http://www.silver-wolf.com
  • Posted: 12.05.2006, 00:47
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    The block language file (as per the example module) is [block key].php so the example modules first block uses the language file first.php. Alternatively you can load the user language file to avoid redefining things using pnModLangLoad.e.g.

    Code

    pnModLangLoad('Example', 'user');


    -Mark
  • Posted: 12.05.2006, 01:41
     
    nuclearw
    rank:
    Freshman Freshman
    registered:
     September 2003
    Status:
    offline
    last visit:
    20.05.06
    Posts:
    20
    Thanks mark! Figured it would be something simple :)


    --
    Erik Bartels
    Module Development home http://www.wolfmods.com
    Homepage http://www.silver-wolf.com

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula