User talk:Cneubauer

$iswatch by default
Hi,

I'm having a hard time trying to put the $iswatch check box checked by default whenever i insert a new article or edit an existing one.

I know that is something to do with this:

$wgHooks['ArticleSaveComplete'][] = array($iswatch=true); $wgHooks['ArticleSave'][] = array($iswatch=true); $wgHooks['ArticleInsertComplete'][] = array($iswatch=true);

Could you help me?

Thanks

Carlos Ramalhete


 * So you want to always watch pages that you edit? If you just want to do this for yourself, you can go to "My Preferences" up in the top right of the wiki, then click "Watchlist", then check the boxes to add all pages you edit or create to your watchlist.  If you run your own wiki and want this to happen for every user, you can edit your wiki's LocalSettings.php file and set the Manual:$wgDefaultUserOptions variable.


 * I don't think you can force this to happen every time a page is edited using an extension. In the hooks you listed above, the $iswatch variable isn't actually used for anything.  See Manual:Hooks/ArticleSave for more details.  --Cneubauer 14:09, 11 March 2008 (UTC)

something like this?

$wgDefaultUserOptions['watchdefault'] = 1;


 * Yeah, that should do it. --Cneubauer 13:03, 25 March 2008 (UTC)