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

Altering the Title

This might be too much of a pain to do, but I'll take any suggestions short of creating a static page: I would like to remove the PageTitle information from the main page (the All Discussions page), but none of the others. I could remove the text from the AllDiscussions language file, but that leaves the - after the forum name in the browser window and removes the title from the board. I could delete .$this->Context->PageTitle. from header.php, but that takes it away from all pages. Any suggestions?

Comments

  • Options
    MarkMark Vanilla Staff
    edited August 2006
    \\nm
  • Options
    Take a look at line 55 of library/Vanilla/Vanilla.Control.DiscussionGrid.php
  • Options
    MarkMark Vanilla Staff
    Oh yeah - sirnot is right. You'll have to attach to a constructor to make it change, like this...
  • Options
    MarkMark Vanilla Staff
    edited August 2006
    function DiscussionGrid_RemovePageTitle(&$DiscussionGrid) { $DiscussionGrid->Context->PageTitle == '' } $Context->AddToDelegate('DiscussionGrid', 'Constructor', 'DiscussionGrid_RemovePageTitle');
  • Options
    NickENickE New
    edited August 2006
    Mark, it looks like you've forgotten a code end tag. If you want to you could update to the latest version of the Html Formatter, which should prevent things like this from happening.
  • Options
    The solution basically works the same as removing the text from the AllDiscussions language file; however, it still leaves the "-" after the forum title in the browser window, and it takes away the title from just above the list of posts on the main page.
  • Options
    Go into themes/head.php and replace<title>'.$this->Context->Configuration['APPLICATION_TITLE'].' - '.$this->Context->PageTitle.'</title>with<title>'.$this->Context->Configuration['APPLICATION_TITLE'].($GLOBALS['Context']->SelfUrl == 'index.php' ? '' : (' - '.$this->Context->PageTitle)).'</title>
  • Options
    Yep, that got it. Thanks for the help Mark and SirNot.
This discussion has been closed.