Help talk:Gadget-ImageAnnotator
Appearance
This is the talk page for the experimental ImageAnnotator feature. If you experience any bugs or other problems while trying it out, or if you have suggestion improvements, please leave a note here. Lupo 11:10, 8 March 2010 (UTC)
"Add a note" button not present
Hello, I followed the install guide on [1]Gadget-ImageAnnotator/Installation but the "Add a note" button is not present. Anyone can help? I have also added $wgUseAjax = true; in LocalSettings.php Poymode (talk) 11:14, 22 March 2010 (UTC)
- That question belongs here. ManishEarthTalk • Stalk 11:26, 22 March 2010 (UTC)
- Yes, but since he's asked and I've seen it, I'll answer it here: do you have the read API enabled on your wiki? Does your wiki serve the normal wikibits.js? Did you adapt the configuration to the setup of your wiki? Did you change the
LAPI_file_store
variable in MediaWiki:LAPI.js on your wiki as appropriate? Can you post a URL to your wiki (if it's public, of course)? Lupo 12:44, 22 March 2010 (UTC)- What do you mean by the read API? Yes, I have wikibits.js. This is from the source of my main page:
<script type="text/javascript" src="/wiki/skins/common/wikibits.js?207"></script>
. Actually, I haven't made my wiki live yet. Still testing it on my local. This is my LAPI_file_store:var LAPI_file_store = "http://10.48.30.154/wiki/images/";
. btw, sorry for posting in unappropriate section.Poymode (talk) 03:26, 23 March 2010 (UTC)- Does your wiki really generate image urls containing an IP? The read API is enabled by setting $wgEnableAPI to
true
in LocalSettings.php. Lupo 08:58, 23 March 2010 (UTC)- Well, yes. For example if I entered http://10.48.30.154/wiki/images/logo.png then the logo would show up. I just enabled my $wgEnableAPI and set it to true. Any core pages that should be customized? Is the LAPI_file_store very important? I was thinking that all images in the variable's Path will the only ones be considered by the ImageAnnotator, Am I right on this? Poymode (talk) 10:00, 23 March 2010 (UTC)
- No, you shouldn't need to customize any core php pages. But you should have ParserFunctions installed; otherwise the templates won't work. Lupo 11:14, 23 March 2010 (UTC)
- Go to a file description page. What's the value of the src attribute of the preview image you see there? That's what
LAPI_file_store
should match. It's used to make sure that things taken to be images are really some image coming from your wiki. It's necessary because MediaWiki installations can also be configured to allow direct off-site image display. Lupo 11:14, 23 March 2010 (UTC) - Question for Lupo: shouldn't the write API be enabled, too? I'm not too good in MW variables, but I can see that ImgAnnotater uses AJAX to save the annotations. ManishEarthTalk • Stalk 10:05, 23 March 2010 (UTC)
- No, the write API is not necessary. That was a conscious design decision, because while it is activated on the WMF servers, it might not be for other installations. Lupo 11:15, 23 March 2010 (UTC)
- Well, yes. For example if I entered http://10.48.30.154/wiki/images/logo.png then the logo would show up. I just enabled my $wgEnableAPI and set it to true. Any core pages that should be customized? Is the LAPI_file_store very important? I was thinking that all images in the variable's Path will the only ones be considered by the ImageAnnotator, Am I right on this? Poymode (talk) 10:00, 23 March 2010 (UTC)
- Does your wiki really generate image urls containing an IP? The read API is enabled by setting $wgEnableAPI to
- What do you mean by the read API? Yes, I have wikibits.js. This is from the source of my main page:
- Yes, but since he's asked and I've seen it, I'll answer it here: do you have the read API enabled on your wiki? Does your wiki serve the normal wikibits.js? Did you adapt the configuration to the setup of your wiki? Did you change the
So its not required for AJAX editing? Surprising... ManishEarthTalk • Stalk 11:43, 23 March 2010 (UTC)
- To Lupo: Hello Lupo, I have uploaded my sample wiki. Please check link WIKI. The "Add a note" button still isn't showing.Poymode (talk) 10:23, 24 March 2010 (UTC)
- I cannot connect to your wiki. DNS doesn't know "boinky.me". Lupo 11:22, 24 March 2010 (UTC)
- I can connect... ManishEarthTalk • Stalk 12:21, 24 March 2010 (UTC)
- Add
var wgMainpage = "Main Page";
to Common.js (It should be predefined...)- Don't you mean
wgMainPageTitle
? But yes, that variable should be served and set automatically. If it isn't on boinky.me, something is fundamentally wrong with that setup. Poymode, what MediaWiki-Version is your wiki running? Lupo 12:47, 24 March 2010 (UTC)
- Don't you mean
- Add
- I can connect... ManishEarthTalk • Stalk 12:21, 24 March 2010 (UTC)
- I cannot connect to your wiki. DNS doesn't know "boinky.me". Lupo 11:22, 24 March 2010 (UTC)
- To Lupo: Hello Lupo, I have uploaded my sample wiki. Please check link WIKI. The "Add a note" button still isn't showing.Poymode (talk) 10:23, 24 March 2010 (UTC)