Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Adding user fields + Register function + Admin area SLOW

Our old forums are still available as a read-only archive.

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

Page: 1 2 3
Go to End
Author Topic: 4915 Views
  • Piklets
    Avatar
    Community Member
    36 Posts

    Re: Adding user fields + Register function + Admin area SLOW Link to this post

    At the moment I'm not quite sure how the relations with the databases work. (bumping)

    For my system I need three parts to it.

    First part - normal user, normal privileges:
    The normal user submits a form telling more about themselves. Each normal user can only have one table row. If they submit it twice it updates the previous submission.

    Second part - stage two user, a bit more privileges:
    The stage two users give their opinion about a single user, and they can submit only one submission per user. If they submit twice on the same user it just updates the row submitted before.

    Third part - stage three user, same privileges as stage two:
    The stage three users are another group to give submissions about a user. Same as stage two, they can only submit one for each user, updating if they submit twice.

  • Piklets
    Avatar
    Community Member
    36 Posts

    Re: Adding user fields + Register function + Admin area SLOW Link to this post

    Got it working! There's always more than one way to do things!

    I made it check for existance first before updating the field.
    If it existed, then it updated.

    Woot!

    If anyone wants any sort of thing like this, ask and I can show you how.

    4915 Views
Page: 1 2 3
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.