Support  :: 
Remove PostNuke Avatar Option
 Top

  • Due to my use of PNphpBB I DON'T want the option for my users to able to change (or even know they have) a PostNuke Avatar...

    For example when a users goes to:

    http://www.devilsharvest.com/html/user.php?op=edituser

    How can I remove the option to choose an avatar from that page :?:
  • You'll need to remove it from the edituser function of the users module

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Well I hate to sound stupid (actually I don't mind) but which file would that be that I need to edit?

    I don't see any file that resembles "edituser" in the User /modules/Users directory...
  • Actually, the real place you'll need to be is modules/Your-Accout/user/modules/changeinfo.php

    That's from memory, I dont have a PN install to hand right now

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • I edited the changeinfo.php and took out all mentions of "avatar" and it partialy solved my problem so at least users can't switch their avatar anymore but they now get an error message as follows:

    Your avatar Undefined $prop_id, $prop_label, $prop_dtype, $prop_length, $prop_weight, $prop_validation

    That error is located down in Your Avatar portion of the edit user page...
  • That's because of the way you took it out. You probably found something like:

    Code

    case 'avatar':
         // do some stuff
        break;


    instead of removing all of that, you should leave the case 'avatar': and break; and just comment out the bits in between

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • That got rid of all the "code errors" but it still says "Your avatar" with nothing listed... Which file do I edit to remove the "Your avatar" completely from this page?

    Thanks for your help on such a petty thing but it really does confuse some users when they see 2 different avatars on their account... They don't understand PNphpBB running with PostNuke ;o)
This list is based on the users active over the last 60 minutes.