Support Forum » User Profile

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: alt text #47743
    Mark McLachlanMark McLachlan
    Participant

    I do write some code - but this, as simple as it may be for someone who codes everyday - has defeated me.

    The method you suggest is along the way I had been working.

    I would think that for the sake of accessibility this would be something that would be worth the attention of the plugin dev's.
    I am in the planning stages of a site that will have multiple authors and event forms etc.
    It would be a nightmare to have to add alt text to images uploaded by hand.

    A requirement of the site is that it meet accessibility standards.
    Could you bring this to the attention of the dev's please. I think it would make an excellent article for your website and or You Tube channel.

    in reply to: Opening hours for restaurants blog post #42967
    Mark McLachlanMark McLachlan
    Participant

    I had issues but have them largley resolved some time ago.
    I enquired about the updates as the post has the following at the top

    "Updated: February 21, 2023"

    Can you establish whether there were changes/improvements to the code used/demonstrated please?

    in reply to: form not saving data #41590
    Mark McLachlanMark McLachlan
    Participant

    It was doing that because the following code is in the View code I copied.

    <pre>
    {{ mb.print_r(options) }}
    </pre>

    Remove that and all is fine.
    Thank you, I think all is now well.

    in reply to: form not saving data #41589
    Mark McLachlanMark McLachlan
    Participant

    Thank you. Thank you.
    This might be something that needs to be fixed.
    I copied the View code from
    https://github.com/wpmetabox/tutorials/blob/master/showing-opening-hours-section-with-MB-Views/template.php

    It is also available at
    https://github.com/wpmetabox/tutorials/commit/5495291a395ab920ecd5e4daaacad9a82756cf75

    and a portion of the code with that error is also here
    https://metabox.io/display-restaurant-opening-hours-p1-meta-box-gutenberg/

    When I view the custom posts by going to
    All Meta Box Forms -> page form opening hours test -> View
    there is still an error of some type on the front end above where the "Opening Hours" display (correctly)

    There is the text "difference_between_weekdays_and_weekend1".
    when I "inspect" it I see it is wrapped in "pre" tags
    I have searched for where this is coming from.
    It does not appear to be in the View code or where the custom fields are written in the backend.

    "difference_between_weekdays_and_weekend" is only in the first options field as far as I can determine.

    in reply to: form not saving data #41575
    Mark McLachlanMark McLachlan
    Participant

    My apologies, as the form was not displaying as I expected, I assumed it was not saving to the database.

    I removed the prefix coho and updated it.

    Then dumped the table in the database.

    I duplicated the field group and published it after deleting the original.

    The field group is now only assigned to one CPT; Meta Box Form

    This left me with an empty table in the database.

    I then went to Meta Box Forms -> Add New and added the values to the post for the opening hours from the metabox at the bottom of the editor and published it.

    On the front end it did not display the hours which were input, rather just "Monday""Open All day" etc for each day of the week as per the screen shots I have emailed.

    I created a page "https://www.staging42.boyneburnettinlandrailtrail.org.au/opening-hours-test/" using the form block and input the values and submitted the form.

    It saved as "Pending" as per the settings. I published it and viewed on the front end.
    The result was the same just "Monday""Open All day" etc for each day of the week as per the screen shots.

    I have emailed a zip file with images of each step for both cases. They are sequential (A, B, C etc) so show in order, with the file name describing each.

    I have also included a .txt file with the full text from the two rows created in the database table.

    Thanks

    in reply to: form not saving data #41557
    Mark McLachlanMark McLachlan
    Participant

    This is becoming quite frustrating.
    Could you please address my question as above (19th April)

    in reply to: form not saving data #41544
    Mark McLachlanMark McLachlan
    Participant

    The staging site I set up had a problem.
    I have a new one at
    https://www.staging42.boyneburnettinlandrailtrail.org.au/wp-login.php

    Once logged in to the backed you will see a custom post type

    Meta Box Forms

    I have added a post to that post type and published it. I had input the opening hours custom fields when writing the post.
    The post displays on the front end.
    I have added a menu item for it entitled "Form Display"
    The content and custom fields "days of the week" display in a list as Monday Tuesday etc.
    The opening times for each day as input into the custom fields do not.

    in reply to: form not saving data #41514
    Mark McLachlanMark McLachlan
    Participant

    I have resent the information, thanks

    in reply to: dynamic blocks #41502
    Mark McLachlanMark McLachlan
    Participant

    My apologies, my question was unclear, and I have a typo as well.
    I was trying to explain my my way ahead when talking about roles etc, that these are things still to do, not with metabox though.

    When I wrote
    "I have built a block using Metabox."
    I should have said
    "I have built a block using Metabox to put the form into a post instead of using a shortcode"

    When I wrote
    "My plan ahead is to make a template for the custom post type and use the block to dynamically add data from each user to their own "business""

    I meant to say "a block"

    Having looked about, I think I will have to use a third party solution such as Stackable Blocks for that.

    in reply to: problem after creating post #37574
    Mark McLachlanMark McLachlan
    Participant

    Hello Long
    done
    thank you

    in reply to: migrate from toolset #36548
    Mark McLachlanMark McLachlan
    Participant

    here is an image showing what is happening.

    https://drive.google.com/file/d/1KOukBsWZ2Dmpg--841QntUjq5l-5RpRU/view?usp=sharing

Viewing 11 posts - 1 through 11 (of 11 total)