Hi Brion, that was marvellous! I tested it 10 times and yes, it works perfectly. Thank you very much and also to Platonides.
The timing is perfect because I just added quite a number of stubs which I want to hide from visitors pressing the Random Page link. Was earlier kind of worried that it will affect visitors impression of my website but if I don't add in the quotations when I find them, I won't be able to find them when I really need them! PM Poon On Thu, Dec 25, 2008 at 8:06 AM, Brion Vibber <[email protected]> wrote: > On 12/24/08 4:42 AM, Platonides wrote: > > My bad, the page_restrictions table is used instead. > > You will need to edit the SQL at includes/specials/SpecialRandompage.php > > to perform the JOIN :/ > > If your MySQL server is 4.1 or later you should be able to get away with > something like this: > > $wgExtraRandompageSQL = '(select count(*) from page_restrictions where > pr_page=page_id and pr_type="edit")'; > > -- brion > > _______________________________________________ > MediaWiki-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
