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.
Under the hood
Hi All,
I have seen a lot of website incorporating Vanilla under the main site's original (main) heady (if i may call that)
Example: http://www.monoslideshow.com/vanilla/
Is there a good tutorial as how to achieve that? Kindly point me to one if possible.
Thanks
forrestRain
0
This discussion has been closed.
Comments
5. Is it something to do with lines 62, 66 and 70?
Yes. For example, let's say you want to activate the content above your forum's header. You have this block of code:
$HeaderTopDisplayer = new HeaderTopDisplayer($Context); //Comment or uncomment the line below to display or hide your stuff above your forum: //$Page->AddRenderControl($HeaderTopDisplayer,$Configuration["CONTROL_POSITION_HEAD"]+1);
The // at the beginning of a line means what follows is only a comment. It's just ignored. So, in order to make the extension display an item, you need to remove them. Like this, at line 63:
$HeaderTopDisplayer = new HeaderTopDisplayer($Context); //Comment or uncomment the line below to display or hide your stuff above your forum: $Page->AddRenderControl($HeaderTopDisplayer,$Configuration["CONTROL_POSITION_HEAD"]+1);
Now your content inserted at line 25 should be displayed. Since you only need a banner at the top, you'll want to hide the item displayed by default under your forum's header, at line 40. To hide it, go to line 67, and put two slashes before the code, like this:
$HeaderBottomDisplayer = new HeaderBottomDisplayer($Context); //Comment or uncomment the line below to display or hide your stuff under your forum's header: //$Page->AddRenderControl($HeaderBottomDisplayer,$Configuration["CONTROL_POSITION_BODY_ITEM"]-2);
Each time you want to hide or show one of the tree content items, all you need to do is to put or remove two slashes at the beginning of lines 63, 66 or 71.