DeveloperSide.NET Forums

DeveloperSide.NET => Anything else goes here => Topic started by: glennster on August 24, 2007, 12:54:49 PM



Title: Mediawiki wikipoll extension images problem
Post by: glennster on August 24, 2007, 12:54:49 PM
I've added the wikipoll extension to mediawiki but cannot get the poll graph and button images to appear. The wikipoll instructions indicate that they should be placed in the wiki folder - so i've tried putting them in the webroot, www, and mediawiki folders but none of those work. Thanks in advance.


Title: Re: Mediawiki wikipoll extension images problem
Post by: night2dark2 on August 25, 2007, 03:42:26 AM
For the /wikipedia dir you go to /www/webapps/wiki and place it there and it will work :)


Title: Re: Mediawiki wikipoll extension images problem
Post by: glennster on August 27, 2007, 04:52:54 PM
My directory structure does not have a /www/webapps/wiki folder, but has the following:

/www/apache22
/www/mediawiki/extensions/poll
/webroot/

Thanks for any assistance.


Title: Re: Mediawiki wikipoll extension images problem
Post by: glennster on August 29, 2007, 11:46:17 AM
I debugged poll.php and found out that $wgScriptPath is ""

When poll.php attempted to access the images with the format src="'.$wgScriptPath.'/../ the result was that no images could be found because the folder being pointed to did not exist.

To make the images appear I had to change the portion of the poll.php function as follows:

src="'.$wgScriptPath.'/

and place the images in the folder c:\www\webroot.


Title: Re: Mediawiki wikipoll extension images problem
Post by: night2dark2 on August 30, 2007, 09:46:24 PM
ah you should have specified your WD Package version >_< I've had all packages already so I know