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.
Stupid #1
Krak
New
Im trying to make an extension to add a header accross the top of the forum. I got the header file to be displayed and I got it to be rendered in the body tag. But the number 1 keeps popping up underneath it. How do I get rid of this 1?
It only puts the "1" when I use include("header.php"); if I put all of the html from the header file into the extension file then the 1 doesnt show up.
I'd rather keep the header in its own file, making it easy to modify, but if I cant, I guess I can always just slap it in the actual extension file (last resort).
I don't know if I did the extension right, I read some of the docu and got this far. Heh, its working so far. Any ideas?
=============================
class HdrPage extends Control {
function Render() {
# $this->Context->Writer->Write("blaha!");
$this->Context->Writer->Write(include("header.php"));
}
}
$HdrPage = $Context->ObjectFactory->NewContextObject($Context, "HdrPage");
$Page->AddControl("Menu_Render", $HdrPage);
=============================
the header.php include causes the 1, if i use <div class=\"HdrPage\">gsdgsdg</div> then there is no 1.
0
This discussion has been closed.
Comments
The only thing in the header.php file is 4 div tags and some text "this is the header file" stuff like that. There is no "1" on any of the pages I am using, so I dont know where its from or why it is there.
The 1 is being generated right after the header.php output and right before the rest of the normal Vanilla stuff.
header file
HeaderPage extension file
EDIT: If you want I can add an administration panel to it. Just a little something so the admin can input the header to display.