MyBB Community Forums

Full Version: Different logo for guests?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!
How is it possible for guests to see a different logo from what members see?
I mean to have a different main logo for guests and another one for members.

Thanks!
You could make a php file with these contents and use it as your logo:

<?php
define("IN_MYBB",1)
include_once("global.php");
if($mybb->user['uid'] != 0)
{
//member
header("Location: http://yousite.com/memberlogo.jpg");
} else {
//guest
header("Location: http://yousite.com/guestlogo.jpg");
}

?>

It MUST be in your forum root, i.e. where index.php is.

Change http://yousite.com/guestlogo.jpg and http://yousite.com/memberlogo.jpg to the location of the different images you want.
(2012-05-25, 02:31 PM)Paul H. Wrote: [ -> ]You could make a php file with these contents and use it as your logo:

<?php
define("IN_MYBB",1)
include_once("global.php");
if($mybb->user['uid'] != 0)
{
//member
header("Location: http://yousite.com/memberlogo.jpg");
} else {
//guest
header("Location: http://yousite.com/guestlogo.jpg");
}

?>

It MUST be in your forum root, i.e. where index.php is.

Change http://yousite.com/guestlogo.jpg and http://yousite.com/memberlogo.jpg to the location of the different images you want.

Thank you! Big Grin