HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Activity Feed Reporting Nothing

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#111417 (In Topic #22389)
Avatar

Fan in action

Activity Feed 9 reporting nothing on ocPortal 9.0.22

I have the activity feed installed and placed on the left page so that administrators only will see it when logged in. Problem is the activity feed displays nothing. It reports "No activities to display yet." despite recent activity (within 24 hours).

IE: the Activity Feed its reporting no activity, while the Website Activity report on the admin homepage shows that there was in-fact activity.

I started using the Activity feed as (when it was working) it would have a link to new pages or images that are added to the site while the Website Activity displayed on the admin home page does not.
Back to the top
 
Posted
Rating:
#111418
Avatar

Hi,

What exact options do you have on the block?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#111419
Avatar

Fan in action

My settings for the block are:
Max = 10
Param = Activity
Member = blank
Mode = All activities
Grow = false
Refresh Time = 5
Failsafe = true
Cache = no caching
Quick cache = false

Code

{+START,IF,{$IS_ADMIN}}<input class="ocp_keep_ui_controlled" id="comcode_tag_1996616" readonly="readonly" size="45" style="cursor: pointer;" title="" type="text" value="main_activities (dbl-click to edit/delete)" />{+END}
Back to the top
 
Posted
Rating:
#111420
Avatar

Hi,

I think most likely it's due to a permission change. Activities will only show if a guest has access to view the action of that activity. E.g. for a calendar event they'd need access to the zone the calendar is in, the calendar page, and the particular calendar category.

The only other explanation I can think of is if the activity is being posted by a Guest, as only activities of members show.

If the activities table isn't growing, the permission explanation is probably true, as this check happens before the permission even gets logged.

In v10 we have a new concept of a 'modal user', instead of it hard-coding checks against Guest. E.g. you can set up a test user with the particular baseline access, and if that user has access then the activity gets logged.

In v9 you could hack the code. E.g. in cms_calendar.php:

Code

         if ((has_actual_page_access($GLOBALS['FORUM_DRIVER']->get_guest_id(),'calendar')) && (has_category_access($GLOBALS['FORUM_DRIVER']->get_guest_id(),'calendar',strval($type))))
         {
            $_from=cal_get_start_utctime_for_event($timezone,$start_year,$start_month,$start_day,$start_monthly_spec_type,$start_hour,$start_minute,false);
            $from=cal_utctime_to_usertime($_from,$timezone,false);
            $to=mixed();
            if (!is_null($end_year) && !is_null($end_month) && !is_null($end_day))
            {
               $_to=cal_get_end_utctime_for_event($timezone,$end_year,$end_month,$end_day,$end_monthly_spec_type,$end_hour,$end_minute,false);
               $to=cal_utctime_to_usertime($_to,$timezone,false);
            }
            $date_range=date_range($from,$to,!is_null($start_hour),make_nice_timezone_name($timezone));
            if ($recurrence!='') $date_range=do_lang('DOES_RECUR',$date_range);
            syndicate_described_activity('calendar:ACTIVITY_CALENDAR_EVENT',$title,$date_range,'','_SEARCH:calendar:view:'.strval($id),'','','calendar',1,NULL,true);
You could remove the first line to remove the permission checks.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:
 Add topic 

Quick reply   Contract

Your name:
Your message: