Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 50 total)
  • Author
    Posts
  • in reply to: Custom Model needs additional hooks please #33701
    wgstjfwgstjf
    Participant

    Thanks Long, really appreciate it.

    Cheers,

    Will

    in reply to: Custom Model needs additional hooks please #33595
    wgstjfwgstjf
    Participant

    Hi,

    Any update on getting the following protection put in place? As there is no 'bin' when using a custom model we need to protect clients from accidentally deleting records

    https://support.metabox.io/topic/custom-model-needs-additional-hooks-please/#post-31094

    Thanks in advance.

    Will

    in reply to: Custom Model - Hook into object deletion #32681
    wgstjfwgstjf
    Participant

    Thanks Long,

    Looking forward to seeing an update to this plugin to add in this and the other hooks/features mentioned in my other posts over the past couple of months. Making it more extendable will really bring this plugin into its own!

    Cheers,

    Will

    in reply to: Custom model pagination bug #31232
    wgstjfwgstjf
    Participant

    THanks Long ๐Ÿ™‚

    in reply to: Custom Model needs additional hooks please #31163
    wgstjfwgstjf
    Participant

    One more request for the dev team if you can face it... ๐Ÿ™‚

    It would be great to be able to target the various MB Custom Table admin views in CSS. Currently each screen in the admin area has the same body classes. In standard WordPress CPTs you can target classes such as 'edit-php' or 'post-php' to differentiate between a List Table view, or an Add or Edit one.

    Thanks in advance,

    Will

    in reply to: Custom Model needs additional hooks please #31107
    wgstjfwgstjf
    Participant

    Thanks as always Long. Here's hoping they make it into the next release ๐Ÿ™‚

    in reply to: Custom Model needs additional hooks please #31094
    wgstjfwgstjf
    Participant

    Sorry, I know I bombarding you...

    Could you also add in some form of confirmation before items are deleted?

    A modification of the list-table.js to something like this would be perfect.

    
    // Delete an item.
    $( document ).on( 'click', '.row-actions .delete a', function( e ) {
        e.preventDefault();
        if (confirm('Are you sure you want to delete this item?  This action cannot be undone.')) { // Add this in
            const $this = $( this );
    
            $.post( ajaxurl, {
                action: 'mbct_delete_items',
                ids: [ parseInt( $this.data( 'id' ), 10 ) ],
                model: $( 'input[name="model"]' ).val(),
                _ajax_nonce: MbctListTable.nonceDelete,
            }, response => {
                if ( response.success ) {
                    $this.closest( 'tr' ).css( 'background', '#ff8383' ).hide( 'slow', function() {
                        $( this ).remove();
                    } );
                } else {
                    alert( response.data );
                }
            } );
        }
    } );
    
    in reply to: โœ…Custom Model - Admin table columns #31088
    wgstjfwgstjf
    Participant

    Long,

    Thanks for your suggestion that we talke a look at the Model.php file. Having done so we've managed to achieve 99% of what we need.

    One final issue remains...how can we change the Primary Column. MB Custom Table inserts the 'id' column and this has the row actions within in. We are looking to move these row actions to another column. We would usually have used the following filter 'list_table_primary_column' but this seems not to have an effect.

    Thanks,

    Will

    in reply to: Custom Model #30924
    wgstjfwgstjf
    Participant

    Thanks Long, very helpful!

    Just to clarify - on #2 I am not trying to change the actual Submit button but instead add content to the same postbox above the button iteself, eg.

    Created: 01/09/2021
    Modified: 23/09/2022

    in reply to: โœ…Custom Model - Admin table columns #30922
    wgstjfwgstjf
    Participant

    Thanks Long but I am really looking to do this more at a code level than via another plugin. Are there any hooks that we can utilise to define the columns and their respective content?

    Cheers,

    Will

    in reply to: Custom Model #30915
    wgstjfwgstjf
    Participant

    Sorry one more thing...

    Is there any way to control the h1 heading when editing an existing record? Currently it is 'Edit Item #<ID>. I'd like to be able to use one of my custom fields to insert the record name eg. "Edit Item: John Smith"

    All the best,

    Will

    in reply to: โœ…How to store WordPress Posts in a Custom Table? #29166
    wgstjfwgstjf
    Participant

    Just checking in on this again. Any update on when this much-desired functionality will be released?

    Cheers,

    Will

    in reply to: โœ…mb_settings_page_load on save only not working #27561
    wgstjfwgstjf
    Participant

    Wonderful thanks. For some reason the first option didn't work but the second did so problem solved!

    Cheers,

    Will

    in reply to: โœ…How to store WordPress Posts in a Custom Table? #23989
    wgstjfwgstjf
    Participant

    Hi guys,

    Just about to start a new project and would love to have this functionality? Any progress on this feature addition?

    Cheers,

    Will

    wgstjfwgstjf
    Participant

    Morning Long and thanks for staying with this. Very strange events here...I tried a few debugging options including resorting to default themes, trying different versions of MB and re-coding the function initialising the metaboxes, all with not joy. I then put it all back as it was and suddenly I am getting the desired array returned. I have no idea what happened here...but it is seemingly all working properly now.

    Thanks.

    Will

Viewing 15 posts - 16 through 30 (of 50 total)