XF 1.4 Getting user_id from message_user_info into external script


Active member
Not sure if this is possible, but I have an issue I'd like to resolve.

I have an external script that does a query to a separate db.

I'm including the query (through a template include) into the message_user_info template.

So for example I have this:

<xen:include template="points" /> in the template which runs a query to get the points from my database.

The problem I'm having is I need to get the user_id from the message_user_info template. Is it possible to get the user_id?