Brion Vibber wrote:
On mer, 2003-02-05 at 00:25, Andre Engels wrote:
Ah! I found what's going on. The link does not
work for anonymous users, but
it does for logged-in users.
Looks good, but there are some changes I would like to be made:
* Do something about the error above - preferably make it work for
anonymous users; if that can't be done, remove the link.
Agreed! It's a little confusing, in that it doesn't come up. :)
I'm working on it. Weird thing.
* Allow more
than one link to be added to a single page
Yes; often (but not always) the link chain is fairly straightforward,
and a new article on 'Kofi Annan' in language X can be safely linked to
all other languages' 'Kofi Annan' equivalent. The 'Missing links'
function does this, but it's an extra step.
I hot-fixed this by reloading the "add" page for that article after
addition, similar to the user preferences page. I also added a link to
the "interlinked articles" page and to the "source" page, if one was
given. Will this do?
Another gimmick could be "Add this article under the same title to ALL
languages", for the "Kofi Annan" article, but that would, of course, add
lots of non-existing links.
* Show
interlanguage links to existing and non-existing pages differently
from those to existing pages
(might be problematic because it needs information from several databases;
perhaps it's better to check this once a day or so, accepting that it will
sometimes be wrong)
Shouldn't be too hard to add an 'exists' field to the ilinks table...?
Yes, but that means to hack the "page delete" function as well...
I might just do that!
>* After a link has been added, don't go to the
International issues main
> menu, but to the 'edit interlanguage links' page of the original page.
>
Added a link, see above.
>* Add a backlink to the page itself from its
'edit links' page.
>
There is a backlink ("involved..."), but it links to the en: site,
which
redirects to "www.", which is due to the test site.
Thank you for
your work on this!
Yes, go Magnus!!
Still waiting for those groupies ;-)
Also, there are some weirdnesses with charsets. For
sanity's sake, I
recommend that *all* data in the ilinks table be UTF-8. On the wikis
that remain in Latin-1 (hisss!), care should be taken to convert
appropriately.
As I haven't touched the UTF-8/latin-1 functions at all, I'd appreciate
any help I can get there...
Also, we'll need a conversion function to read the existing language
links from the article texts, add them to the database, and remove them
from the text. Alternatively, we could leave them in the text and just
ignore them (as I do now on test), but that might get confusing...
Finally, someone should look into the table that holds the language
links. The fields should probably all be indices, I guess.
Magnus