In light of religious terrorist attacks in Paris, please see Category:blasphemy!

Freedom Porn:free technology/NewestPagesBlog

From Freedom Porn
Jump to: navigation, search

This is an extension originally written by Benjaminbradley, it is used on Freedom Porn and has been added to here.

Additional work

When you look at the blog the hidden categories tend do dominate, this is very annoying as it makes one not want to employ hidden categories, and they are very useful.

Instructions

  • Install mediawiki:Extension:Newest_Pages_Blog.
  • Edit the file $IP/extensions/NewestPagesBlog/NewestPagesBlog.php
    • Find the comment which says "get category links", replace 2 lines below with the following code
                $catlinks = $dbr->tableName( 'categorylinks' );
                $page = $dbr->tableName( 'page' );
                $pageprops = $dbr->tableName( 'page_props' );
                $res = $dbr->query( "SELECT DISTINCT(cl_to) FROM $catlinks LEFT JOIN $page ON $page.page_title=$catlinks.cl_to LEFT JOIN $pageprops ON pp_page=page_id WHERE cl_from = $pageid AND (ISNULL(pp_propname) OR pp_propname!='hiddencat');" );