Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Extending memberprofiles & showing information on other pages

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 162 Views
  • HGray
    Avatar
    Community Member
    2 Posts

    Extending memberprofiles & showing information on other pages Link to this post

    On my website I'm using both the forum module and memberprofiles. The two modules are working fine, I have the memberprofiles registration automatically adding people to Forum Members group so they are in sync.

    Where I'm stuck is when a member uploads an avatar through the registration page it appears to get linked only with the forum. I need to know if I can get the avatar to use on other pages (for example to put beside an authors name on a blog post)?

    Ontop of this I also want to add a text area for members to write a small "about me" description, which hopefully can also be pulled out and used on blog posts. To just test how to do it I've tried creating a DataExtension to add a phone number field like this:

    class MemberExtension extends DataExtension {

    private static $db = array(
    'PhoneNumber' => 'Text'
    );

    public function updateMemberFormFields(FieldList $fields) {
    $fields->push(new TextField('PhoneNumber', 'Phone number'));
    }

    }

    And then putting this in config.yml:

    Member:
    extensions:
    - MemberExtension

    With a dev/build this shows the phone number being added to the db, but it then gets a server error a little further on...

    I'm working on Silverstripe 3.1. Any help/ideas would be greatly appreciated.

    162 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.