In case anyone else is wondering about this I did the following to
prevent it from breaking:
@recent_activity = []
@recent_activity = current_user.network_activity(:size =>
15, :current => 1) if current_user
Which will just leave the whats fresh empty unless someone is logged
in. I plan to eventually fill it in with events and other public
information.
On Sep 1, 10:41 am, "Bruno Bornsztein" <[EMAIL PROTECTED]>
wrote:
> This is easy to do, you'll just need to override the
> get_recent_footer_content of base_controller, and replace line 116 with:
>
> @recent_activity = current_user.network_activity(:size => 15, :current
> => 1)
>
> Warning: this will break if there is no logged in user. You should probably
> provide a fallback for non-logged-in users.
>
> Good luck!
>
> On Sun, Aug 31, 2008 at 12:39 AM, jdutil <[EMAIL PROTECTED]> wrote:
>
> > I noticed how user activity is displayed in the whats fresh... Id only
> > like user data to display there if the users are friends. Anyone else
> > have an example of how they accomplished this? Or alternative ideas
> > of how it should be handled?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---