Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 136 through 150 (of 166 total)
  • Author
    Posts
  • in reply to: Display fields with confirmation notice #12503
    EddyPiVEddyPiV
    Participant

    Thanks, I'll wait and look for an alternative solution for now.

    in reply to: Limit the number of "favorites" in radio buttons #12476
    EddyPiVEddyPiV
    Participant

    OK, so that will be quite some work. Doubt whether it's worth the efforts.
    Thanks.

    in reply to: Display fields with confirmation notice #12449
    EddyPiVEddyPiV
    Participant

    Anh, how would that work for the Frontend Submission? I read about hooks and actions, but I am not much of a developer myself. I would like to stay on the page after the successful update of the fields, next to the display of the confirmation message.

    How to do that?

    in reply to: Title of post is removed after updating the post #12447
    EddyPiVEddyPiV
    Participant

    Great, that was it.

    Thanks!

    EddyPiVEddyPiV
    Participant

    For my understanding, what this js is doing is counting the number of checked items with class=like, and displaying the counter, right?

    I was wondering, can I also include this in the page from where I launch the Frontend Submission?
    Because then I can control the location where I want the counter to be displayed.

    It would then look like:

    <script>
    var total = 0;
    $( '.like input:checked' ).each( function() {
        total += $(this).val();
    } );
    // Output total somewhere
    $( '#selector' ).text( total );
    </script>

    By the way, I created the .js file, stored it in the js folder of my theme, and included the call in the functions.php, but it doesn't show a counter, and I don't know if it counts...

    EddyPiVEddyPiV
    Participant

    I am trying to understand how this should work.
    Should I include this in the page.php of my theme? Or actually in a separate theme for the frontend submission page to avoid that it is show on each and every page?

    I included it in page.ph, but just the text "var total = 0; $( '.like input:checked' ).each( function() { total += $(this).val(); } ); // Output total somewhere $( '#selector' ).text( total );" is shown on each and every page.
    I am obviously doing something wrong.

    EddyPiVEddyPiV
    Participant

    Hi,

    I have changed my approach. For my new approach I need some guidance as well, but I'll open a new topic for that. Can you close this one?

    Thanks.

    EddyPiVEddyPiV
    Participant

    I managed to display the link only for the author. This item can be closed now. Thanks.

    EddyPiVEddyPiV
    Participant

    That's how far I got as well. I was hoping you could give me some php code, as I am not familiar with php myself. And I guess this may be useful for other users as well?

    EddyPiVEddyPiV
    Participant

    That works great, to a large extent.

    As I want to allow users to edit their own fleds in the frontend, it should only be possible for their own posts, i.e. where the author = logged in user.

    Any suggestion?

    in reply to: Problems uploading images to media library #10370
    EddyPiVEddyPiV
    Participant

    Hi Anh, I don't know why, but it's working now smoothly.
    Strange..., but OK, I guess.

    Can you close this issue?
    Thanks

    in reply to: Problems uploading images to media library #10253
    EddyPiVEddyPiV
    Participant

    Update: I have installed the Frontier plugin (to add/edit the post in the frontend), and here it is allowed to upload images to the media library. But in ME Frontend Submission, it's not.
    Same user.

    Just for you to know. Hopefully this helps.

    EddyPiVEddyPiV
    Participant

    Hi Anh,

    I have installed the Frontier plugin, which allows my users to edit their own post(s) in the front-end.
    All well, but what remains is how to allow them to edit the MB fields in the front-end?

    in reply to: Problems uploading images to media library #10239
    EddyPiVEddyPiV
    Participant

    Hi Anh,

    No, it doesn't make any difference. I have changed it as follows:

    function mb_allow_author_uploads() {
        if ( is_admin() ) {
            return;
        }
    
    // Replace 'subscriber' with the required role to update, can also be contributor.
    $author = get_role( 'author' );
    $author->add_cap( 'upload_files' );
    }
    add_action( 'init', 'mb_allow_author_uploads' );

    But same error message.
    My users have the author role, so should be capable of uploading their own images anyway, right?

    in reply to: Problems uploading images to media library #10124
    EddyPiVEddyPiV
    Participant

    The same error occurs.

Viewing 15 posts - 136 through 150 (of 166 total)