Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
6692191
Fix parent link (really show parent and not the same comment)
vitalif Dec 10, 2013
93f8559
Remove duplicate line
vitalif Dec 20, 2013
4671860
Fix infinite recursion in history of page with included Special:Wikilog
vitalif Jan 14, 2014
ec0d9a7
Bug 107377 - fix too long title of wikilog items
Dec 23, 2013
7a91efc
Bug 107377 - fix text; fix string for finding of url length limit
Dec 23, 2013
90a735b
Code style
vitalif Jan 24, 2014
e31ff15
:-D change > to <
vitalif Jan 24, 2014
aff6979
Default non-standard $wgMaxTitleBytes to 255 (fix compatibility with …
vitalif Feb 19, 2014
767a5a2
Use alias for page table
vitalif Feb 25, 2014
c2e83c2
Fix publishing via ~~~~ and enable email notifications in that case.
vitalif Feb 27, 2014
beb715d
Remove todo item :)
vitalif Feb 27, 2014
86a8909
Fallback to article->getText()
vitalif Feb 27, 2014
956dee3
Fix fatal error on Special:WikilogComments
vitalif Mar 5, 2014
07eece4
Allow switching thread/list view in "unrelated" Special:WikilogComments
vitalif Mar 5, 2014
bea990f
s/wikilog-ptswitsher/wikilog-ptswitcher/
vitalif Mar 10, 2014
95d296a
Do not crash on replies to anonymous comments in list view
vitalif Mar 10, 2014
414870c
Support notcategory= option in Special:Wikilog inclusion
vitalif Mar 24, 2014
6e7f57a
Fix captcha trigger for comments by changing form target
vitalif May 8, 2014
943f851
Create parent blog pages automatically if not yet
vitalif May 8, 2014
15b676e
Fix subscriptions on titles with spaces ^^
vitalif May 13, 2014
56d2afa
Fixes for comments to non-existing subject pages
vitalif Jun 2, 2014
96128f6
Fetch user_email at once in comment notifications, without additional…
vitalif Jun 2, 2014
a0d3ef0
Check email authentication in new post emails, make code more compact
vitalif Jun 2, 2014
902c8b0
Include new post title in notification emails
vitalif Jun 2, 2014
2207021
Use user language in new post notifications
vitalif Jun 2, 2014
9a3ed50
typo
Erkan-Yilmaz Jul 11, 2014
0087e60
Merge pull request #3 from Erkan-Yilmaz/master
vitalif Jul 31, 2014
574377e
Fix feed caching: include hash of all query params into key
vitalif Oct 24, 2014
d41339c
Do not die on post pages in namespaces without comments. Fixes #4
vitalif Nov 5, 2014
52b769c
Add comment reply forms without page reload
vitalif Dec 30, 2014
7928276
Update RELEASE-NOTES
vitalif Jan 21, 2015
33f177f
Do not use LinksUpdate $mOptions and $mDB - fixes #5
vitalif Jun 22, 2015
f17f4f8
Use userCan(read) (MW 1.19+)
vitalif Oct 20, 2015
1c664c2
Remove deprecated wfViewPrevNext call
vitalif Oct 20, 2015
4478abc
Add 1.26+ getGroupName() for special pages
vitalif Nov 6, 2015
82f53a7
Support PostgreSQL
vitalif Nov 19, 2015
a1d4047
Use namespace localisation method that does not require core patch
vitalif Nov 19, 2015
c6f5af5
Fix #8 and add German namespace names
vitalif Nov 27, 2015
5881e5d
Do not set $article to false in ArticleFromTitle hook - fixes #9
vitalif Nov 29, 2015
03681ff
Fix talk namespace aliases (replace space with _)
vitalif Dec 2, 2015
820762d
Support MediaWiki 1.25+ in UserMailer::send
vitalif Dec 2, 2015
5e2539e
Add resource modules from parser output
vitalif Jan 21, 2016
4ec08dc
Use DeferredUpdates::addUpdate instead of $wgDeferredUpdateList
vitalif Jan 21, 2016
b821f16
Regenerate talkinfo instead of trying to copy it from wikilog_posts (…
vitalif Jan 30, 2016
ec19029
Fix #11 - for MW 1.27, replace passCaptcha() with passCaptchaFromRequ…
vitalif May 19, 2016
43e28b2
Update version notice
vitalif May 24, 2016
57d7703
Replace deprecated wfMsg* calls, state MediaWiki 1.27 support
vitalif Aug 4, 2016
e753da2
fix time formatting
vitalif Sep 12, 2016
c45ee01
Do not use destructors for updates (works in PHP5, but fails in PHP7)
vitalif Sep 14, 2016
bd64fd2
Replace usage of deprecated $skin->link() with Linker::link()
vitalif Jan 19, 2017
14226d0
Remove deprecated $wgUser->getSkin()
vitalif Jan 20, 2017
c6b38c2
Fix !mThread (mThread is a binary string)
vitalif Apr 13, 2017
04cc110
Add blockquote style for comments
vitalif Aug 11, 2017
97d1e06
WikilogUtils: Replace WikiPage::getText() with getContent()
refeed Dec 23, 2017
8f2df05
Merge pull request #21 from refeed/fix_deprecated_gettext_method
vitalif Dec 27, 2017
73d6d40
Remove pass-by-reference
vitalif May 10, 2018
bc4da58
Fix pager type switcher link
vitalif May 15, 2018
e0e8fa2
Fix PHP Warning: array_splice() expects parameter 2 to be integer, s…
Albul Jan 23, 2019
bd39f48
Change deprecated onArticleSave on onPageContentSave https://www.medi…
Albul Jan 23, 2019
d0d5ab1
Do not sendEmails when $wgEnableEmail = false;
Albul Jan 23, 2019
ec5affb
Compatibility with Translation extension
Albul Jan 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions README.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,23 @@ Information about previous versions can be found on:
http://www.mediawiki.org/wiki/Extension:Wikilog
http://groups.google.com/group/mediawiki-wikilog

= Important: Original version notice =

Original version of Wikilog was abandoned in 2012 by Juliano F. Ravasi.

However, there is still a version of Wikilog (named 1.3.0) available in official
Wikimedia repositories (https://phabricator.wikimedia.org/r/branch/mediawiki/extensions/Wikilog,
https://github.com/wikimedia/mediawiki-extensions-Wikilog).

We DO NOT recommend using it, because nobody develops it or adds new features,
there are only Wikimedia developers who are replacing deprecated API calls with
their newer versions.

= Requirements =

* MediaWiki 1.19-1.21 or higher, or Mediawiki4Intranet 1.18.
* A MySQL database backend.
* MediaWiki 1.19-1.27, or Mediawiki4Intranet 1.18.
* A MySQL or PostgreSQL database backend.
* ParserFunctions extension.

= Installation =

Expand All @@ -33,10 +46,13 @@ Information about previous versions can be found on:

== Updating ==

Always run php maintenance/update.php when you're updating Wikilog. Some of the updates
may not need it, bun an extra run will never harm :)
* Update code in `extensions/Wikilog`
* Run `php maintenance/update.php` to upgrade DB structure. Some updates
may not need it, but an extra run will never harm :)

