Quote:
Originally Posted by MarkFL
At the beginning of your plugin, add:
PHP Code:
global $threadinfo;
Let me know if that works. 
|
Thanks Mark, I'll give that a go, and will report back - though during the weekend in frustration I ditched the plugin and added a section to the "postbit legacy" template - perhaps not as 'convenient' as plugin, but it's partly working. Just need to narrow down what it is I'm sending through to the .php.
--------------- Added [DATE]1454923043[/DATE] at [TIME]1454923043[/TIME] ---------------
PHP Code:
global $threadinfo;
$template_hook['postbit_userinfo_right_after_posts'] .=
'<br><dt>Nominate for Members Choice Award </dt> <dd><a href="testingthread.php?threadid=' . '$threadinfo[title]' . '"> <img src="images/buttons/memchoice.png" style="width: 26px; height: 26px; border: 0px;" alt="Nominate This Poem for Members Choice Award. Thank you."></a></dd>';
returns : - http://localhost/poetsl/testingthread.php?threadid=$threadinfo[title]