ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

New Project Layout...

February 07, 2012 6:14pm

Subscribe [1]
  • #1 / Feb 07, 2012 6:14pm

    jasonathopi

    35 posts

    This post could end up being rather long but I will try to keep it a simple as possible. I am trying to create a new web app customized for a golf tournament I am playing in. Rather than running the risk that everyone doesn’t know how to keep score in golf, let’s just assume that we’re talking about 2 on 2 basketball.

    Here is the idea:
    1. 12 teams of 2 players playing simultaneously
    2. Every player has a smart phone and can keep track of all the scores that are being updated by someone after each score
    3. I only want the scorekeeper for that game to be able to change the score of their game (and not other games)
    4. At anytime if you choose “scoreboard” you can see all the scores in a list.

    Hopefully that makes since.

    So here is what I’m thinking. The players are repopulated so I could create accounts for each player and login credentials. From my web browser I can set up the matches by choosing who plays who. A new match would simply be a weblog with 4 custom fields for me to pick the players names who are playing, and 2 custom fields for score. A SAEF would allow them on their phone the chance to update the score, right?

    My questions are:
    1. Each new game would be a new weblog post. How could I setup that only the players in that game be able to update the score through a SAEF?

    2. If you are following my logic, am I doing this the best possible way?

    Thanks for the help,
    Jason

  • #2 / Feb 08, 2012 4:25pm

    Dan Decker

    7338 posts

    Hi Jason,

    You’ve got a solid idea here. SafeCracker can do just what you are looking for.

    When you setup everything in the Control Panel, you can set the author of each matchup to be the scorekeeper for that matchup. Then SafeCracker can be told to only allow the author to edit the entry.

    You would definitely want enough lead time to sort everything out, but I think this would do just fine.

    Cheers!

     

     

  • #3 / Apr 14, 2012 3:38pm

    jasonathopi

    35 posts

    I’m just now coming back around to this, and everything was working great until I just read that Safecracker/SAEF doesn’t have a “author” drop down option. That would mean that I would have to use the control panel for everything? That messes me up a little bit. Does anyone know of a way to include an author list in a SAEF?

    Thanks,
    Jason

  • #4 / Apr 18, 2012 2:38pm

    Dan Decker

    7338 posts

    Hi Jason,

    SafeCracker has a hidden field for author_id. SafeCracker will also honor any valid Publish Form (from the Control Panel) fields you hardcode into your form.

    In theory, you could build a menu with a list of your authors and their respective member IDs and SafeCracker would make the change. It would require some testing on your part because SC uses a author_id and the Control Panel publish form uses author.

    Cheers,

  • #5 / Apr 18, 2012 8:57pm

    jasonathopi

    35 posts

    Thanks for the tip. I will play around with it.

  • #6 / Apr 20, 2012 1:26pm

    Dan Decker

    7338 posts

    Hi Jason,

    Awesome. I thoroughly encourage tinkering with ExpressionEngine!

    Is there anything else I can assist you with?

    Cheers,

  • #7 / Apr 30, 2012 8:59am

    jasonathopi

    35 posts

    Hi Jason,

    SafeCracker has a hidden field for author_id. SafeCracker will also honor any valid Publish Form (from the Control Panel) fields you hardcode into your form.

    In theory, you could build a menu with a list of your authors and their respective member IDs and SafeCracker would make the change. It would require some testing on your part because SC uses a author_id and the Control Panel publish form uses author.

    Cheers,


    I’m a little confused. I’ve created a custom field called “scorekeeper” which is really what I want to be author. I’m using CKI Member List. So in my SC form I can choose from a list of members (authors). CKI Member list will spit out a member_id,  but what do I put in my channel tag to replicate the {author_id="CURRENT_USER"} ?

    Thanks,
    Jason

     

  • #8 / Apr 30, 2012 5:36pm

    Dan Decker

    7338 posts

    Hi Jason,

    You would need to do a few tests to be sure, but you would name the input for CKI Member List either author_id (most likely) or author.

    That part is just going to take some tinkering because it’s not directly documented or common.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases