Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 14

CurtisOdenHotBlackcolinwill78ericgilletteestlf349141590tc74422 +6 guests

Problems adding a banner

Hi,

I did add a banner above my Vanilla forum like explained in the documentation (Look here). It should not be shown when logging in or out (people.php), But it does anyway.

The php-code looks like that:
-----------------------------
if (in_array($Context->SelfUrl, array("index.php", "account.php", "categories.php", "comments.php", "post.php", "search.php", "settings.php"))) {
echo "BANNER";
}
-----------------------------

Does anyone has a hint how to not display it while logging in and out?

Comments

  • Posts: 755
    You can check if a user is logged in with: if( $Context->Session->UserID > 0 ) ...
  • TexTex
    Posts: 261
    Thanks, but that's not my problem. I don't want to insert the banner on page people.php. As it is in this forum. Sorry for not making that clear enough.
  • Posts: 4,883
    What you have there should work... I bet it's a case of placing your content outside a curly brace when it should be inside.
  • TexTex
    Posts: 261
    Done a stupid mistake. Sorry and thanks!
This discussion has been closed.