Last modified: 2007-11-14 15:39:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10913, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8913 - Requesting installation of the wikiquiz extension on "wikiversité"
Requesting installation of the wikiquiz extension on "wikiversité"
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://fr.wikiversity.org/wiki/Accueil
: patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-07 13:16 UTC by BABE Louis Remi
Modified: 2007-11-14 15:39 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Javascript part of the extension (7.73 KB, application/x-javascript)
2007-02-07 13:37 UTC, BABE Louis Remi
Details
php part of the extension (16.14 KB, application/octet-stream)
2007-02-07 13:38 UTC, BABE Louis Remi
Details
Javascript part of the extension (7.50 KB, application/x-javascript)
2007-02-21 14:11 UTC, BABE Louis Remi
Details
php part of the extension (16.47 KB, application/octet-stream)
2007-02-21 14:11 UTC, BABE Louis Remi
Details
extension code (24.84 KB, application/octet-stream)
2007-03-17 19:03 UTC, BABE Louis Remi
Details
messages and colors (2.85 KB, application/octet-stream)
2007-03-17 19:03 UTC, BABE Louis Remi
Details
extension code (24.96 KB, application/octet-stream)
2007-03-19 15:19 UTC, BABE Louis Remi
Details
messages and colors (2.66 KB, application/octet-stream)
2007-03-19 15:19 UTC, BABE Louis Remi
Details
extension php code (24.88 KB, application/octet-stream)
2007-03-21 16:14 UTC, BABE Louis Remi
Details
extension colors and messages (2.66 KB, application/octet-stream)
2007-03-21 16:14 UTC, BABE Louis Remi
Details
extension javascript (1.90 KB, application/x-javascript)
2007-03-21 16:15 UTC, BABE Louis Remi
Details
extension php code (21.34 KB, application/octet-stream)
2007-03-22 20:53 UTC, BABE Louis Remi
Details
extension javascript (1.91 KB, application/x-javascript)
2007-03-22 20:54 UTC, BABE Louis Remi
Details
extension colors and messages (2.53 KB, application/octet-stream)
2007-03-22 21:09 UTC, BABE Louis Remi
Details
extension php code (21.02 KB, application/octet-stream)
2007-03-22 23:47 UTC, BABE Louis Remi
Details
internationalisation file (2.33 KB, application/octet-stream)
2007-03-22 23:47 UTC, BABE Louis Remi
Details

