Merci beaucoup Mike, je vais regarder ce que tu as fait et peut-etre que je vais y arriver.
PS : ton français est plutôt pas mal :)
On Fri, May 23, 2008 at 12:24 AM, mediawiki-l-request@lists.wikimedia.org wrote:
Send MediaWiki-l mailing list submissions to mediawiki-l@lists.wikimedia.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.wikimedia.org/mailman/listinfo/mediawiki-l or, via email, send a message with subject or body 'help' to mediawiki-l-request@lists.wikimedia.org
You can reach the person managing the list at mediawiki-l-owner@lists.wikimedia.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of MediaWiki-l digest..."
Today's Topics:
- Re: how to generate a unique page title? (Derrick Farnell)
- Re: Images not displaying after server move (Chris Riesen)
- Re: how to generate a unique page title? (65s.mg@atlas.cz)
- Re: how to generate a unique page title? (Derrick Farnell)
- Re: how to generate a unique page title? (Chris Riesen)
- When's 1.13 due? (David Gerard)
- Re: how to generate a unique page title? (Derrick Farnell)
- Re: When's 1.13 due? (Brion Vibber)
- Insertion d'une banni?re (NiC1305)
- Re: Insertion d'une banni?re (Michael Daly)
Message: 1 Date: Thu, 22 May 2008 17:24:28 +0100 From: "Derrick Farnell" derrick.farnell@gmail.com Subject: Re: [Mediawiki-l] how to generate a unique page title? To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Message-ID: 9729c7810805220924u54203bf8oc411c7af1d73a74@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
Thanks very much Chris. I tried that, but it didn't work. The value produce by the {{CURRENTTIMESTAMP}} variable didn't change upon returning to the page, or even doing a hard refresh. I've double-checked that I followed your instructions correctly.
On Thu, May 22, 2008 at 5:12 PM, Chris Riesen chris.riesen@gmail.com wrote:
Look in the code for this line: function actionCreate($action, $article) {
Below change this line: global $wgRequest; into this: global $wgRequest, $parser;
Now add just below that global line this here: $parser->disableCache();
I have not tested this but by general programming logic that should do the trick.
On Thu, May 22, 2008 at 10:01 AM, Derrick Farnell derrick.farnell@gmail.com wrote:
Adding the code at the end of the extension code cause the site to
crash.
On Thu, May 22, 2008 at 3:20 PM, Derrick Farnell <
derrick.farnell@gmail.com>
wrote:
Thanks very much - I'll give that a go. However, I'm not very
literate
with
coding: It says to just insert the following code in the extension:
$parser->disableCache();
I assume that I should just add it to the end of the main extension
php
file? Also, could there be any downsides to disabling caching for an extension?
Also, I tried to use the {{NUMBEROFEDITS}} and {{NUMBEROFPAGES}}
variables
instead, and neither of them changed even after a new page was
created
and I
returned to create a new page. Shouldn't these values have at least
changed
after the creation of new page, caching or not?
Derrick
On Thu, May 22, 2008 at 2:41 PM, Boris Steipe <
boris.steipe@utoronto.ca>
wrote:
See the Extensions FAQ: http://www.mediawiki.org/wiki/Extensions_FAQ
"How do I disable caching for pages using my extension?"
HTH,
Boris
On 22-May-08, at 8:11 AM, Derrick Farnell wrote:
Hi
I'm using the CreateBox extenstion: http://www.mediawiki.org/wiki/Extension:CreateBox
I want the title of each new page created via this extension to consist of 'User/xxxx', where the user substitutes 'User' for their own username, and 'xxxx' is anything unique. I've tried using the following code
for
the
default field text:
User/{{CURRENTTIMESTAMP}}
http://www.chainsofreason.org/wiki/Create_a_new_chain
I used this variable to save the user having to add something unique, given that the timestamp includes seconds and therefore should never be the same on each use. However, the timestamp does not actually change
after
the user returns to the same page to create another new page - presumably something to do with caching.
Can anyone think of any other way of automatically something
after
'Username/' that will always be unique - it doesn't matter what
it
is.
Thanks in advance for any help.
Derrick _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Message: 2 Date: Thu, 22 May 2008 10:24:33 -0600 From: "Chris Riesen" chris.riesen@gmail.com Subject: Re: [Mediawiki-l] Images not displaying after server move To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Message-ID: bcbe83760805220924g577b0c39ue5dd7e207be6def6@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
I am getting a 403 on that. The permissions of your server are most likely set wrong. That is not the file permissions but permissions of apache. You need to make sure that it is allowed to use these directories.
Run a chmod -R 777 on the images folder just for good measure to see if it works. If that wont, then it is in apache. Did you set a .htaccess file maybe?
- Chris
On Thu, May 22, 2008 at 10:18 AM, Lennie Jarratt ljarratt@gmail.com wrote:
I moved my site to a new server. Now, none of the images are displaying. It appears the image file cannot be found on the server. I have checked
the
files and they do exist. I also temporarily changed the directory permissions to 777 on the images and its subdirectories. The file permissions themselves are 644 as shown in the attached file.
http://sunshinereview.org/index.php/Main_Page http://sunshinereview.org/images/8/83/Beta_tag.png
Thanks for the help.
Lennie
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Message: 3 Date: Thu, 22 May 2008 16:29:31 GMT From: 65s.mg@atlas.cz Subject: Re: [Mediawiki-l] how to generate a unique page title? To: mediawiki-l@lists.wikimedia.org Message-ID: e6195ea7225144ba9eef35634a19f919@c6cf4dbbea054dc19f6c0f9034d64a95 Content-Type: text/plain; charset="utf-8"
What about to use $wgParser instead?
Message: 4 Date: Thu, 22 May 2008 17:33:49 +0100 From: "Derrick Farnell" derrick.farnell@gmail.com Subject: Re: [Mediawiki-l] how to generate a unique page title? To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Message-ID: 9729c7810805220933o116a5518g7af4b3689368c4ac@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
Do you mean code that I would add to LocalSettings.php and would affect the whole site? I only want this affect the page using this extension. Am I right in thinking that disabling caching slows the site down?
On Thu, May 22, 2008 at 5:29 PM, 65s.mg@atlas.cz wrote:
What about to use $wgParser instead? _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Message: 5 Date: Thu, 22 May 2008 10:44:14 -0600 From: "Chris Riesen" chris.riesen@gmail.com Subject: Re: [Mediawiki-l] how to generate a unique page title? To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Message-ID: bcbe83760805220944k58fb2a00le42fab0f10d0d9a2@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
If I were you, I'd make a copy of the extension, rename it, then hard code it to use a random value every time the extension is called (output of the time() function is the thing you are using now). If you want to, I think I could modify the current code and post it on MediaWiki.org for you.
- Chris
On Thu, May 22, 2008 at 10:33 AM, Derrick Farnell derrick.farnell@gmail.com wrote:
Do you mean code that I would add to LocalSettings.php and would affect
the
whole site? I only want this affect the page using this extension. Am I right in thinking that disabling caching slows the site down?
On Thu, May 22, 2008 at 5:29 PM, 65s.mg@atlas.cz wrote:
What about to use $wgParser instead? _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Message: 6 Date: Thu, 22 May 2008 17:52:27 +0100 From: "David Gerard" dgerard@gmail.com Subject: [Mediawiki-l] When's 1.13 due? To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Message-ID: fbad4e140805220952t1bc45649qa12ea30ce32763b0@mail.gmail.com Content-Type: text/plain; charset=UTF-8
What's the anticipated release date for 1.13?
- d.
Message: 7 Date: Thu, 22 May 2008 17:57:08 +0100 From: "Derrick Farnell" derrick.farnell@gmail.com Subject: Re: [Mediawiki-l] how to generate a unique page title? To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Message-ID: 9729c7810805220957k6874454au599321e6df8005dd@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
That sounds great - thanks very much. I need the default text in the form field to be:
User/something_unique_each_time_the_page_loads
It would be great if you could also have the extension automatically enter the user's username (users need to be logged-in to contribute on the wiki and so will always have a username), although this is not critical as I'm currently requesting that users manually change 'User' to their username. I guess the number of characters in the random part would need to be at least three or four, to avoid the same sequence being generated twice. The advantage of using the date and time was that it would of course simply be impossible for that to happen.
Thanks again!
On Thu, May 22, 2008 at 5:44 PM, Chris Riesen chris.riesen@gmail.com wrote:
If I were you, I'd make a copy of the extension, rename it, then hard code it to use a random value every time the extension is called (output of the time() function is the thing you are using now). If you want to, I think I could modify the current code and post it on MediaWiki.org for you.
- Chris
On Thu, May 22, 2008 at 10:33 AM, Derrick Farnell derrick.farnell@gmail.com wrote:
Do you mean code that I would add to LocalSettings.php and would affect
the
whole site? I only want this affect the page using this extension. Am I right in thinking that disabling caching slows the site down?
On Thu, May 22, 2008 at 5:29 PM, 65s.mg@atlas.cz wrote:
What about to use $wgParser instead? _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Message: 8 Date: Thu, 22 May 2008 10:07:43 -0700 From: Brion Vibber brion@wikimedia.org Subject: Re: [Mediawiki-l] When's 1.13 due? To: MediaWiki announcements and site admin list mediawiki-l@lists.wikimedia.org Message-ID: 4835A85F.90201@wikimedia.org Content-Type: text/plain; charset=ISO-8859-1
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
David Gerard wrote:
What's the anticipated release date for 1.13?
June.
- -- brion
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkg1qF8ACgkQwRnhpk1wk449ugCgkUWlQLYgUtuLreTpwybG8tSD ue0AnjfjAveOFZrvczQwpZadT1krreDC =cA91 -----END PGP SIGNATURE-----
Message: 9 Date: Thu, 22 May 2008 23:27:45 +0200 From: NiC1305 nic1305@gmail.com Subject: [Mediawiki-l] Insertion d'une banni?re To: mediawiki-l@lists.wikimedia.org Message-ID: ab1810e00805221427p1ed75917v9708c9354e8f4a15@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
Bonjour,
j'ai cr?e une banni?re pour mettre sur mon wiki renvoyant vers un autre de mes sites (une sorte de sponsoring) et que je souhaite mettre tout en haut de mon mediawiki afin que cette banni?re soit voyante.
Elle fait la taille d'une banni?re de publicit? 128*60 et je n'arrive pas ? modifier le main.css pour que cela reste joli. De plus, et cela est d'autant plus emb?tant, elle s'affiche dans la page printable...
Est-ce que qqn aurait une modif css pour int?gr? une image 128*60 en haut de toutes les pages (sauf printable), de mani?re ? ce que ?a reste joli.
Cordialement
-- @+ NiC1305 nabaztag : nic1305@nabaztag.com
Message: 10 Date: Thu, 22 May 2008 18:24:16 -0400 From: Michael Daly michael.daly@kayakwiki.org Subject: Re: [Mediawiki-l] Insertion d'une banni?re To: MediaWiki announcements and site admin list mediawiki-l@lists.wikimedia.org Message-ID: 4835F290.1000809@kayakwiki.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed
NiC1305 wrote:
Est-ce que qqn aurait une modif css pour int?gr? une image 128*60 en haut
de
toutes les pages (sauf printable), de mani?re ? ce que ?a reste joli.
(Je parle anglais, excusez moi pour le francais mauvais. Perhaps someone can translate mine into proper French.)
J'ai fait un "skin" sur mon wiki avec un image comme ce (1000x125), mais il faut que j'ai fait les changes dans le nom-de-skin.php aussi. Il y a un problem dans le skin Monobook - il ne change pas le grandeur du texte tres bien.
Je n'employe pas les "position absolute" dans main.css. Tous les position sont fait avec position relatif. J'employe les "<div>" et les "<table>" et chacun reste pres l'autre sans position absolute. Avec ces changes, le position des petites choses (comme les "tab") reste avec leur element voisin plus grand.
Mon wiki est ici:
et j'ai fait un "zip" de le "skin" (nom: kwskin.php), main.css, IE*fixes.css, l'image (newBanner.png)... ici:
http://pool.kayakwiki.org/index.php/Image:KwSkin.zip
Mike
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
End of MediaWiki-l Digest, Vol 56, Issue 31
mediawiki-l@lists.wikimedia.org