Fork me on GitHub

Changing the EnvoAvatar  Bottom

  • In the admon panel I click "EnvoAvatar" and it comes up with:

    "You can't access this file directly..."


    But I need to get in there and make it so the group "Users" and the group "Moderators" can upload their own avatars. Please help!
  • try enabling PASTNUKE in your Admin -=> Settings. There might be a function call ni there that has been deprecated in the core but supported by "legacy module function".

    UHEweb
  • i tried it, didn't work. :(
  • http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=37228&highlight=access+file+directly+avatar

    Duid you get Jmvedrines version? or another? There is also a link for a discussion on the same prob there
  • Hello,
    This is a common problem with "old style" modules and PostNuke .750 (no problem with .760)
    The fix involve to edit your ROOT admin.php file (Warning : not the admin.php file in the EnvoAvatar directory icon_rolleyes ).

    Open the admin.php file at the root level of your PostNuke site and add the lines

    Code

    // set a constant so we can check the correct entry point later
       define('LOADED_AS_MODULE','1');

    before the lines :

    Code

    if (file_exists($file='modules/' . pnVarPrepForOS($module) . '/admin.php')) {
       $ModName = $module;
       include $file;


    Applying this method will solve the problem for all old style modules without (contrary to other "brute force methods) creating any security hole in your PostNuke site :D

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • wow, that totally worked! thats funny how such a small little thing like that can work! I want to learn how to do all this, did you learn code in college?
  • No,
    I learned programming alone many many years ago (about 30 years ago ...) it's not my job (my job is to teach statistics to french students), just a thing that I enjoy to do. And today with a lot of websites teaching how to code it's a lot easier.

    --
    Visit my live reef aquarium.

    My Amazon wish list.

This list is based on users active over the last 60 minutes.