I don´t wanna to list anything.. Hide it completly., I know that it´s so strange but when i finish it and show you you understanding me..
Thanks!
On 07/09/2007, admin@vichaunter.com admin@vichaunter.com wrote:
I don´t wanna to list anything.. Hide it completly., I know that it´s so strange but when i finish it and show you you understanding me..
Thanks!
If you say so... Try going to CategoryPage.php (or whatever it's called, I'm not on my computer, so can't check) and commenting out pretty much everything...
Thomas Dalton wrote:
On 07/09/2007, admin@vichaunter.com admin@vichaunter.com wrote:
I don´t wanna to list anything.. Hide it completly., I know that it´s so strange but when i finish it and show you you understanding me..
Thanks!
If you say so... Try going to CategoryPage.php (or whatever it's called, I'm not on my computer, so can't check) and commenting out pretty much everything...
Or hide it the easy way: Add #mw-pages { display: none } to Mediawiki:Common.css
Or hide it the easy way: Add #mw-pages { display: none } to Mediawiki:Common.css
Really do you thing that i go to hidden ALL the wiki?? Really, i need hidden only the lists under the Category page content, I tried to hidden the $r lines but continues appearing the subcategory and article list headers with the number of articles. Thanks
Really do you thing that i go to hidden ALL the wiki?? Really, i need hidden only the lists under the Category page content, I tried to hidden the $r lines but continues appearing the subcategory and article list headers with the number of articles. Thanks
Try commenting out the entire getHTML() method of CategoryPage.php (just the contents of it, you might need the function declaration to stop it crashing). Then you should end up with just the skin and no contents.
Try commenting out the entire getHTML() method of CategoryPage.php (just the contents of it, you might need the function declaration to stop it crashing). Then you should end up with just the skin and no contents.
I tried commenting this lines:
function getHTML() { /*global $wgOut, $wgCategoryMagicGallery, $wgCategoryPagingLimit; wfProfileIn( __METHOD__ );
$this->showGallery = $wgCategoryMagicGallery && !$wgOut->mNoGallery;
$this->clearCategoryState(); $this->doCategoryQuery(); $this->finaliseCategoryState();
$r = $this->getCategoryTop() . $this->getSubcategorySection() . $this->getPagesSection() . $this->getImageSection() . $this->getCategoryBottom();
wfProfileOut( __METHOD__ ); return $r;*/ }
But it still works perfectly, i dont know whats wrong, i comment all the function and dont crash, nothing. Please if you know why this happens im very greatfully
Try to comment out every single line of the function by adding an # at the beginning of the line.
I've found that sometimes commenting out more than one line by putting /* at the beginning and */ at the end didn't work properly. If you have an editor with syntax-highlighting you should be able to see if the comment works the way you want it...
VicHaunter schrieb:
Try commenting out the entire getHTML() method of CategoryPage.php (just the contents of it, you might need the function declaration to stop it crashing). Then you should end up with just the skin and no contents.
I tried commenting this lines:
function getHTML() { /*global $wgOut, $wgCategoryMagicGallery, $wgCategoryPagingLimit; wfProfileIn( __METHOD__ );
$this->showGallery = $wgCategoryMagicGallery && !$wgOut->mNoGallery;
$this->clearCategoryState(); $this->doCategoryQuery(); $this->finaliseCategoryState();
$r = $this->getCategoryTop() . $this->getSubcategorySection() . $this->getPagesSection() . $this->getImageSection() . $this->getCategoryBottom();
wfProfileOut( __METHOD__ ); return $r;*/ }
But it still works perfectly, i dont know whats wrong, i comment all the function and dont crash, nothing. Please if you know why this happens im very greatfully
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Try to comment out every single line of the function by adding an # at the beginning of the line.
I've found that sometimes commenting out more than one line by putting /* at the beginning and */ at the end didn't work properly. If you have an editor with syntax-highlighting you should be able to see if the comment works the way you want it...
I tried to do it, this is the final code: function getHTML() { #global $wgOut, $wgCategoryMagicGallery, $wgCategoryPagingLimit; #wfProfileIn( __METHOD__ );
#$this->showGallery = $wgCategoryMagicGallery && !$wgOut->mNoGallery;
#$this->clearCategoryState(); #$this->doCategoryQuery(); #$this->finaliseCategoryState();
#$r = $this->getCategoryTop() . # $this->getSubcategorySection() . # $this->getPagesSection() . # $this->getImageSection() . # $this->getCategoryBottom();
#wfProfileOut( __METHOD__ ); #return $r; }
The problem continues, i know that isn't from cache because i disabled it and reload the pages cleaning ie and firefox cache. I'm using Dreamweaver and all shows fine, i tried to comment another parts and can disable the lists but not the articles quantity headers and titles of the list, only hidden the <ul><li> code with his results. Its some extension to do that?? Thankyou
mediawiki-l@lists.wikimedia.org