Sorry for maybe a stupid question, but I'm a newbie with mediawiki. I installed the RecentPages Extension and now I try to include it in the main page by adding the code <recent />. The output of the last 6 new pages is correct, however they are not linked but plain text with wikibrackets like this: [ [ I m the newest page| ] ] What am I doing wrong? Thanks.
Topic on Extension talk:RecentPages/Flow
I've had the same problem, I'd be grateful if this was fixed soon.
I think I have fixed it. It required adding the line $html = RecentPages::getDisplayTitle ( $title ); for the situation where there was only one column - i noticed that it was working when there was columns and just copied what worked in the other cases...
To get it to link properly change this code ...
for ( $i = 1; $i <= $numRows; $i++ ) { $title = $retArray[ $i - 1 ]; if ( !is_null( $title ) ) { $ret .= "<li>" . $parser->internalParse ( '[[' . $title->getFullText() . '|' . $html . ']]' ) . "</li>\n";
with this code ....
for ( $i = 1; $i <= $numRows; $i++ ) { $title = $retArray[ $i - 1 ]; if ( !is_null( $title ) ) { $ret .= "<li>" . $parser->internalParse ( '[[' . $title->getFullText() . $html . ']]' ) . "</li>\n";
The change removes the pipe that causes the problem in the last line.
sorry, this is going to be a noob question. where do we exactly add this <recent /> code? i simply edited the main page and add this, nothing happened.
So all you see is <recent />, or is it blank? If you provide a URL, it would be helpful. Thanks.
hi, I see a blank page http://asagezi.com/ thanks
Please upgrade to the latest version; there have been some recent bugfixes. Thanks.
i updated the files, still can't see anything.
All your pages were below the minimum length of 600 characters, apparently.