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.
A few general uestions
Hi,
Just installed Vanilla and love it to bits.
I was wondering if anyone could help me with the following:
- is there anyway members can be automatically accepted to the forum?
- is there a way to setup a forum such as annoucements which only administration can post in but everyone can view.
Also I would like to add the following line to the bottom of the head.php template but not sure how to go about this. can anyone help? thanks
<iframe src="url here" width="100%" height="30" frameborder="0" scrolling="no"></iframe>
here is the bottom of head.php.
}
$BodyId = "";
if ($this->BodyId != "") $BodyId = ' id="'.$this->BodyId.'"';
echo $HeadString . '</head>
<body'.$BodyId.' '.$this->Context->BodyAttributes.'>';
?>
0
This discussion has been closed.
Comments
<?php if (in_array($Context->SelfUrl, array("index.php", "account.php", "categories.php", "comments.php", "post.php", "search.php", "extension.php", "settings.php"))) { class MyIFrame extends Control { function MyIFrame(&$Context) { $this->Name = "MyIFrame"; $this->Control($Context); } function Render() { echo ' <iframe src="url here" width="100%" height="30" frameborder="0" scrolling="no"></iframe> '; } } $MyIFrame = new MyIFrame($Context); $Page->AddRenderControl($MyIFrame, $Configuration["CONTROL_POSITION_HEAD"]+1); } ?>
And that should add it to the very top of the page. Easier to do, and you can turn it on/off at will, without editing templates.
For the read-only categories, you should have a look at this discussion.