Hallo,
could anyone out there instruct me how to create specialpages. And furthermore to call them Myname: abc thxs mic
On 8/21/07, Michael Heyder Info@hafenvolleyballer.de wrote:
could anyone out there instruct me how to create specialpages. And furthermore to call them Myname: abc
http://www.mediawiki.org/wiki/Writing_a_new_special_page
Hope it helps.
Ciao!
Manu
Emanuele D'Arrigo schrieb:
On 8/21/07, Michael Heyder Info@hafenvolleyballer.de wrote:
could anyone out there instruct me how to create specialpages. And furthermore to call them Myname: abc
http://www.mediawiki.org/wiki/Writing_a_new_special_page
Hope it helps.
Ciao!
Manu
thanks, but the main problem is, that the new special page - in my case SpecialNewPageWizard.php - should be an extented class of the wizardBase.php?
So, what could I do now?
solong mic
On 8/21/07, Michael Heyder Info@hafenvolleyballer.de wrote:
thanks, but the main problem is, that the new special page - in my case SpecialNewPageWizard.php - should be an extented class of the wizardBase.php? So, what could I do now?
Your question is very broad. If you were somebody who wanted to be an artist it'd be like asking: I'd like to draw a landscape, what do I do now?
Do you know enough about PHP? If yes, you should be able to make a new special page with the information in the link I gave you. If not you should first learn more about php and then go back to the link.
If I'm not understanding your question: what do you need?
Manu
Emanuele D'Arrigo schrieb:
On 8/21/07, Michael Heyder Info@hafenvolleyballer.de wrote:
thanks, but the main problem is, that the new special page - in my case SpecialNewPageWizard.php - should be an extented class of the wizardBase.php? So, what could I do now?
Your question is very broad. If you were somebody who wanted to be an artist it'd be like asking: I'd like to draw a landscape, what do I do now?
Do you know enough about PHP? If yes, you should be able to make a new special page with the information in the link I gave you. If not you should first learn more about php and then go back to the link.
If I'm not understanding your question: what do you need?
Manu
So, in the link you told me the new specialsite is a extented class from parent specialpage. It can't be at the same time a kindclass of the abstract wizardbase, which implements all global methods of the wizard.
Surely, it's no problem to create a new specialsite, but a specialsite, wich is a kind of wizardbase.
I will continue my personal brainstorming greetz mic
On 8/21/07, Michael Heyder Info@hafenvolleyballer.de wrote:
So, in the link you told me the new specialsite is a extented class from parent specialpage. It can't be at the same time a kindclass of the abstract wizardbase, which implements all global methods of the wizard. Surely, it's no problem to create a new specialsite, but a specialsite, wich is a kind of wizardbase.
From what you write it seems to me you just want to create special
page that inherits from both the class specialpage and wizardbase. Multiple Inheritance is not available in PHP. This has nothing to do with MediaWiki. You might want to have a look into ways to fake multiple inheritance, i.e. creating interface or container objects...
Ciao!
Manu
php does not have multiple inheritance AFAIK, but you can instantiate an object of class WizardBase within your execute method within a SpecialPage object and call WizardBase methods on it. As Manu asked, how well do you know PHP? Have you done OO PHP before?
Jim
On Aug 21, 2007, at 12:12 PM, Michael Heyder wrote:
Emanuele D'Arrigo schrieb:
On 8/21/07, Michael Heyder Info@hafenvolleyballer.de wrote:
thanks, but the main problem is, that the new special page - in my case SpecialNewPageWizard.php - should be an extented class of the wizardBase.php? So, what could I do now?
Your question is very broad. If you were somebody who wanted to be an artist it'd be like asking: I'd like to draw a landscape, what do I do now?
Do you know enough about PHP? If yes, you should be able to make a new special page with the information in the link I gave you. If not you should first learn more about php and then go back to the link.
If I'm not understanding your question: what do you need?
Manu
So, in the link you told me the new specialsite is a extented class from parent specialpage. It can't be at the same time a kindclass of the abstract wizardbase, which implements all global methods of the wizard.
Surely, it's no problem to create a new specialsite, but a specialsite, wich is a kind of wizardbase.
I will continue my personal brainstorming greetz mic
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
Jim Hu wrote:
php does not have multiple inheritance AFAIK, but you can instantiate an object of class WizardBase within your execute method within a SpecialPage object and call WizardBase methods on it.
Aka delegation. Multiple inheritance is over-sold and overused IMNSHO.
Delegation will do what the OP wants rather well.
Mike
I have 5 MediaWiki installations which has stopped displaying thumbnails in the image gallery index.php?title=Speciel:Newimages. It only affects the thumbnails, the full scale images are working fine. Instead of the thumbnails, it displays the message "Incomplete GD library configuration: missing function imagecreatefrompng".
At first I thought the problem started because I imported image metadata in a XML file and inserted images to the image directories, from another MediaWiki installation, but this should only affect the Wiki importing the image metadata, not all of them I suppose. They do use the same database though.
If it has any significans I am using a Windows 2003 server with IIS 6.0
What can course this problem?
Henrik
Henrik Rasmussen wrote:
I have 5 MediaWiki installations which has stopped displaying thumbnails in the image gallery index.php?title=Speciel:Newimages. It only affects the thumbnails, the full scale images are working fine. Instead of the thumbnails, it displays the message "Incomplete GD library configuration: missing function imagecreatefrompng".
This may indicate a damaged, missing, or badly configured build of PHP and/or PHP's GD extension (missing the PNG libraries during build).
At first I thought the problem started because I imported image metadata in a XML file and inserted images to the image directories, from another MediaWiki installation, but this should only affect the Wiki importing the image metadata, not all of them I suppose. They do use the same database though.
The way you imported the data shouldn't matter, but the way you imported the *configuration* might. It's possible that your current server doesn't have PHP's GD extension set up at all, but that the one you copied your wiki from did.
Check your LocalSettings.php; try setting $wgUseImageResize to 'false' instead of 'true'. This will disable the use of server-size resizing, so large images will be scaled down by the browser.
Alternatively, check if the PHP GD extension is enabled, and install/enable it if if necessary. (It may be present as a .dll file but not enabled in php.ini.)
If it has any significans I am using a Windows 2003 server with IIS 6.0
-- brion vibber (brion @ wikimedia.org)
Brion Vibber wrote:
I have 5 MediaWiki installations which has stopped displaying thumbnails in the image gallery index.php?title=Speciel:Newimages. It only affects the thumbnails, the full scale images are working fine. Instead of the thumbnails, it displays the message "Incomplete GD library configuration: missing function imagecreatefrompng".
This may indicate a damaged, missing, or badly configured build of PHP and/or PHP's GD extension (missing the PNG libraries during build).
At first I thought the problem started because I imported image metadata in a XML file and inserted images to the image directories, from another MediaWiki installation, but this should only affect the Wiki importing the image metadata, not all of them I suppose. They do use the same database though.
The way you imported the data shouldn't matter, but the way you imported the *configuration* might. It's possible that your current server doesn't have PHP's GD extension set up at all, but that the one you copied your wiki from did.
Check your LocalSettings.php; try setting $wgUseImageResize to 'false' instead of 'true'. This will disable the use of server-size resizing, so large images will be scaled down by the browser.
Alternatively, check if the PHP GD extension is enabled, and install/enable it if if necessary. (It may be present as a .dll file but not enabled in php.ini.)
This was weird. By installing PHP on another server and picking the php_gd2.dll from the new installation to this one, restarting the webserver, booting the Windows server, emptying browser cache, it still didn't solve the problem. Without further debugging it is working fine this morning. Well, problem solved. Thanks.
If it has any significans I am using a Windows 2003 server with IIS 6.0
mediawiki-l@lists.wikimedia.org