4
You can't use smarty in the custom block code you send because the code is outputting to direct HTML, not through using a smarty template. I think I was confused by what you needed to know.
I'm assuming you are trying to fit some database driven content into a custom block. I get that idea from the include file trying to get the output from one of your module pages and then using that info. I'm not sure that including a file that way will do anything for you. You likely need to include the file via the path if anything.
However, assuming you can do that there is a global variable $xoopsTpl that is used to send data to the smarty template. If smarty template uses it, great, if not, it's just a useless piece of information. However, assuming it's been set and exists through some function, if you can call the variable from the template, you can call it programmatically in your code.
For instance:
Quote:
<{$xoops_url}>
would become
$xoopsTpl=>getVar('xoops_url')
The other variables you'll need to know the name of, but they likely aren't block=>....
Likely it's just easier to make the direct calls to the database based on code you find in the module and other blocks and just output the HTML you want.
Or you could write another block for the module and update the module. They are fairly easy to add once you take the time to learn how.
Hope this helps.