Re: [Mediawiki-l] Help with "Hello World" extension

2010-07-31 Thread Ross McKay
Alok Watve wrote: >I think I found the problem. It was related to the file encoding on >Windows/Unix system.I was editing the file in windows and running it >on Unix. I was using FTP to transfer the files and Filezilla was set >to use "Automatic"transfer mode. I forced it to "binary" and that >sol

Re: [Mediawiki-l] Help with "Hello World" extension

2010-07-31 Thread Alok Watve
Hello Ross, I think I found the problem. It was related to the file encoding on Windows/Unix system.I was editing the file in windows and running it on Unix. I was using FTP to transfer the files and Filezilla was set to use "Automatic"transfer mode. I forced it to "binary" and that solved the pro

Re: [Mediawiki-l] Help with "Hello World" extension

2010-07-31 Thread Alok Watve
Thanks a lot for the help (And patience). The page cache is now cleared but even after the refresh, I still see the original wiki command as the final result. I don't know what to do. I will try to get permission on the log files (its not my system) Alok On Sat, Jul 31, 2010 at 6:43 PM, Ross McKa

Re: [Mediawiki-l] Help with "Hello World" extension

2010-07-31 Thread Ross McKay
Jan Luca wrote: >I don't create a parser extension, but on special pages you output a text >with $wgOut->addWiki( '' ); or $wgOut->addHtml( '' ); With special pages, the extension is creating the whole page and must feed all of the output. With tag and parser extensions, the extension is only han

Re: [Mediawiki-l] Help with "Hello World" extension

2010-07-31 Thread Ross McKay
G'day Alok, Please keep messages on-list by replying to all, so that others may jump in and help too. >Thanks a lot for helping but that doesnt seem to solve the problem >1) About page refresh : when I type >"127.0.0.1/index.php?title=TestPageAlok?action=purge" >It attempts to create a new page w

Re: [Mediawiki-l] Help with "Hello World" extension

2010-07-31 Thread Jan Luca
s.wikimedia.org] Im Auftrag von Ross McKay Gesendet: Samstag, 31. Juli 2010 09:20 An: alok.wa...@gmail.com Cc: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] Help with "Hello World" extension G'day Alok, >Thanks for the reply. I did correct that but that do

Re: [Mediawiki-l] Help with "Hello World" extension

2010-07-31 Thread Ross McKay
G'day Alok, >Thanks for the reply. I did correct that but that does not solve the >problem. I created a small page which has only one line > >{{#SayHello:John}} > >I was expecting the page to display "Hello John" But instead it displayed >the same line. I am not sure why is this happening. Firstl

Re: [Mediawiki-l] Help with "Hello World" extension

2010-07-30 Thread Alok Watve
Thanks for the reply. I did correct that but that does not solve the problem. I created a small page which has only one line {{#SayHello:John}} I was expecting the page to display "Hello John" But instead it displayed the same line. I am not sure why is this happening. Alok On Fri, Jul 30, 2010

Re: [Mediawiki-l] Help with "Hello World" extension

2010-07-30 Thread Ross McKay
Alok Watve wrote: >I am trying to write the simplest extension using a parser function >[...] Remove the last two lines: >return true; >?> You "return" when passing a value back out of a function; you are not "in" a function at this point. The trailing ?> is optional, and generally not recomme

[Mediawiki-l] Help with "Hello World" extension

2010-07-30 Thread Alok Watve
Hi, I am trying to write the simplest extension using a parser function (to get the feel of it). My extension is supposed to greet anyone who uses it. I am using this wikipage ( http://www.mediawiki.org/wiki/Manual:Parser_functions) as the reference However, I am unable to get even this simplest e