maatty Wrote:LeX- Wrote:Could you please tell me where to place this code in the script because it does not exist in the script which you posted.$plugins->run_hooks("forumdisplay_thread_end"); eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
Regards
That's code from MyBB =P if you want to know its in forumdisplay.php =P I was just pointing out how close the hook ( which is used in the plugin ) is near the eval ( printing out a thread ), so the plugin cant do his job properly ( changing the icon ) cause the eval is just behind the hook. What you could try is to move the hook, for ex.
Open forumdisplay.php
Find && Replace
$plugins->run_hooks("forumdisplay_thread_end");
Put the hook behind this line ( few lines up )
$inline_edit_tid = $thread['tid'];
Then try to mark a thread as solved and look if the icon is changed.