Okay, if you want this hack to
only work for certain Forums/Subboards, than there are two steps you need to perform:
Step 1
In the ShowThread.php file, you are supposed to insert a section of code (from the hack instructions). What you need to do is to add the following code first (in the spot indicated by the hack instructions). Then, follow the instructions given in the commented section of the following code. Finally, add the section of code from the hack instructions where indicated below.
PHP Code:
/*
In the following section of code, insert the Forum IDs of the forums that you want this hack to work for. Each Forum ID needs to be surrounded by single-quotes ( ' ), and all but the last one needs to have a comma after each entry. In the following code, Forums 6 and 7 have been specified. Change this to suit your needs.
*/
$whoviewed_selective_forums = array(
'6',
'7'
);
if (in_array($foruminfo['forumid'], $whoviewed_selective_forums))
{
$show_whoviewed = true;
// Insert code from hack instructions right below this line
}
else
{
$show_whoviewed = false;
}
Step 2
In the ShowThread Template, you are also supposed to insert a section of code (from the hack instructions). What you need to do is to add the following code first (in the spot indicated by the hack instructions). Then, add the section of code from the hack instructions where indicated below.
Code:
<if condition="$show_whoviewed">
<!-- Insert Code from hack instructions right below this line -->
</if>
And that should do it!