MyBB Community Forums

Full Version: Switch a certain page (.php) to display a custom theme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In particular, I want register.php to always display Black Rose instead of the theme the user has anyways. I tried changing
$stylelist = build_theme_select("style");
to
$stylelist = build_theme_select("Black Rose");
But nothign happened. What should I do?
Revert your previous modification, it won't work.

In global.php, find:
// Fetch the theme to load from the database
Before that line, add:
if(strtolower(basename($_SERVER['PHP_SELF'])) == 'member.php' && ($mybb->input['action'] == 'register' || $mybb->input['action'] == 'do_register'))
{
    $loadstyle = "tid='X'";
}
You need to replace the X with the numeric theme ID.
(2008-06-28, 07:06 AM)DennisTT Wrote: [ -> ]Revert your previous modification, it won't work.

In global.php, find:
// Fetch the theme to load from the database
Before that line, add:
if(strtolower(basename($_SERVER['PHP_SELF'])) == 'member.php' && ($mybb->input['action'] == 'register' || $mybb->input['action'] == 'do_register'))
{
    $loadstyle = "tid='X'";
}
You need to replace the X with the numeric theme ID.

Thx, I'll do that