This object is in archive! 

How to hide the "Statistics" section at top of right sidebar?

Archived Jennifer B. 12 years ago

Hi guys! would like to replace that "Statistics" section with something else, i.e. a 300x250 ad or something like it... or just not show it.

How can I do that?


Thanks!Dan

Best Answer
photo

To hide "Statistics" section use this snippet.

In "\application\modules\system\templates\_right-menu.phtml" insert between (line 1-3)

  1. <?php foreach($this->menu as $item):?>

and

  1. <h2><?php echo $item->getLabel()?></h2>

this code:

  1. <?php if ('statistics' == $item->getId()) continue; ?>

After you'll have the following:

  1. <?php foreach($this->menu as $item):?>
  2. <?php if ('statistics' == $item->getId()) continue; ?>
  3. <h2><?php echo $item->getLabel()?></h2>
  4. <?php if($item->hasPages()):?>
  5. ........................

Note: You may need to clean cache to apply changes.

Replies (6)

photo
1

To hide "Statistics" section use this snippet.

In "\application\modules\system\templates\_right-menu.phtml" insert between (line 1-3)

  1. <?php foreach($this->menu as $item):?>

and

  1. <h2><?php echo $item->getLabel()?></h2>

this code:

  1. <?php if ('statistics' == $item->getId()) continue; ?>

After you'll have the following:

  1. <?php foreach($this->menu as $item):?>
  2. <?php if ('statistics' == $item->getId()) continue; ?>
  3. <h2><?php echo $item->getLabel()?></h2>
  4. <?php if($item->hasPages()):?>
  5. ........................

Note: You may need to clean cache to apply changes.

photo
1

Hey Paul, thanks so much for the super fast response on this! :-)


Have an awesome day!

photo
1

Hey Paul!


OK, I see above how to remove Statistics, that's great! :-)


But how can I put something else there.


Specifically, I would like to put the exact thing you guys have on your own UseResponse Community here: facebook page like, the facebook faces box, and twitter feed.


Screenshot: http://www.evernote.com/shard/s79/sh/b41ab91b-f6e8-40cc-b766-47ddd88e6967/7f4947c008ca7623b613cde9dce86f9d


You only have it on the homepage, but I would like it to show on all pages. because no matter on what page of the forums our visitors are on, we want them to be able to like and follow us on facebook/twitter. :-)


Here are our facebook/twitter pages for this:

Twitter: https://twitter.com/blogsuccessjrnl

Facebook: https://www.facebook.com/BlogSuccessJournal


Thanks!

photo
1

Jennifer B. wrote:

Hey Paul!

OK, I see above how to remove Statistics, that's great! :-)

But how can I put something else there.

Specifically, I would like to put the exact thing you guys have on your own UseResponse Community here: facebook page like, the facebook faces box, and twitter feed.

Screenshot: http://www.evernote.com/shard/s79/sh/b41ab91b-f6e8-40cc-b766-47ddd88e6967/7f4947c008ca7623b613cde9dce86f9d

You only have it on the homepage, but I would like it to show on all pages. because no matter on what page of the forums our visitors are on, we want them to be able to like and follow us on facebook/twitter. :-)

Here are our facebook/twitter pages for this:

Twitter: https://twitter.com/blogsuccessjrnl

Facebook: https://www.facebook.com/BlogSuccessJournal

Thanks!

Jennifer,


Replace file \application\templates\share.phtml with mine. It has already configured specifically for you. See attached.

photo
1

Hi Paul,


Thanks so much, i followed the steps yet it shows the statistics. http://moneybagapp.com/forum

photo
1

Update: in 2.3.4 release there is permission to hide people in Statistics. Could be set in Administration->Roles for any type of Role

Replies have been locked on this page!