Fork me on GitHub

Adding to the user table  Bottom

  • In a development update posted on Dec 17, 2006.....

    Quote

    Frank also enabled the addition of a generic object attribution (a very nice feature of the ObjectUtil) for the users table. Using this, one can add any datafield to the users table (as long as it is a string with max. 255 characters icon_wink )
    e.g. it is possible for pnForum now to store user related data this way, which makes its own user table obsolete. If you, as a module developer, need a new datafield, just add it and it is there.
    Example: You have an attribute 'someattribute' with 'somevalue'. The array returned by pnUserGetVars() now contains an item '__ATTRIBUTES__' which is an associative array itself with key 'someattribute' and value 'somevalue'.
    More information and code snippets can be found in the Wiki after the coding has completed.


    Does anyone know if this has been implemented in the the .8 codebase yet? If so, how would you do it? I need this for a .8 module I'm working on so I don't have to keep myown user tables.

    Thanks,
    cyber_wolf

    --
    cyber_wolf
    www.bkbsolutions.com - My Zikula module development site.
  • I take it this hasn't been implemeneted yet in the .8 codebase? I haven't found anything in the Wiki on this yet?

    --
    cyber_wolf
    www.bkbsolutions.com - My Zikula module development site.
  • It's implemented, though not widely used. I don't have time to check now, but I think the categories code may make use of the attribution functionality...

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • I wasn't able to find anything in the categories module, but found the API on how the profile module adds dynamic fields. Not sure if that is the correct way to do it or not.

    But I found a bug and a request in testing the dynamic user fields.

    --
    cyber_wolf
    www.bkbsolutions.com - My Zikula module development site.

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