Extension talk:Attribute

I'm using MediaWiki: 1.7.1, PHP: 5.1.5 (apache2handler) and MySQL: 5.0.24-community-nt

I had to change // Add special page if ( version_compare( $wgVersion, '1.7.1', '<' )) { require_once(dirname(__FILE__) . '/xyAttributeQuery.php'); SpecialPage::addPage(new XyAttributeQuery ); }  else { if ( !function_exists( 'extAddSpecialPage' ) ) { require( dirname(__FILE__) . '/../ExtensionFunctions.php' ); }    extAddSpecialPage( dirname(__FILE__) . '/xyAttributeQuery.php', 'XyAttributeQuery', 'XyAttributeQuery' ); }

to

// Add special page if ( version_compare( $wgVersion, '1.7.1', '<=' )) { require_once(dirname(__FILE__) . '/xyAttributeQuery.php'); SpecialPage::addPage(new XyAttributeQuery ); }  else { if ( !function_exists( 'extAddSpecialPage' ) ) { require( dirname(__FILE__) . '/../' ); }    extAddSpecialPage( dirname(__FILE__) . '/xyAttributeQuery.php', 'XyAttributeQuery', 'XyAttributeQuery' ); }

in xyAttribute.php

There's no ExtensionFunctions.php in 1.7.1, and I couldn't find much about the file. Seems to work fine after the change.

Icon issue: Using MW 1.7.1, had to comment out the $xyAttributePng line in LocalSettings.php in order for the button to display properly in the editor. --Jtautry 21:31, 16 October 2006 (UTC)

Props
Just wanted to leave some props. Very cool extension. --131.158.72.67 22:12, 15 December 2006 (UTC)

MW Versions
Is it possible to have it on MW 1.6.7? Any changes to code are needed?

Regards, Aretai 14:43, 2 February 2007 (UTC)

Having problems in 1.9.2 version

 * I am getting

"Fatal error: Call to undefined function wfInsertArray in /opt/lampp/mediawiki/extensions/xyAttribute/xyAttribute.php on line 170"

--129.46.173.14 02:10, 17 February 2007 (UTC)


 * I had the same problem using version 1.9.3

Solved including the following statement right before line 170:

require_once("./includes/DatabaseFunctions.php");

201.49.16.43 17:30, 10 May 2007 (UTC)

missing specialpage
I simply don't have the page for querying the data. I had some minor issues installinng the extension (like missing ExtensionFunctions.php that I didn't have in the extensions directory and a missing localization file plus I had to paste the SQL thing in phpMyAdmin) that I fixed. But I don't have the special page, I usually nuke everything that doesn't work, but this is a neat extension and anyway the data is being gathered even if I don't have any specialpage for querying it.

Any suggestions on manually creating the specialpage? 354d 18:11, 20 August 2007 (UTC)

More recent versions?
Just wondering if there are any plans to update this extension for the more recent versions of MediaWiki, specifically 1.12?

Working with 1.11.2

 * Installing ExtensionFunctions.php and activating DatabaseFunctions.php as described above
 * Adding return values for some functions in xyAttribute.php

Here is the whole patch for xyAttribute.php

79a80 >  return true; 86c87 <  if ($action != 'xyAttributes') return; --- >  if ($action != 'xyAttributes') return false; 89c90 <  $myAction = wfMsg('xyattributes'); --- >  $myAction = wfMsg('xyAttributes'); 106c107 <    return; --- >    return false; 158c159 <  if (!$ret) return; --- >  if (!$ret) return false; 169a171 >  require_once("./includes/DatabaseFunctions.php"); 170a173 >  return true;

Working with 1.13.3

 * Using this modified xyAttribute.php and adding to the extension folder ExtensionFunctions.php and activating DatabaseFunctions.php as described above will get things working with 1.13.3. (Based on the post above)

1.16.1
In xyAttributeQuery.php there is an apparent typo. Around line 235, the query button creation line should look like:



The unbalanced <TD </TD tags in the downloaded file cause Chrome and EI8 and EI9 to choke and fail to display the button. Firefox is more forgiving and never had this problem.

Mickeyf 16:00, 12 July 2011 (UTC)