Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 30 total)
  • Author
    Posts
  • in reply to: WYSIWYG Editor Alters HTML Code? #41367
    P.P.
    Participant

    Switching to Shortcode block for embedding shortcodes instead of using Custom HTML block didn't fix the issue. Disabling wptexturize() function is still needed in my case.

    in reply to: WYSIWYG Editor Alters HTML Code? #41366
    P.P.
    Participant

    One more remark: I embed MB shortcodes in the Custom HTML block, not the Shortcode block, because I noticed that the latter one often broke my layout. I guess those two blocks handle wptexturize() function not the same way.

    in reply to: WYSIWYG Editor’s Content Not Showing after 6.2 #41365
    P.P.
    Participant

    Hi,
    I have also had problems with WYSIWYG Editor’s content, check this, maybe will be helpful.

    in reply to: WYSIWYG Editor Alters HTML Code? #41364
    P.P.
    Participant

    Okay I found the reason why this happens: WP's wptexturize() function.
    Disabling it with add_filter( 'run_wptexturize', '__return_false' ); fixes the issue.

    Probably a better solution would be to use no_texturize_tags filter to have better control over which tags should not go through wptexturize().

    I don't remember this happening before, I've only noticed this recently.

    in reply to: WYSIWYG Editor Alters HTML Code? #41363
    P.P.
    Participant

    I did that but nothing has changed. Every time I submit a form, additional quotation marks are added to the html code.

    I made another test: I put this into the frontend visual editor:

    "there"

    (note typewriter quotation marks)

    Upon saving the form, typewriter quotation marks were replaced with typographic ones:

    ”there”

    However, when I edit the post in the WP backend, I see the classic editor block, with "there" (typewriter quotation marks).

    So something interferes with the content in the frontend? Might that be any missing/present php module? I tested the issue with php 7.4.33 and 8.2.4.

    in reply to: WYSIWYG Editor Alters HTML Code? #41344
    P.P.
    Participant

    Adding up to the above thread:

    2. the "x" in the file name was replaced by multiplication symbol, while the actual file name has a regular "x" letter; check Screen 2 (marked in blue).

    Inspecting the image with a browser's dev tools shows that the WYSIWYG Editor tries to display an image with the following name:

    8c8d84253f9d31f33210869c6184ecc3-150%C3%97150.jpg

    So, multiplication symbol is replaced with a code, which obviously points to a nonexistent file.

    in reply to: How to use the Metabox user dashboard for moderation #41342
    P.P.
    Participant

    Hi,

    First, try to modify WP_Query arguments with rwmb_frontend_dashboard_query_args (check docs); e.g., adding this would let the moderator see all posts:

    $args['author'] = 0;

    You will have to use conditions within above-mentioned filter to allow only selected users/roles see all posts in a dashboard.

    Next, not sure what you mean by "moderation", is it to hide/publish the post? If so, I use custom field group with radio buttons having options corresponding with post status, e.g., "publish", "draft". The field group is then assigned to a post type. Upon submitting the form, you might fire wp_update_post to update post status according to the option selected in the form's field group with rwmb_after_save_post action (see docs).

    in reply to: Back End Validation Removes Unsaved Field Values #41052
    P.P.
    Participant

    Hi,
    To make it more precise, I am validating front end form with php, so I use rwmb_frontend_validate.

    If the validation fails, the form clears (new submissions) or restores to original post (existing submissions). As I understand, this can be overcome by using remote validation? I didn't try it yet as the other thread you recall concerned WP back end, but will check it for the front end forms so.

    in reply to: Populate Select Advanced Field With Data From WP_Query #40956
    P.P.
    Participant

    Hi Peter,

    I missed one crucial part: I forgot that the php hook have to actually ECHO the data that is to be used by JavaScript... Now the link you provided makes sense.

    Thank you!

    in reply to: Server Validation On the Backend #40939
    P.P.
    Participant

    Thank you, will check it further.

    in reply to: Server Validation On the Backend #40865
    P.P.
    Participant

    Hi Peter,

    Yes, I'd like to validate the field on the server side, but while submitting/editing the form in the WP admin, not from the frontend (on the frontend I can use the rwmb_frontend_validate, which doesn't work while in the admin).

    in reply to: rwmb_frontend_dashboard_query_args Args #38920
    P.P.
    Participant

    Okay, thanks!

    in reply to: add multiple new taxonomy values prior to save? #38881
    P.P.
    Participant

    +1, this would be very handy.

    in reply to: Validation does not work for fields in group #38839
    P.P.
    Participant

    Ditto. Any plans to fix it?

    in reply to: Post Translations #38796
    P.P.
    Participant

    I'm new to Meta Box and only started exploring its features. From my experience, managing posts/translations through the frontend in multilanguage websites is tough.

    I am moving to Meta Box from Toolset where I create translations on the frontend the following way: After a new post has been created, a link "Add Translation" shows up above the post title, which redirects an author/editor to an empty form (it only asks for confirmation before creating translation) which, upon submission, results in adding a translation of the original post with a draft status (specific hooks are added that fires on the form submission). The draft may be then edited and published. Users have links available above original/translated post title allowing them to edit and remove the post. This is very simple approach, but it fits the bill.

    Alternatively, if I have to stick to the backend (normally I prefer to keep authors/editors off the backend), would you recommend a compatible with MB solution that could help me to organize access to the backed parts for non-admins? Like switching off menus, options, etc. Maybe that's eventually simpler than creating the whole workflow for managing posts and their translations on the frontend.

    Thanks.

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