Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  # 1
    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?
    •  
      CommentAuthorMark
    • CommentTimeAug 24th 2006 edited
     # 2
    \\nm
    • CommentAuthorSirNot
    • CommentTimeAug 24th 2006
     # 3
    Take a look at line 55 of library/Vanilla/Vanilla.Control.DiscussionGrid.php
    •  
      CommentAuthorMark
    • CommentTimeAug 24th 2006
     # 4
    Oh yeah - sirnot is right. You'll have to attach to a constructor to make it change, like this...
    •  
      CommentAuthorMark
    • CommentTimeAug 24th 2006 edited
     # 5
    function DiscussionGrid_RemovePageTitle(&$DiscussionGrid) {
    $DiscussionGrid->Context->PageTitle == ''
    }

    $Context->AddToDelegate('DiscussionGrid',
    'Constructor',
    'DiscussionGrid_RemovePageTitle');
    • CommentAuthorSirNot
    • CommentTimeAug 24th 2006 edited
     # 6
    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.
  2.  # 7
    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.
    • CommentAuthorSirNot
    • CommentTimeAug 24th 2006
     # 8
    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>
  3.  # 9
    Yep, that got it. Thanks for the help Mark and SirNot.
Add your comments
    Username Password
  • Format comments as