Admin Columns: Sample code has PHP Errors?

Support MB Admin Columns Admin Columns: Sample code has PHP Errors?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #31141
    jmcbadejmcbade
    Participant

    I tried to use the sample code here as a starting point: Link: and even without changing a thing, the code is casting an incorrect EOF or missing ")" error in my editor (PHP Storm) and in my scripts plugin on the last line.

    I would like to create Admin Columns if I had a good starting point.

    #31143
    Long NguyenLong Nguyen
    Moderator

    Hi,

    That means a closing parenthesis is missing in your code. Can you please recheck it? Or share the code that you use to create the field?

    #31147
    jmcbadejmcbade
    Participant

    Long,

    I know that it's a closing parentheses error.

    I need you to read posts when I make them. You really need to slow down and read more carefully.

    I included a link from the code I am referring to in my original post. It's straight off the page from your site copied in it's entirety. I tried copying it with a "select" and I tried copying it using the "copy" button. Neither was successful.

    Try it yourself.

    #31148
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for the feedback.

    If you use the code in the Quick Sample section https://docs.metabox.io/extensions/mb-admin-columns/#quick-sample
    it is missing closing parenthesis, screenshot https://share.getcloudapp.com/d5uRm6z8

    I will update the documentation to cover this issue.

    #31152
    jmcbadejmcbade
    Participant

    Yes, that is what I was saying.

    BTW, also when you replied to me here, your system did not send any notification.

    #31184
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The option notification on this topic is enabled. If you still do not receive the email notification, please let me know. I will inform the development team to re-check it.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.