At 18:16:34 +0100 28/12/2005, Brion V. wrote:
>Jeremy G Byrne wrote:
> > I'm trying to work out what or where I need to hack the php
> > code to alter the way "broken local links" (ie. references to
> > pages which aren't in the wiki, which are normally transformed
> > into "&action=edit" style links) are displayed.
>
>If you want to alter how they're _displayed_ you should look at
>the CSS for each skin, in skins/*. They're the a.new class, iirc.
Sorry; imprecise wording.
>If you want to change the HTML markup that's produced, poke at
>Linker::makeBrokenLinkObj().
I had, but thanks to your prompting I've gone back to it and
persisted, and once I realised I needed to reload the pages with
&action=purge to see the effects of my hacking, it was pretty easy.
Many thanks!
CYa,
JEREMY
hi, All,
I have a site: dongfangtiger.de/wiki (chinese language, UTF-8), but almost
no search engine can search into this wiki, i.e:
if search "dongfangtiger.de/wiki" as keyword in google, only some external
webpages containing the word "dongfangtiger.de/wiki" can be found.
what shall I do to get it searchable?
thanks a lot!
lianluoyuan
There is a proposal for multilingual license boilderplates in
Wikimedia Commons, which makes me come up with an idea:
http://commons.wikimedia.org/wiki/Village_pump#Multi-Language_version_is_ne…...
MediaWiki interfaces are available in many languages, which is set to
the local language of a project by default, and can be chosen in
Special:Preferences as well. Then why not make multilingual
boilderplates available, beside some other things?
This could work in this way: Make a new namespace, say Multilingua,
which would carry multilingual messages. License boilderplates should
include the multilingual messages with {{Multilingua:PD-msg}}.
Multilingua:PD-msg has the default canonical message, probably in
English, with translated messages in Multilingua:PD-msg/en,
Multilingua:PD-msg/ko, etc.
And the parser would show the message in the appropriate language the
user had set or the default. If the message in the language is not
available, it should show the default. For Commons feature, caching
process should be changed to cache by different languages.
Regards,
Puzzlet Chung
Hallo Liste,
bin auch Anfänger und konnte bislang niemand hier weiterhelfen, aber
jetzt brauche ich Hilfe:
insgesamt habe ich 3 wikis laufen. Eines bei 1und1 das läuft derzeit
ohne Problem. Zwei weitere habe ich bei silverlineserver. Die liefen
bislang auch, bis letzte Woche, plötzlich ging nichts mehr, obwohl ich
nichts verändert habe.
Wenn ich jetzt wie üblich meine URL aufrufe, kommt
die Fehlermeldung:
"Umleitungslimit für diese URL ist überschritten. Die angeforderte Seite
kann nicht geladen werden. Das kann von geblockten Cockies herrühren"
Eine Unterseite kann ich erreichen, wenn ich den ursprünglichen Link
eingebe, von dort aus wird aber wieder falsch verlinkt
statt
wiki/index.php?title=Spezial:Specialpages
versucht der browser folgenem Pfad zu folgen und findet natürlich nix,
weil es den Ordner Index.php gibt es nicht:
wiki/index.php/Spezial:Specialpages
Habt ihr ne Ahnung an was das liegen kann?
Ein PHP update? Ordner wurden verschoben oder weiß der geier. Der
Provider antwortet leider nicht auf meine Fragen :-(
Kann mir jemand weiterhelfen?
Es grüßt Euch
Karin
Hello,
is there anybody, who is able to help me with my wikiproblem?
My wiki worked ok. But suddenly I could not reach the URL. I found out
that I can fetch a page if I change the link from the shown way:
wiki/index.php/Spezial:Specialpages
to
wiki/index.php?title=Spezial:Specialpages
But all links on this page are wrong again. I changed nothing. How can I
fix this problem, I think my provider changed anything.
I would be happy if annybody got an idea
Karin from Germany
Hi,
I found the meaning of foreach ($this->data['nav_urls'] as $key => $item). Does it iterate the data array? Where is this data array defined in clean.php or MediaWiki code please?
Thank you,
Piyush
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Piyush Varma
Sent: Wednesday, December 28, 2005 10:29 AM
To: mediawiki-l(a)Wikimedia.org
Subject: [SPAM] - [Mediawiki-l] A PHP question for a newbie - Email
found in subject
Hi,
I need interpretation the following lines of code:
foreach ($this->data['nav_urls'] as $key => $item) {
$href = htmlspecialchars($item['href']);
$text = strtolower(htmlspecialchars(
$this->translator->translate($key)));
if ($key == "upload" && $isEnglish)
$text = "upload files";
$link = "<a href='$href'>$text</a>";
if ($key == "help")
$helpLink = $link;
if ($key == "recentchanges")
$recentLink = $link;
if ($key == "upload")
$uploadLink = $link;
if ($key == "specialpages")
$specialLink = $link;
if ($key == "recentchangeslinked")
$relatedLink = $link;
}
Especially, what do I understand by "$this->data['nav_urls'] as $key => $item" line of code?
Thank you,
Piyush
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hi,
I need interpretation the following lines of code:
foreach ($this->data['nav_urls'] as $key => $item) {
$href = htmlspecialchars($item['href']);
$text = strtolower(htmlspecialchars(
$this->translator->translate($key)));
if ($key == "upload" && $isEnglish)
$text = "upload files";
$link = "<a href='$href'>$text</a>";
if ($key == "help")
$helpLink = $link;
if ($key == "recentchanges")
$recentLink = $link;
if ($key == "upload")
$uploadLink = $link;
if ($key == "specialpages")
$specialLink = $link;
if ($key == "recentchangeslinked")
$relatedLink = $link;
}
Especially, what do I understand by "$this->data['nav_urls'] as $key => $item" line of code?
Thank you,
Piyush
I have installed MediaWiki 1.5.4, using MySQL 5, PHP 5, on Windows XP.
It works beautifully!
However, when I request Special:Statistics, I get a huge number
(18,446,744,073,709,551,614) in the output.
I.e., the page reads:
<snip><snip><snip><snip><snip><snip><snip><snip><snip><snip><snip>
MacHershellWiki statistics
There are 1,298 total pages in the database. This includes "talk" pages,
pages about MacHershellWiki, minimal "stub" pages, redirects, and others
that probably don't qualify as content pages. Excluding those, there are
18,446,744,073,709,551,614 pages that are probably legitimate content pages.
There have been a total of 423 page views, and 161 page edits since the
wiki was setup. That comes to 0.12 average edits per page, and 2.63
views per edit.
User statistics
There are 3 registered users, of which 2 (or 66.67%) are administrators
(see Project:Administrators).
<snip><snip><snip><snip><snip><snip><snip><snip><snip><snip><snip>
I've done quite a bit of searching, but haven't found any references to
this odd behavior...
Could someone please help me understand this?
Chris
Hi All--
[I posted this in a different form last week, but didn't get a
definitive reply.]
I'm trying to work out what or where I need to hack the php
code to alter the way "broken local links" (ie. references to
pages which aren't in the wiki, which are normally transformed
into "&action=edit" style links) are displayed.
I have looked in the obvious places--Linker.php and Skin.php--but
I can't seem to locate the relevant function, and more general
research has turned up nothing.
Can anyone shed some light, please?
CYa,
JEREMY
> From: "Piyush Varma" <pvarma(a)inventures.com>
>
> I want to add and update menu options in Clean.php skin. The skin
> was downloaded from http://wiki.kevcom.com/wiki/Clean_Skin.
Boy, that skin is really CLEAN! (When I try it, I get a blank page.)
Have you tried contacting the author directly? His website has
contact info.
:::: The white man seeks to conquer nature, to bend it to his will
and to use it wastefully until it’s all gone and then he simply moves
on, leaving the waste behind him and looking for new places to take.
The whole white race is a monster who is always hungry and what he
eats is land. — Chiksika, elder brother of Tecumseh, March 19, 1779
:::: Jan Steinman, http://www.Bytesmiths.com
Hi everyone,
I have set up $wgLocaltimezone and I get it right; when I save a page, it
takes the time I've set up in $wgLocaltimezone.
However, when I assign a page with ~~~~, my signature always takes the CST
(Central Standard Time); and unfortunately that doesn't work for me.
Does someone know where should I set up, in order to get the local PC time
into my signatures?
Thanks a lot,
mauro.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.6/213 - Release Date: 12/23/2005