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.
Remove "All Discussions" and other information above the discussion grid
So, this the top of my discussion grid:
http://h4xr.org/retv
Is there any way to remove these informations like "All Discussions", the count of discussions and those page numbers? I just want to display it below the the discussions. Above it there should be nothing.
little php tweaks?
http://h4xr.org/retv
Is there any way to remove these informations like "All Discussions", the count of discussions and those page numbers? I just want to display it below the the discussions. Above it there should be nothing.
little php tweaks?
0
This discussion has been closed.
Comments
#Content div h1, .PageInfo { display:none; }
If you want to still do it, replace discussions.php with this:
<?php // Note: This file is included from the library/Vanilla/Vanilla.Control.DiscussionGrid.php class. echo '<div id="ContentBody"> <ol id="Discussions">'; $Discussion = $this->Context->ObjectFactory->NewContextObject($this->Context, 'Discussion'); $FirstRow = 1; $CurrentUserJumpToLastCommentPref = $this->Context->Session->User->Preference('JumpToLastReadComment'); $DiscussionList = ''; $ThemeFilePath = ThemeFilePath($this->Context->Configuration, 'discussion.php'); $Alternate = 0; $RowNumber = 0; while ($Row = $this->Context->Database->GetRow($this->DiscussionData)) { $RowNumber++; $this->DelegateParameters['RowNumber'] = &$RowNumber; $Discussion->Clear(); $Discussion->GetPropertiesFromDataSet($Row); $Discussion->FormatPropertiesForDisplay(); // Prefix the discussion name with the whispered-to username if this is a whisper if ($Discussion->WhisperUserID > 0) { $Discussion->Name = @$Discussion->WhisperUsername.': '.$Discussion->Name; } $this->DelegateParameters['Discussion'] = &$Discussion; $this->CallDelegate( 'PreSingleDiscussionRender' ); // Discussion search results are identical to regular discussion listings, so include the discussion search results template here. include($ThemeFilePath); $FirstRow = 0; $Alternate = FlipBool($Alternate); } echo $DiscussionList.' </ol> </div>'; if ($this->DiscussionDataCount > 0) { echo '<div class="ContentInfo Bottom"> <div class="PageInfo"> <p>'.$pl->GetPageDetails($this->Context).'</p> '.$PageList.' </div> <a id="TopOfPage" href="'.GetRequestUri().'#pgtop">'.$this->Context->GetDefinition('TopOfPage').'</a> </div>'; } ?>