Favourites Create PDF Email Print

How to hide the STATISTICS tab in AUP version 1.4.0?

Author:
lucato
Date added:
Saturday, 06 June 2009
Last revised:
Saturday, 27 June 2009
Hits:
1798
Rating:
 
Vote for this:
Good - Bad
favoured:
1 Favour

Answer

Follow the steps below to get to hide the whole statistics tab in AUP version 1.4.0:

1) In the folder yoursite/components/com_alphauserpoints/views/account/tmpl open the file default.php;
2) Search the line 263 and add a comment before this line:

          /*  echo $this->pane->startPanel(JText::_( 'AUP_STATISTICS' ), "account-panel-statistics" );

3) go to the line 358 and at the end of the code after the ; close the comment with */ so the line 358 will look like that:
          echo $this->pane->endPanel(); */
4) So, by doing that you are putting all this code from line 263 to 358 between a comments and making it as a comment instead of a code, so a kind of hidding the code without deleting it form the original file. If you're editing your PHP file on tsWebEditor (Freeware) all commented lines will be orange and won't have effect as a code in the browser. As result won't show the STATISTICS tab.

 

Important : This hack is deprecated with the version 1.5.0 which integrate some options to show/hide statistics.

Category

Tags for this item

Goto Top