hus_hmd Registered Developer

  • Male
  • from Dubai
  • Member since Jan 27th 2019
  • Last Activity:
Posts
678
Likes Received
222
Points
3,747
Profile Hits
1,995
  • hus_hmd

    Replied to the thread Error after importing members.
    Post
    For what it's worth, this is a bug and not something wrong on your part.

    cc George G
  • hus_hmd

    Post
    Hi James,

    While the skip-template option returns the items' data, it does not include all the raw data by default. You can tell Perch you want all the raw data with the raw option:

    (Code, 7 lines)


    Hopefully this will return all the image data you…
  • hus_hmd

    Replied to the thread Error after importing members.
    Post
    You have some custom properties in the memberProperties column:

    (Code, 1 line)


    Does any of the records you imported has an empty value in that JSON? e.g.

    (Code, 1 line)


    Or does any have a missing property? e.g.

    (Code, 1 line)

  • hus_hmd

    Replied to the thread Member App - Additional Validation.
    Post
    Hi Raymond,

    You can create a custom a Perch form validator for this.
  • hus_hmd

    Replied to the thread Error after importing members.
    Post
    What sort of data did you add to the database table? Just the default columns? Or did you add some custom properties as JSON in the memberProperties column? It would probably be helpful if you shared a sample of the data you entered.
  • hus_hmd

    Post
    You can build a Perch app and register a scheduled task so it periodically fetches the data you need.

    Depending on your requirements you may choose to store the data in the database or even just save it in a parse-able format like JSON in a file. I'd…
  • hus_hmd

    Like (Post)
    Here's the latest issue of the Perchology Newsletter, https://www.perchology.com/blog/2021-03-03-issue-83

    This one includes two blog post comments add-ons and how to put your pages into dev mode. And other handy tips and a nice site example.
  • hus_hmd

    Post
    Adding perch:content within a perch:input can cause problems when Perch parses the tags during validation, so make sure it is the last thing you add and after all other attributes:
    (Code, 1 line)


    Plus I wasn't aware you're only dynamically adding…
  • The file-type attribute filters existing assets in the asset chooser. I think the editor can still upload PDF files.

    It's not ideal that Perch allows selecting PDFs in an image field. One option could be to add a conditional to not render the PDF files…
  • hus_hmd

    Post
    Upon submission, Perch checks the submitted data against the form fields in the form template. Perch does this to validate the form.

    So when you add dynamic fields at runtime (on page load), these dynamic fields are not accessible to Perch for…
  • hus_hmd

    Post
    Assuming your template is something like this:
    (Code, 1 line)


    When the client uploads a PDF via and image field type, what does Perch render on the frontend? A JPG?
    (Code, 1 line)

  • hus_hmd

    Post
    I am fairly sure that I successfully added PDF assets for which Perch did not generate thumbnails.

    Does the issue happen when you upload any PDF? Or are you only testing with the same PDF?

    And where does this happen? In a content region?
  • hus_hmd

    Like (Post)
    Just dawned on me to filter it on the php call:

    (Code, 6 lines)

    Then include the html template in a perch:after tag to get the very last result
    (Code, 1 line)

  • hus_hmd

    Post
    Hi Glen,

    Yes, this is possible. Are you looking to fetch data at runtime (i.e. every time the page loads) and render it on the page? Or would you perhaps like to periodically fetch the data and save it in the database?
  • hus_hmd

    Replied to the thread Personalised success message.
    Post
    Yes, there is. You can use $_POST or the perch_post() function:

    (Code, 7 lines)

  • hus_hmd

    Replied to the thread Paywall providers?.
    Post
    Hi Charlie,

    You can use Perch Members to restrict access to content on the site.

    The payment solution can be anything. You can always integrate something like Stripe without using Perch Shop so you don't have to deal with Perch Shop's current issues.…
  • hus_hmd

    Like (Post)
    Hi Hussein,

    I've cracked it - as you mentioned, as usual Chrome has the key. So - the console error lead me to a 404 with this require path require (realpath(__DIR__ . '/../../../..//') . '/core/runtime/runtime.php'); inside 'get_asset.php'. I've…
  • hus_hmd

    Replied to the thread Pipits Inline Perch Assets problem.
    Post
    Ah great! Thank you, Lea.

    It's so weird of me to use `realpath` there! I'll update and publish a new release. I've opened an issue on GitHub (https://github.com/Pipits/reda…ine-perch-assets/issues/2), so hopefully I won't forget!
  • hus_hmd

    Replied to the thread Pipits Inline Perch Assets problem.
    Post
    (Quote from tidygraphic)


    This is probably the issue. Unsure why exactly it is not working for you as I have used this on multiple sites without an issue. I'll look into it and report back.
  • hus_hmd

    Replied to the thread Pipits Inline Perch Assets problem.
    Post
    Hi Lea,

    I'll be happy to help.

    • Does this only happen in Safari?
    • Does this happen when adding an existing asset or a newly uploaded one? Or both?
    • Does the issue still happen if you remove the other plugins?