In global.php, find this:
PHP Code:
// automatically query forum for style info if $pollid exists
else if ($_REQUEST['pollid'])
{
$pollid = intval($_REQUEST['pollid']);
$getforum = $DB_site->query_first("SELECT forum.forumid, styleid, ((options & $_FORUMOPTIONS[styleoverride]) != 0) AS styleoverride FROM " . TABLE_PREFIX . "forum AS forum, " . TABLE_PREFIX . "thread AS thread WHERE forum.forumid = thread.forumid AND pollid = $pollid");
if (($getforum['styleoverride'] == 1 OR $bbuserinfo['styleid'] == 0) AND !defined('BYPASS_STYLE_OVERRIDE'))
{
$codestyleid = $getforum['styleid'];
}
unset($getforum);
}
Underneath it, add this:
PHP Code:
else if (THIS_SCRIPT == 'script')
{
$codestyleid = 1337;
}
Change "script" to what you have defined THIS_SCRIPT to be at the top of the file, and 1337 to the styleid that you want to use.