Current time: 05-23-2012, 02:53 PM Hello There, Guest! (LoginRegister)


Switch a certain page (.php) to display a custom theme
06-28-2008, 01:40 AM
Post: #1
Switch a certain page (.php) to display a custom theme
In particular, I want register.php to always display Black Rose instead of the theme the user has anyways. I tried changing
PHP Code:
$stylelist build_theme_select("style"); 
to
PHP Code:
$stylelist build_theme_select("Black Rose"); 
But nothign happened. What should I do?

[Image: sig.gif]

iHelpYa Forums - Join Today
Find all posts by this user
06-28-2008, 07:06 AM
Post: #2
RE: Switch a certain page (.php) to display a custom theme
Revert your previous modification, it won't work.

In global.php, find:
PHP Code:
// Fetch the theme to load from the database 
Before that line, add:
PHP Code:
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.

Dennis Tsang :: MyBB Developer
Follow me on Twitter: @dennistt
Visit this user's website Find all posts by this user
06-28-2008, 02:21 PM
Post: #3
RE: Switch a certain page (.php) to display a custom theme
(06-28-2008 07:06 AM)DennisTT Wrote:  Revert your previous modification, it won't work.

In global.php, find:
PHP Code:
// Fetch the theme to load from the database 
Before that line, add:
PHP Code:
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

[Image: sig.gif]

iHelpYa Forums - Join Today
Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication