User talk:Nn123645/2009/February
This is an archive of past discussions with User:Nn123645. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Re: Wikibot PHP code
Original Message Copied for Archival Purposes
|
---|
I noticed your questions in #wikipedia-bag, though I was AFK for most of the day. To answer your questions I'm pretty sure you can call a function from a constructor, but you will need to use the $this-> psudovariable just like anything else if the function is in the same class, or if its in a different class you'll need to use the scope resolution operator (::) to call the function. As far as the minor and bot flag, afaik all the variables on the API need both a variable name and value. So you will need to do &bot=1 or something, the value can be whatever, but I'm fairly sure it needs a value. I have changed your subpage to reflect that. As far as the empty tokens, I know a few months back Cobi was having a problem with mediawiki passing empty tokens, though I believe that is fixed, usually that results from not being logged in, which is caused by the session ID cookie not being sent along with the HTTP request. Note that curl sessions are independent of one another, so one curl session will not use the cookies of another, at least afaik. Curl usually takes care of content mime types by itself, at least from my experience, which is one of the nice things about using it. If I missed anything feel free to ping me. —Nn123645 (talk) 03:25, 10 February 2009 (UTC) |
Thanks for your help; I rectified the constructor calls by creating another class, APIInterface, so that's fine now; empty edit tokens were fixed by MrZ-man; but if as your change re. minor/major/bot edit values (technically POST not GET) works (I haven't had time to check, but I trust you) then I am most grateful. - Jarry1250 (t, c) 07:47, 10 February 2009 (UTC)
- Yep, it works. ;) - Jarry1250 (t, c) 08:53, 10 February 2009 (UTC)
Yourbot
Hey there. Just wondering how does your uncat bot work out where to add the tag? It would be really helpfull to know :) Thanks. ·Add§hore· Talk To Me! 10:01, 22 February 2009 (UTC)
- You mean on the page or if it should add the tag? —Nn123645 (talk) 03:00, 23 February 2009 (UTC)
- Where on the page it should post the tag :) ·Add§hore· Talk To Me! 07:32, 23 February 2009 (UTC)
- The bottom, as per the documentation at Template:Uncategorized. —Nn123645 (talk) 11:34, 23 February 2009 (UTC)
- So it just adds it to the very bottem? Doesnt try to go inbetween anything or something like that? ·Add§hore· Talk To Me! 11:56, 23 February 2009 (UTC)
- Nope, I just append it to the bottom of the page. —Nn123645 (talk) 13:09, 23 February 2009 (UTC)
- So it just adds it to the very bottem? Doesnt try to go inbetween anything or something like that? ·Add§hore· Talk To Me! 11:56, 23 February 2009 (UTC)
- The bottom, as per the documentation at Template:Uncategorized. —Nn123645 (talk) 11:34, 23 February 2009 (UTC)
- Where on the page it should post the tag :) ·Add§hore· Talk To Me! 07:32, 23 February 2009 (UTC)