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

A few general uestions

edited September 2006 in Vanilla 1.0 Help
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.'>'; ?>

Comments

  • Options
    I believe you could make an extension with something like

    <?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.
  • Options
    i have sorted it thanks. i found writing normal html below the close of the php coding works great :-)
  • Options
    Does anyone know how to auto accept members? is this possible? also is there anyway to stop people from posting in a category but can still view it? thanks
  • Options
    edited September 2006
    To automatically accept members, you just need to go into settings > registration settings, then precise a role with normal permissions in the "new members role" drop down menu. The default role "Member", for exemple.

    For the read-only categories, you should have a look at this discussion.
This discussion has been closed.