Hi buddies. I'm trying to add a minor hack in viewtopic_body.html to add some external data and show them near the poster's name and avatar. To get this goal, I need to use the post id value. But I'm not sure how to do it.
I thought about adding in the adequate place in viewtopic_body.html something like:
...
<!-- PHP -->
query to external data handling post id
echo result
<!-- ENDPHP -->
...
But, despite it's available {postrow.POST_ID} in viewtopic_body.html, I don't how to handle it inside the php block (I would need to assign it to a php variable).
I know this kind of sutff should be avoided as much as possible inside templates files, so I could maybe do something like,
...
<!-- INCLUDEPHP somefile.php -->
...
But still don't know how to get and handle post id.
Any help?