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.
Flash header
We just launched our forums using Vanilla, and they are great, but I would like the forums to match the rest of our site and use the Flash navigation the rest of the site uses. How can I add it and also control the width of the forum.
Here are examples of the site and forum
Forum
http://mygreenworld.org/forums/
Our Site with the flash header
http://greenchefs.tv/
Also our wiki with the flash header
http://gknowledge.org/
0
This discussion has been closed.
Comments
I caught your post about this on the blog, and I figured I'd show you that even with vanilla 0.9.2.x it can be very easy to accomplish this.
Here is a quick extension I wrote that inserts an html file at the top of the page:
<?php /* Extension Name: Banner Insertion Extension Url: N/A Description: Inserts a banner at the top of the page Version: 1.0 Author: Mark O'Sullivan Author Url: http://markosullivan.ca/ Copyright 2003 - 2005 Mark O'Sullivan This file is part of Vanilla. Vanilla is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Vanilla is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Vanilla; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA The latest source code for Vanilla is available at www.lussumo.com Contact Mark O'Sullivan at mark [at] lussumo [dot] com */ if (in_array($Context->SelfUrl, array("index.php","comments.php", "account.php", "settings.php", "search.php", "post.php"))) { class BannerInsertion extends Control { function BannerInsertion(&$Context) { $this->Control($Context); } function Render() { include("./extensions/BannerInsertion/your_banner.html"); } } $BannerInsertion = new BannerInsertion($Context); $Head->AddStyleSheet("./extensions/BannerInsertion/style.css"); $Page->AddControl("Menu_Render", $BannerInsertion); } ?>
Obviously, you'd need to place this code in a file within your extensions folder called "BannerInsertion.php". Then you'd need to create a folder called "BannerInsertion" and within that folder create a "your_banner.html" file with your custom banner in there.
You will also probably need to customize the CSS a bit to suit your needs, so I threw in another line there for a custom css file in your "BannerInsertion" folder called "style.css".
Good Luck!
But you seriously shouldn't be applying a test extension on a live server. You should test it on a local machine first. Don't you have a local copy of your site on your home machine?
Anyway, re-copy that code and it should work - but you'll still have some css issues to deal with - which is why I still say you should test it out somewhere else first.
It should work now. Sorry again.
, "signin.php", "leave.php"
to the
if (in_array($Context->SelfUrl, array("index.php","comments.php", "account.php", "settings.php", "search.php", "post.php"))) {
So that whole line would become
if (in_array($Context->SelfUrl, array("index.php","comments.php", "account.php", "settings.php", "search.php", "post.php", "signin.php", "leave.php"))) {
^^the above is prolly wrong.