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

Under the hood

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

Comments

  • Options
    edited October 2006
    In the example above, they've just added their header/menu structure to the themes/head.php file :)
  • Options
    http://lussumo.com/docs/doku.php?id=vanilla:administrators:troubleshooting#theme_changes
  • Options
    edited December 2006
    Hi Jazzman and Dinoboff and everyone, I have finally decided to just implement a simple banner on top of my Vanilla Forum (http://www.lookatsabah.com.my/LOOKnShare/) After reading all posts i can find here, i have scaled down to two: A. http://lussumo.com/community/discussion/3995/trouble-placing-my-headers-banner/#Item_0 B. http://lussumo.com/community/discussion/3919/inserting-a-image-as-a-banner-header-please-help-me/#Item_0 All i need is to just put a banner like this here https://forrest2828.backpackit.com/pub/859083 on top of my fourm. Please advice: 1. For my case is it better for me to go for approach A or B? 2. What size (pixel x pixel) shall my banner be? Thank you very much.
  • Options
    Hi all, Any help would be much appreciated. Thanks
  • Options
    edited December 2006
    If all you need is a simple banner, I suppose you could use my Stuff Displayer extension. Just insert your banner within the HeaderTopDisplayer div, using HTML in default.php and/or tweaking the related CSS id in style.css, and you're done.
  • Options
    hi Ø Thanks for your reply and extension! I have: 1. Download Stuff Displayer and uploaded it "as is" 2. I can see immediately your icon appears "under the forum's header" ( http://www.lookatsabah.com.my/LOOKnShare/ ) 3. And i believe it is "generated" by line 40 of default.php 4. But we get similar line as per line 25 and line 55, how come both of them are not activated (showing)? 5. Is it something to do with lines 62, 66 and 70? 6. To be honest i do not know what shall i do with line 62 (if i want to display a banner above the forum's header. $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); Please advice. Thanks
  • Options
    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.
  • Options
    I see!!! Yes you r right. Oh I should have notice the difference ($ vs //) myself. Thank you! Let me try that now
  • Options
    edited December 2006
    Umm Ø [[Deleted]]
This discussion has been closed.