• Hi there

    Loving the plugin! I’ve been trying to customise options related to players, specifically, is there a way to:

    1. Add player position in the player list – currently when you enter this shortcode, you can enable most player fields except for position
    2. Change the coilumn name of ‘player’ to ‘name’ in the player list
    3. Can you add in the player name in the player details. I’ve been able to edit player-details.php to output a new row labels name, but n idea how to display the name variable.

    Happy to edit necessary php file as not sure any of this ca be done in settings.

    Many thanks!
    Mark

    https://ww.wp.xz.cn/plugins/sportspress/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Mark!

    #1 Great idea! Please consider adding it to our ideas board: http://tboy.co/ideas

    #2, #3, Would you mind pasting the link to your website here, so we can check it out?

    Kind Regards,
    -Roch

    Thread Starter mhelvadjian

    (@mhelvadjian)

    Thanks Roch. Will do for point 1.

    Here’s the link to one of the player details.
    http://ppyfc.co.uk.gridhosted.co.uk/player/raj-patel/

    Any help would be greatly appreciated!

    Thread Starter mhelvadjian

    (@mhelvadjian)

    Hi Roch

    Just wondered if you had any update on points 2 and 3?

    Thanks again
    Mark

    2. Change the coilumn name of ‘player’ to ‘name’ in the player list

    1. Sportspress > Settings
    2. Go to the Text tab
    3. Find the Player field and put in Name
    4. Save Changes

    3. Can you add in the player name in the player details. I’ve been able to edit player-details.php to output a new row labels name, but n idea how to display the name variable.

    Isn’t this proprietary?

    Thanks for helping, @naptash !

    Kind Regards,
    -Roch

    Thread Starter mhelvadjian

    (@mhelvadjian)

    Thanks @naptash!

    Although not sure what you mean by? “Isn’t this proprietary?” for point 3.

    Sureley I can amend the php file to call the db to get the name etc. @roch – any thoughts on this?

    Thanks

    Although not sure what you mean by? “Isn’t this proprietary?” for point 3.

    I looked it up and I don’t think my statement is correct but I don’t know where/how to call up the player’s name in PHP unfortunately.

    Thread Starter mhelvadjian

    (@mhelvadjian)

    Thanks @naptash

    In player-details.php you can amend the php file but I’m unable to see how to load into the array the name field.

    At this stage what I’ve been able to do is correcty output a new row called name, but at this stage am using $id for the value.

    @roch how can I load the name into the array and/or call the name directly in this php file. Thanks

    fyi here is a page showing the name row: http://ppyfc.co.uk.gridhosted.co.uk/player/paul-malton/

    <tr>
    <th><?php _e(‘Name’, ‘champion’); ?>:</th>
    <td><?php echo esc_html( $id ); ?></td>
    </tr>

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Amending PLayer list table’ is closed to new replies.