Description BABE Louis Remi 2007-02-07 13:16:20 UTC
I proposed the extension wikiquiz (http://meta.wikimedia.org/wiki/Wikiquiz) to
the administrators of wikiversité and those accepted
(http://fr.wikiversity.org/wiki/Wikiversit%C3%A9:La_salle_caf%C3%A9/5_f%C3%A9vrier_2007).

I thus ask for the installation of this extension on wikiversity. 

In advance thank you. Lrbabe
Comment 1 BABE Louis Remi 2007-02-07 13:23:05 UTC
I forgot to announce that I was French, I am sorry for the English faults.
Comment 2 BABE Louis Remi 2007-02-07 13:37:28 UTC
Created attachment 3194 [details]
Javascript part of the extension

The code is not commented because of my low English level. Sorry.
Comment 3 BABE Louis Remi 2007-02-07 13:38:20 UTC
Created attachment 3195 [details]
php part of the extension

The code is not commented because of my low English level. Sorry.
Comment 4 BABE Louis Remi 2007-02-07 13:48:42 UTC
I would also like to know if it were possible to add this extension to the SVN.
In advance thank you. 
Comment 5 Steve Sanbeg 2007-02-07 16:27:47 UTC
(In reply to comment #4)
> I would also like to know if it were possible to add this extension to the SVN.
> In advance thank you. 

Yes, it will need to be tested and added to SVN before being installed.
Comment 6 Steve Sanbeg 2007-02-07 16:42:41 UTC
Currently, the extension won't work if it's in a subdirectory, since it won't
find the javascript.  It would be better to change the intallation instructions
to install it as extensions/WikiQuiz/wikiquiz.php, then include the javascript
similar to how CategoryTree does it:

<script type=\"{$wgJsMimeType}\"
src=\"{$wgScriptPath}/extensions/CategoryTree/CategoryTree.js\">"
Comment 7 BABE Louis Remi 2007-02-07 17:04:18 UTC
Sorry, I don't know how to recover these variables :
$wgJsMimeType and $wgScriptPath
Comment 8 Steve Sanbeg 2007-02-07 20:55:07 UTC
(In reply to comment #7)
> Sorry, I don't know how to recover these variables :
> $wgJsMimeType and $wgScriptPath

You can just declare them as global in your function, i.e.

function myfunction() {
  global $wgJsMimeType, $wgScriptPath;
  ...
}
Comment 9 BABE Louis Remi 2007-02-07 21:34:51 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Sorry, I don't know how to recover these variables :
> > $wgJsMimeType and $wgScriptPath
> 
> You can just declare them as global in your function, i.e.
> 
> function myfunction() {
>   global $wgJsMimeType, $wgScriptPath;
>   ...
> }

Ok, code was changed, following your suggestions. I just replaced the old script
insertion with :
global $wgJsMimeType, $wgScriptPath;
$output .= "<script type=\"{$wgJsMimeType}\"
src=\"{$wgScriptPath}/extensions/wikiquiz/wikiquiz.js\"></script>\n";

Installation instructions will be corrected soon, as well. Must I attach the new
wikiquiz.php file to this bug or are these instructions enough ? 
Comment 10 Steve Sanbeg 2007-02-08 15:27:14 UTC
It may be better to attach it, and mark the old one obsolete; but as long as it
can be found I guess it's OK.

BTW, to import an article, it may be better to use PARSER::fetchTemplate than
make SQL statements, since that will give more consistent handling, and not
break if the schema changes.  You can see an example of that in
extensions/LabeledSectionTransclusion/lst.php
Comment 11 BABE Louis Remi 2007-02-08 18:08:40 UTC
(In reply to comment #10)
> It may be better to attach it, and mark the old one obsolete; but as long as it
> can be found I guess it's OK.
> 
> BTW, to import an article, it may be better to use PARSER::fetchTemplate than
> make SQL statements, since that will give more consistent handling, and not
> break if the schema changes.  You can see an example of that in
> extensions/LabeledSectionTransclusion/lst.php

I was searching for the "cleanest" way to make it and I was quite sure that SQL
statements was not the best way. Thanks a lot ! I'm gonna change it this week end.
Comment 12 BABE Louis Remi 2007-02-09 14:32:57 UTC
The "$parser->disableCache();" will be withdrawn in the 1.0 stable version.
Comment 13 BABE Louis Remi 2007-02-12 16:40:23 UTC
I've tried to to use PARSER::fetchTemplate but I failed :

$title = Title::makeTitleSafe( NS_MEDIAWIKI, "a valid page name");
$text = $parser->fetchTemplate($title);

$text is always "false" (instead of containing the text of the included page). I
need help on this function.
Thanks.
Comment 14 Steve Sanbeg 2007-02-12 19:45:09 UTC
(In reply to comment #13)
> I've tried to to use PARSER::fetchTemplate but I failed :
> 
> $title = Title::makeTitleSafe( NS_MEDIAWIKI, "a valid page name");
> $text = $parser->fetchTemplate($title);
> 
> $text is always "false" (instead of containing the text of the included page). I
> need help on this function.
> Thanks.


NS_MEDIAWIKI is for system messages; NS_MAIN would be a better default, and
should allow fetching pages without a leading : before the title.
Comment 15 BABE Louis Remi 2007-02-21 14:11:13 UTC
Created attachment 3251 [details]
Javascript part of the extension
Comment 16 BABE Louis Remi 2007-02-21 14:11:57 UTC
Created attachment 3252 [details]
php part of the extension
Comment 17 BABE Louis Remi 2007-02-21 14:18:37 UTC
This is the 0.9.9.9 version.
This version is ready to be tested in order to be validated. 
Syntax is final and the pages of the extension were translated into English. 
The only bug remaining is impossibility of including two quiz in the same page.
This bug will be corrected with version 1.0 available soon. 

What do I have to do so that this extension is tested ?
In advance thank you.
Comment 18 BABE Louis Remi 2007-02-22 13:20:14 UTC
(In reply to comment #17)
> This is the 0.9.9.9 version.
> This version is ready to be tested in order to be validated. 
> Syntax is final and the pages of the extension were translated into English. 
> The only bug remaining is impossibility of including two quiz in the same page.
> This bug will be corrected with version 1.0 available soon. 
> 
> What do I have to do so that this extension is tested ?
> In advance thank you.

This version is not definitive and syntax is not final...
Wait a little bit more for the 1.0
Comment 19 BABE Louis Remi 2007-03-17 19:03:15 UTC
Created attachment 3359 [details]
extension code
Comment 20 BABE Louis Remi 2007-03-17 19:03:47 UTC
Created attachment 3360 [details]
messages and colors
Comment 21 BABE Louis Remi 2007-03-17 19:16:15 UTC
The extension is now ready to be tested !
Comment 22 BABE Louis Remi 2007-03-19 15:19:37 UTC
Created attachment 3364 [details]
extension code
Comment 23 BABE Louis Remi 2007-03-19 15:19:58 UTC
Created attachment 3365 [details]
messages and colors
Comment 24 BABE Louis Remi 2007-03-21 16:14:11 UTC
Created attachment 3371 [details]
extension php code
Comment 25 BABE Louis Remi 2007-03-21 16:14:45 UTC
Created attachment 3372 [details]
extension colors and messages
Comment 26 BABE Louis Remi 2007-03-21 16:15:01 UTC
Created attachment 3373 [details]
extension javascript
Comment 27 BABE Louis Remi 2007-03-22 20:53:54 UTC
Created attachment 3380 [details]
extension php code
Comment 28 BABE Louis Remi 2007-03-22 20:54:55 UTC
Created attachment 3381 [details]
extension javascript
Comment 29 BABE Louis Remi 2007-03-22 21:09:55 UTC
Created attachment 3382 [details]
extension colors and messages
Comment 30 BABE Louis Remi 2007-03-22 23:47:25 UTC
Created attachment 3384 [details]
extension php code
Comment 31 BABE Louis Remi 2007-03-22 23:47:58 UTC
Created attachment 3385 [details]
internationalisation file
Comment 32 BABE Louis Remi 2007-03-23 16:49:53 UTC
By the way, they asked for the installation of the Brion's syntax highliting
extension as well : http://bugzilla.wikimedia.org/show_bug.cgi?id=9322
Comment 33 Raimond Spekking 2007-11-14 15:39:07 UTC
http://www.mediawiki.org/wiki/Extension:Quiz installed and live since March 2007 -> FIXED.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links