Questions and Answers

How do I collect points?

  • +4
    Chosen as best answer
  • +1
    Posted answer
  • +1
    Posted question
  • +1
    Thumb up
  • -1
    Thumb down
49

by mikael m. in Critique Request about May 18, 2012 closed - report

wall activity-feed for guest members?

hi,

 

I want to disable the visibility, wall of my website for guest members.
how can I disable, this links for guest members?


www.yousite.xxx/widget/index/name/activity.feed
www.yousite.xxx/widget/index/name/activity.feed?mobile=0

 

This is a BIG Problem for my website :-( and for other SE4 users


thanks

 

sorry for my englisch i use google & co. translater

Answer: 1  •  Score 0  •  Views: 2752

1 Answer
Browse by
  • 37

    by Anatolii about May 18, 2012 Best answer

    Add next code

     

    if( !$viewer->getIdentity() ) {
    return $this->setNoRender();
    }

     

    to file application/modules/Activity/widgets/feed/Controller.php after line

     

    $viewer = Engine_Api::_()->user()->getViewer();

    • Score: 0
    3 comments
    • mikael m.
      by mikael m.
      May 18, 2012

      thank :-) you can please tell me precisely where I should to add code?

    • mikael m.
      by mikael m.
      May 18, 2012

      Thanks :-) works very well
      public function indexAction()
      {
      // Don't render this if not authorized...  more

    • Sophy Reid
      by Sophy Reid
      August 1, 2012

      After disabling the visibility of the wall to non-member, what else will be shown on the home page?

Question was closed.