How can I do to make this script work in postbit_legacy ?
I included the following code to add a button directly in the first post. The only problem is that the script is loaded in "showthread_complete" so the data doesn't load in this template :
Code:
<if condition="!$GLOBALS['FIRSTPOSTID'] and THIS_SCRIPT == 'showthread'">
<if condition="$show['solvedthread']">
<a href="solved.php?$session[sessionurl]do=marksolved&t=$threadinfo[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_marksolved]" vspace="1" /></a>
</if>
<if condition="$show['solvedthread_unsolve']">
<a href="solved.php?$session[sessionurl]do=markunsolved&t=$threadinfo[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved2.gif" alt="$vbphrase[solvedthread_markunsolved]" vspace="1" /></a>
</if>
</if>
$show['solvedthread'] and $show['solvedthread_unsolve'] are empty.
An idea?