SimplePortal

Customization => Themes and Graphics => Topic started by: renzariche on December 01, 2009, 11:47:16 AM

Title: Displaying a Specific Background Image for Portal Only
Post by: renzariche on December 01, 2009, 11:47:16 AM
Hey I was wondering if there is a way I can display certain background images for the Portal and for rest of the SMF pages. The way I want to set up my blocks, I'd like to add a background that helps it's arrangement, however, this only seems to show in the other pages such as members, or my messages page which makes it look really out of place.

I've tired looking for this solution through search but haven't found what I was looking for. Thanks!
Title: Re: Displaying a Specific Background Image for Portal Only
Post by: Nathaniel on December 09, 2009, 10:43:42 PM
That depends on the theme that you are using. I would recommend that you start by looking at the index.template.php file for your theme.

The 'if' statement that will tell you if there are any SimplePortal blocks that will be shown, looks like this:
Code: [Select]
if (!empty($context['SPortal']['blocks']))
{
      // Put your code here to show something when there are SimplePortal blocks as well.
}
SimplePortal 2.3.8 © 2008-2024, SimplePortal