If you are using a vBulletin MySQL Table Prefix make sure to edit those queries in toptopics_vb35_instruction.txt (change `settinggroup`, `setting` & `phrase` to whatever your tables are actually called).
Also make sure to edit toptopics.php and change (3 times!):
PHP Code:
FROM " . TABLE_PREFIX . "thread
to:
PHP Code:
FROM " . TABLE_PREFIX . "thread AS thread
Otherwise it won't work with a TABLE_PREFIX.