Jump to content

Author Block with PHP / Help


Recommended Posts

When we use a block with php content from within the template, we want to send parameters to this block from the template
Example;
{block="postbit-user" params="$comment->author()->member_id"}


here postbit-user we are using the keyed block and we need to send the member id variable as a parameter and use it as php code inside the block. How can I do it?

Link to comment
Share on other sites

Thanks for posting!

Unfortunately, this issue is beyond the scope of our technical support. 👩‍💻

Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications.

I've moved this to our Community Support area where other Invision Community owners will see it and help where they can.

Link to comment
Share on other sites

Is it possible to get the current comment/post's data(id, author etc.) by using a PHP block inside postContainer template?

So {block="postbit-user"} this is a line in postContainer template and I'd like to access comment data in it using PHP.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...