PDA

View Full Version : How Would I


TheMayhem
11-08-2004, 09:42 PM
I know you can assign forums a specific style but let's say I make a custom php page that is vbulletin integrated. How could I assign this page to a specific style so it'd overwrite all other user styles reguardless of what they have selected?

Zachery
11-08-2004, 09:54 PM
I know you can assign forums a specific style but let's say I make a custom php page that is vbulletin integrated. How could I assign this page to a specific style so it'd overwrite all other user styles reguardless of what they have selected?
https://vborg.vbsupport.ru/showthread.php?s=&threadid=61064 Give that a shot ;)

Link14716
11-08-2004, 09:54 PM
In global.php, find this:
// 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:
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.