14
Unfortunately I can't test your scroll.php script because it accesses your database. I tried putting it in a custom php block, but when I loaded my page, all I got was "could not connect to database" on a blank page. This means the script is working, at least. Is this what you get too?
If so, I suggest you edit the database connection details in the script, this part: include 'forum/config.php';
maybe should be:include ("<{$xoops_url}>/xo/forum/config.php");