GithubHelp home page GithubHelp logo

nischayn22 / recentactivityfeed Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 212 KB

Refer https://github.com/wikimedia/mediawiki-extensions-RecentActivityFeed for the latest changes.

PHP 69.78% JavaScript 30.22%

recentactivityfeed's Introduction

RecentActivityFeed

A customizable way to view recent activities on your wiki.

Currently supports customized action, title for the display and activity users for the query.

Usage

An example from Education Program's view course activity action:

            $recentActivityFeed = new \SpecialRecentActivityFeed( 'Education Program:' . $courseTitle );
            $recentActivityFeed->setCustomDescription( 'Activity for course ' . $courseTitle );
            $recentActivityFeed->setParams(array('action' => 'epcourseactivity'));

            $students = $course->getStudents();
            $users = array();
            foreach($students as $student){
              $users[] = $student->getUser()->getId();
            }

            $recentActivityFeed->setAdditionalConds( array('rc_user' => $users ) );
            $recentActivityFeed->execute('');
            return;

Authors

Nischay Nahata for Wikiworks.com for wikiedu.org

recentactivityfeed's People

Contributors

nischayn22 avatar

Watchers

 avatar  avatar

recentactivityfeed's Issues

Log entries in RAF have formatting problem

When an event in the RAF is a log entry, it starts off by naming and linking the log in parentheses, like this:

(Education Program student log)25 August 2014; 21:15 . . Admin (Talk | contribs) enrolled Cip as a student in course Foo 1 (now) โ€Ž

There is no space between the log and the datetime. By comparison, entries is Special:RecentChanges include a semicolon and a space, like this:

(Deletion log); 17:39 . . Secret (talk | contribs | block) deleted page Normann algorithm โ€Ž(Expired PROD, concern was: Non-notable algorithm. Article is based on a single student thesis which has not been published or peer reviewed.)

Strict errors after upgrading to mw1.24

Strict standards: Declaration of SpecialRecentActivityFeed::doHeader() should be compatible with that of ChangesListSpecialPage::doHeader() in /vagrant/mediawiki/extensions/RecentActivityFeed/SpecialRecentActivityFeed.php on line 29 Call Stack: 0.2053 645960 1. {main}() /vagrant/mediawiki/index.php:0 1.5629 4128952 2. MediaWiki->run() /vagrant/mediawiki/index.php:46 1.5631 4128952 3. MediaWiki->main() /vagrant/mediawiki/includes/MediaWiki.php:460 1.6286 10533496 4. MediaWiki->performRequest() /vagrant/mediawiki/includes/MediaWiki.php:609 1.6386 11684448 5. MediaWiki->performAction() /vagrant/mediawiki/includes/MediaWiki.php:307 1.6389 11685384 6. FormlessAction->show() /vagrant/mediawiki/includes/MediaWiki.php:439 1.7198 19766816 7. EducationProgram\ViewCourseActivityAction->onView() /vagrant/mediawiki/includes/actions/FormlessAction.php:43 1.7229 19910464 8. EducationProgram\CourseActivityView->displayActivity() /vagrant/mediawiki/extensions/EducationProgram/includes/actions/ViewCourseActivityAction.php:52 1.7391 21315040 9. class_exists() /vagrant/mediawiki/extensions/EducationProgram/includes/CourseActivityView.php:64 1.7391 21315568 10. AutoLoader::autoload() /vagrant/mediawiki/extensions/EducationProgram/includes/CourseActivityView.php:0 1.7409 21527008 11. require('/vagrant/mediawiki/extensions/RecentActivityFeed/SpecialRecentActivityFeed.php') /vagrant/mediawiki/includes/AutoLoader.php:1268

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.