If you are upgrading from one of previous versions of Wikilog, you should also run
If you are upgrading to MediaWiki4Intranet Wikilog from the original version of Wikilog
taken from the official repositories (see "Original version notice" above), or from
MediaWiki4Intranet Wikilog older than 9 Oct 2013, AND you have you should also run:

php maintenance/patchSql.php extensions/Wikilog/archives/fill-wikilog-comment-meta.sql

Expand Down
16 changes: 12 additions & 4 deletions RELEASE-NOTES.mediawiki
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
= Wikilog release notes =

== Mediawiki4Intranet's Wikilog as of 2013-10-10 ==
== Mediawiki4Intranet's Wikilog 2.0 ==

* Support for PostgreSQL
* Support for MediaWiki up to 1.26
* Several bug fixes

== Mediawiki4Intranet's Wikilog as of 2015-01-21 ==

Our Wikilog version is heavily improved; there is a lot of new big features:

* «Forum» view — i.e. sorting of entries by the date of last comment in «archives» mode, and unread comment count tracking
*: Add link to <your_wiki>/Special:Wikilog?view=archives&show=published&sort=wlp_talk_updated&desc=1 in your MediaWiki:Sidebar with «WikiForum» title to get a forum view.
* (!) Wikilog-style hierarchical talk support for normal pages, not just for the blogs.
*: Add link to <your_wiki>/Special:Wikilog?view=archives&show=published&sort=wlp_talk_updated&desc=1 in your MediaWiki:Sidebar with «WikiForum» title to get a forum view
* (!) Wikilog-style hierarchical talk support for normal pages, not just for the blogs
* Comment email notifications
* New blog entry email notifications for main blog page watchers
* New blog entry email notifications (subscribe by watching main page of the blog)
* RSS/Atom comment feeds
* Subscribing/unsubscribing to all comments in a blog, or even in all blogs in a wiki (the last is a user preference)
* New post creation form on Special:Wikilog (in the «blog agregator»)
* Exclusion of blogs and posts in specific category from the aggregated view ($wgWikilogDefaultNotCategory)
* Drop-down lists for wikilog/author/category fields on Special:Wikilog
* Post calendar for MediaWiki:Sidebar
*: Add «* wikilogcalendar» to MediaWiki:Sidebar to enable it
* Automatic folding of non-branching comments to the linear view — this prevents too many nesting levels without any loss of hierarchy
* Improved binary encoding of materialized paths to comments, allowing to store up to 250 nesting levels, versus 36 in old Wikilog
* Pagination which never breaks discussion threads
* Thread/list view switching for comments
* Experimental support for importing dumps from blogger.com
* Various bug fixes

Expand Down
41 changes: 23 additions & 18 deletions SpecialWikilog.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ function __construct( ) {
parent::__construct( 'Wikilog' );
}

protected function getGroupName() {
return 'changes';
}

/**
* Execute the special page.
* Called from MediaWiki.
Expand Down Expand Up @@ -240,8 +244,7 @@ public function webOutput( FormOptions $opts ) {
'rel' => 'alternate',
'href' => $wgTitle->getLocalURL( $altquery ),
'type' => $wgMimeType,
'title' => wfMsgExt( "wikilog-view-{$alt}",
array( 'content', 'parsemag' ) )
'title' => wfMessage( "wikilog-view-{$alt}" )->inContentLanguage()->text(),
) );
}
}
Expand Down Expand Up @@ -272,7 +275,7 @@ public function getMarkAllReadLink()
$query = $wgRequest->getValues();
$query['markallread'] = wfTimestamp( TS_MW );
return Xml::wrapClass(
Xml::element( 'a', array( 'href' => $wgTitle->getFullUrl( $query ) ), wfMsg( 'wikilog-mark-all-read' ) ),
Xml::element( 'a', array( 'href' => $wgTitle->getFullUrl( $query ) ), wfMessage( 'wikilog-mark-all-read' )->text() ),
'markallread', 'p'
);
}
Expand All @@ -295,7 +298,7 @@ public function feedOutput( $format, FormOptions $opts ) {
* and also the name that will be listed in Special:Specialpages.
*/
public function getDescription() {
return wfMsg( 'wikilog-specialwikilog-title' );
return wfMessage( 'wikilog-specialwikilog-title' )->text();
}

/**
Expand Down Expand Up @@ -331,6 +334,8 @@ public function parseInlineParams( $parameters, FormOptions $opts ) {
if ( ( $date = self::parseDateParam( $m[1] ) ) ) {
list( $opts['year'], $opts['month'], $opts['day'] ) = $date;
}
} elseif ( preg_match( '/^notcategory=(.*)$/', $par, $m ) ) {
$opts['notcategory'] = $m[1];
} else {
if ( ( $t = Title::newFromText( $par ) ) !== null ) {
$ns = $t->getNamespace();
Expand Down Expand Up @@ -366,7 +371,7 @@ protected function getHeader( FormOptions $opts ) {
}

$out = Xml::tags( 'form', array( 'action' => $wgScript ), $out );
$out = Xml::fieldset( wfMsg( 'wikilog-form-legend' ), $out,
$out = Xml::fieldset( wfMessage( 'wikilog-form-legend' )->text(), $out,
array( 'class' => 'wl-options' )
);
$out .= WikilogMainPage::formNewItem( NULL );
Expand Down Expand Up @@ -525,11 +530,11 @@ protected function getQueryFormFields( FormOptions $opts ) {
if ( count( $values ) > 0 )
{
$select = new XmlSelect( $valueid, 'wl-'.$valueid, $formvalues[$valueid] );
$select->addOption( wfMsg('wikilog-form-all'), '' );
$select->addOption( wfMessage( 'wikilog-form-all' )->text(), '' );
foreach( $values as $o )
$select->addOption( $o[0], count($o) > 1 ? $o[1] : false );
$fields[$valueid] = array(
Xml::label( wfMsg( 'wikilog-form-'.$valueid ), 'wl-'.$valueid ),
Xml::label( wfMessage( 'wikilog-form-'.$valueid )->text(), 'wl-'.$valueid ),
$select->getHTML()
);
}
Expand All @@ -539,44 +544,44 @@ protected function getQueryFormFields( FormOptions $opts ) {
else
{
$fields[$valueid] = Xml::inputLabelSep(
wfMsg( 'wikilog-form-'.$valueid ), $valueid, 'wl-'.$valueid, 40,
wfMessage( 'wikilog-form-'.$valueid )->text(), $valueid, 'wl-'.$valueid, 40,
$formvalues[$valueid]
);
}
}

$month_select = new XmlSelect( 'month', 'wl-month', $opts->consumeValue( 'month' ) );
$month_select->setAttribute( 'onchange', "{var wly=document.getElementById('wl-year');if(wly&&!wly.value){wly.value='".date('Y')."';}}" );
$month_select->addOption( wfMsg('monthsall'), '' );
$month_select->addOption( wfMessage( 'monthsall' )->text(), '' );
for ($i = 1; $i <= 12; $i++)
$month_select->addOption( $wgLang->getMonthName( $i ), $i );
$year_field = Xml::input( 'year', 4, $opts->consumeValue( 'year' ), array( 'maxlength' => 4, 'id' => 'wl-year' ) );
$fields['date'] = array(
Xml::label( wfMsg( 'wikilog-form-date' ), 'wl-month' ),
Xml::label( wfMessage( 'wikilog-form-date' )->text(), 'wl-month' ),
$month_select->getHTML() . "&nbsp;" . $year_field
);
$opts->consumeValue( 'day' ); // ignore day, not really useful

$viewSelect = new XmlSelect( 'view', 'wl-view', $opts->consumeValue( 'view' ) );
$viewSelect->addOption( wfMsg( 'wikilog-view-summary' ), 'summary' );
$viewSelect->addOption( wfMsg( 'wikilog-view-archives' ), 'archives' );
$viewSelect->addOption( wfMessage( 'wikilog-view-summary' )->text(), 'summary' );
$viewSelect->addOption( wfMessage( 'wikilog-view-archives' )->text(), 'archives' );
$fields['view'] = array(
Xml::label( wfMsg( 'wikilog-form-view' ), 'wl-view' ),
Xml::label( wfMessage( 'wikilog-form-view' )->text(), 'wl-view' ),
$viewSelect->getHTML()
);
if( $wgUser && $wgUser->getID() )
{
$statusSelect = new XmlSelect( 'show', 'wl-status', $opts->consumeValue( 'show' ) );
$statusSelect->addOption( wfMsg( 'wikilog-show-all' ), 'all' );
$statusSelect->addOption( wfMsg( 'wikilog-show-published' ), 'published' );
$statusSelect->addOption( wfMsg( 'wikilog-show-drafts' ), 'drafts' );
$statusSelect->addOption( wfMessage( 'wikilog-show-all' )->text(), 'all' );
$statusSelect->addOption( wfMessage( 'wikilog-show-published' )->text(), 'published' );
$statusSelect->addOption( wfMessage( 'wikilog-show-drafts' )->text(), 'drafts' );
$fields['status'] = array(
Xml::label( wfMsg( 'wikilog-form-status' ), 'wl-status' ),
Xml::label( wfMessage( 'wikilog-form-status' )->text(), 'wl-status' ),
$statusSelect->getHTML()
);
}

$fields['submit'] = Xml::submitbutton( wfMsg( 'allpagessubmit' ) );
$fields['submit'] = Xml::submitbutton( wfMessage( 'allpagessubmit' )->text() );
return $fields;
}

Expand Down
Loading