Jump to content

Topic on Extension talk:RecentPages/Flow

Include RecentPages in Main Page

10
213.47.219.66 (talkcontribs)

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.

2.221.94.217 (talkcontribs)

I've had the same problem, I'd be grateful if this was fixed soon.

79.160.163.66 (talkcontribs)

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...

110.32.139.168 (talkcontribs)

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.

69.204.243.73 (talkcontribs)

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.

Leucosticte (talkcontribs)

So all you see is <recent />, or is it blank? If you provide a URL, it would be helpful. Thanks.

69.204.243.73 (talkcontribs)
Leucosticte (talkcontribs)

Please upgrade to the latest version; there have been some recent bugfixes. Thanks.

69.204.243.73 (talkcontribs)

i updated the files, still can't see anything.

Leucosticte (talkcontribs)

All your pages were below the minimum length of 600 characters, apparently.

Reply to "Include RecentPages in Main Page"