Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Problems adding a banner

TexTex
edited July 2006 in Vanilla 1.0 Help
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

  • Options
    edited July 2006
    You can check if a user is logged in with: if( $Context->Session->UserID > 0 ) ...
  • Options
    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.
  • Options
    MarkMark Vanilla Staff
    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.
  • Options
    Done a stupid mistake. Sorry and thanks!
This discussion has been closed.