using PasswordReset

edit

Hello i am using your password reset extention, which is working great, but when i include it in my LocalSettings.php my website font changes!! I saw in the extention properties that the extention was written for media wiki V1.10. I am now using it in version 1.7.1 without any php errors.

Do you perhaps know a solution? Kindly Regards, Ralph

Re-download the extension - you must have downloaded a bad version of one of the PHP files. (often caused by a UTF-8 BOM at the beginning of the file)
Tim LaquaTalk | contribs@05:33, 29 November 2007 (UTC)Reply

Extension:Icon & Paragraph tags

edit

Howdy, I really hate to be a bother, but I was attempting to use your Icon Extension on my wiki for inline icons (for icons for file types to be specific). Unfortunately it kicks out <p> </p> tags when it executes. I was wondering if there was any chance to stop this from happening? I realize its not your code (I've read the code) and it has something to do with how MW handles extensions. Unfortunately I don't understand enough about how extensions to work to fix this myself. Any words of advice (or bits of code) would be greatly appreciated. Thanks in advance. --ShakataGaNai 09:35, 8 January 2008 (UTC)Reply

Wrap it in a DIV tag - the P tag is comming from the parser trying to generate xhtml compliant code Tim Laqua talk 12:34, 8 January 2008 (UTC).Reply
That worked most excellently. Thank you very much!!! --ShakataGaNai 19:03, 8 January 2008 (UTC)Reply
edit

Hi there, just wondering whether the Icon extension supports external links? Nas

I have qualms with adding external link capabilities as I can't restrict use of the tool to sysops only and we don't need random users linking images and confusing users - really, w/o justification, I can't see implementing external linking in this extension. 199.17.29.36 17:50, 9 January 2008 (UTC)Reply

Quick Question

edit

Hey there Tim. I was just wondering if you ever do any paid side work? If so I have a couple of projects that involve mediawiki that shouldn't take too much time. Let me know and thank you. --Ajt 22:18, 6 August 2008 (UTC)Reply


Doesnt show on Google Analytics

edit

Hey, Im still having trouble with this extension, can you perhaps help?

From: Extension talk:Google Analytics Integration

I followed your installation process step by step. But it doesnt work. Does anyone have more information? Thanks.--Swessels 10:24, 30 July 2008 (UTC)

Have you waited a day? It might just take a little time to show up. Smaug 17:11, 30 July 2008 (UTC)
Uh, yes :-) Its been almost a week now, still nothing.... --Swessels 06:35, 1 August 2008 (UTC)
I've looked at the source code for my index page, and there is nothing in that showing the google code, so it seems asif the code is not "pasted" into every page. The extension is installed, when I look at the Special page: Version.--Swessels 08:42, 4 August 2008 (UTC)
--Swessels 09:07, 7 August 2008 (UTC)Reply

Hello, I have the same problem. The the google code is not in the source code. Just this line : Google Analytics tracking is disabled for logged-in users. Any idea ?

How to configure Extension:GroupPortal?

edit

Hi Tim, I think you have created a really useful extension. However, I am having trouble configuring it. How do I configure such a scenario: For anonymous users to view the normal main page For the rest of the users (including sysops) to view another user page.

I've tried this in MediaWiki:Groupportal

  • |Main page

user|User Home

sysop|User Home

And my settings in LocalSettings.php are

  1. Disable reading by anonymous users

$wgGroupPermissions['*']['read'] = false;

  1. But allow them to read e.g., these pages:

$wgWhitelistRead = array("Main Page", "Special:Userlogin", "Special:Userlogout");

  1. restrict anonymous users from editing any page

$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false;

//allows registered users to read all pages $wgGroupPermissions['user']['read'] = true;

Would appreciate any help. Thks.

Flip the order around (users are sent to the first match, so if you have *|Main Page first, everyone will go to the main page because everyone matches *) - try this:
sysop|User Home
user|User Home
*|Main page

Tim Laqua talk 12:47, 24 August 2008 (UTC)Reply


I'm having trouble with getting the User Group to work. Every other group works great, but if someone is just a user they see the same thing as if they are not signed in. Did they remove something in version 1.5 that broke this Extension? I'm currently running v1.16.5., I'm configured just like the original question, and I've verified my MediaWiki:GroupPortal is in the order you specified.

Thanks, WASand 20:43, 24 July 2011 (UTC)Reply

Password Reset Not Working with 1.13

edit

I have used installed this tool several times with no problems. I was about to upgrade to MediaWiki version 1.13 and decided to test first by setting a new blank Wiki 1.13 first to make sure there would be no problems.

I installed the PasswordReset extension and tried to test but I get a message saying that I am not a member of Sysop. I checked User Rights and I am a member. I created a second account and logged in and gave it all the rights, but still get the same message that I'm not a Sysop when I try to get to access the PasswordReset page.

At this point I suspect the extension is not working properly with the changes that have been made in the MediaWiki version 1.13. Can you confirm this?

It's an excellent tool and I would hate to lose access to it when I upgrade.

Thanks, Mike

Note: I'm still using version 1.12 and it has the same issue too. I test with the Admin login (has both Bureaucrat, Sysop) still it give the error that I'm not Sysops. Also you mention about passwordreset right, is that separate right?

Note2: I found sort of a solution for this. Will let Tim Laqua know and confirm this won't create another issue ;)
Thanks,
Andrew

Hmm... there's some new code in this extension, and the way it's written, it will always give you a permission error (I have no idea what the passwordresetself permission is for). Change this line:
        if ( !$wgUser->isAllowed( 'passwordreset' ) || !$wgUser->isAllowed( 'passwordresetself' ) ) {
to
        if ( !$wgUser->isAllowed( 'passwordreset' ) ) {
and it should work. Tim Laqua talk 12:57, 24 August 2008 (UTC)Reply

Spanish Localization for UserMerge

edit

Hello. I have appended a spanish localization to

UserMerge.alias.php
UserMerge.i18n.php

In addition I've extended the Installation Instructions in the wiki to Include the Aliases file present in the SVN.

How can I upload the modifications to the files above in order to make them public?

Best Regards, Leonardo Quevedo 17:35, 15 September 2008 (UTC)Reply

Localization should be done via translatewiki:Main Page - if you want to be able to interact with SVN directly, you need to get SVN Commit access
Tim Laqua talk 17:48, 15 September 2008 (UTC)Reply
It's a long way to get SVN Commit access and it does not worth the time for such a small addendum, maybe later. If you find it useful for a future version, I've just added
/** Spanish (Español)
 * @author Lquevedo
 */
$messages['es'] = array(
       'usermerge' => 'Fusionar y eliminar usuario',
       'usermerge-desc' => "[[Special:UserMerge|Fusiona las referencias de usuarios redundantes]] en la base de datos de la wiki (y borra el usuario
obsoleto. Requiere privilegio ''usermerge'')",
       'usermerge-badolduser' => 'Antiguo nombre de usuario no válido',
       'usermerge-badnewuser' => 'Nuevo nombre de usuario no válido',
       'usermerge-nonewuser' => 'Nuevo nombre de usuario vacío - asumiendo fusión con $1.<br />
Haga click en <u>Fusionar usuario</u> para aceptar.',
       'usermerge-noolduser' => 'Antiguo nombre de usuario vacío',
       'usermerge-olduser' => 'Antiguo usuario (fusionar desde)',
       'usermerge-newuser' => 'Nuevo usuario (fusionar hacia)',
       'usermerge-deleteolduser' => 'Eliminar antiguo usuario?',
       'usermerge-submit' => 'Fusionar usuario',
       'usermerge-badtoken' => 'Credencial de edición (Edit Token) no válida',
       'usermerge-userdeleted' => '$1 ($2) fue eliminado.',
       'usermerge-userdeleted-log' => 'Usuario eliminado: $2 ($3)',
       'usermerge-updating' => 'Actualizando tabla $1 ($2 a $3)',
       'usermerge-success' => 'Fusión desde $1 ($2) hacia $3 ($4) completada.',
       'usermerge-success-log' => 'Usuario $2 ($3) fusionado con $4 ($5)',
       'usermerge-logpage' => 'Registro de fusión de usuarios',
       'usermerge-logpagetext' => 'Este es un registro de fusiones de usuarios.',
       'usermerge-noselfdelete' => 'No se puede eliminar o fusionar consigo mismo!',
       'usermerge-unmergable' => 'No se puede fusionar usuario (ID o nombre ha sido definido "no fusionable").',
       'usermerge-protectedgroup' => 'No se puede fusionar usuario (usuario está en un grupo protegido).',
       'right-usermerge' => 'Fusionar usuarios',
);

to UserMerge.i18n.php, and

/** Spanish (Español) */
$aliases['es'] = array(
        'UserMerge' => array( 'FusionarUsuarios' ),
);

to UserMerge.alias.php.

Thanks for your attention, and best regards. Lquevedo 19:10, 15 September 2008 (UTC)Reply

Icon - alignment

edit

Hi, I'm using your icon extension. Maybe this is a dumb question, but how can I get it to place the icon on the right side of the page, with text filling the left side of the page and wrapped around the image. I know how to do this using the standard Image: function, but can't see how to do it with Icon..?

Tamil Translation

edit
/** Tamil (தமிழ்)
 * @author i am karna
 */
$messages['ta'] = array(
	'googleanalytics-desc' => `தளத்தட தகவலுக்காக கூகுள் அனலெடிக்ஸ் குறிமுறை(ga.js) மீடியாவிக்கியில் இணைக்கப்படுகிறது.',
);

MergeUser Installation Issue.

edit

I followed the installation instructions, the extension seems to install fine, however when I go to the restricted MergeUser page, using an account in the bureaucrat group, it gives me a blank page. There are no errors or anything, just blank page. I am not sure what seems to be the problem or how I can log it.

I'm using

  • MediaWiki: 1.11.0
  • PHP: 5.2.5 (apache2handler)
  • MySQL: 5.0.51a

PasswordReset Error

edit

I've recently tried to implement PasswordReset. I followed the instructions exactly and placed all the files in extensions/PasswordReset/ but once I add the LocalSettings.php entry I get the following error and am unable to use my site at all:

Warning: require_once(/var/www/mediawiki-1.14.0/extensions/PasswordReset/PasswordReset.php) [function.require-once]: failed to open stream: Permission denied in /var/www/mediawiki-1.14.0/LocalSettings.php on line 155

Fatal error: require_once() [function.require]: Failed opening required '/var/www/mediawiki-1.14.0/extensions/PasswordReset/PasswordReset.php' (include_path='/var/www/mediawiki-1.14.0:/var/www/mediawiki-1.14.0/includes:/var/www/mediawiki-1.14.0/languages:.:/usr/share/php:/usr/share/pear') in /var/www/mediawiki-1.14.0/LocalSettings.php on line 155

Permissions match all of my other .php files. I have uploaded the files twice to make sure there wasn't a file issue.

Extension:Icon Error

edit

I have this problem: Fatal error: Call to a member function exists() on a non-object in /home/fringebg/public_html/wiki/extensions/Icon/Icon.php on line 62

When i remove if (!$image->exists()) from line 62 it works but show images only in full size, how I fix that? May have to install other extansion or active some setting in LocalSettings.php?

I got this too, today. Similar problem as reported in Bug 22227 for SpecialListfiles.php, where an internal support function fails to deliver a correct return value, when an uploaded file does not exist. I expect this being repaired soon in the core code. Icon.php needs to show "Image does not exist, do want to upload one?". I will also contact the maintainer of Icon.php directly. --Wikinaut 19:44, 1 February 2010 (UTC)Reply

GoToCategory Extension

edit

Hi there - I've been using your GoToCategory extension succesfully on a Mediawiki 1.15 installation, however we have just switched to using SphinxSearch, and your extension doesn't seem to work any more - do you know how easy it would be to get the two working together?

For anyone who is interested, we managed to get it working with SphinxSearch:

<?php
/** \file
* \brief Contains code for the GoToCategory extension
*/

# Not a valid entry point, skip unless MEDIAWIKI is defined
if (!defined('MEDIAWIKI')) {
	echo "GoToCategory extension";
	exit(1);
}

$wgExtensionCredits['other'][] = array(
	'path'           => __FILE__,
	'name'           => 'GoToCategory',
	'version'        => '1.0',
	'author'         => 'Tim Laqua',
	'description'    => "Checks search terms against the Category: namespace for Go 'jump to page' functionality",
	'descriptionmsg' => 'gotocategory-desc',
	'url'            => 'http://www.mediawiki.org/wiki/Extension:GoToCategory',
);

$wgExtensionFunctions[] = 'efGoToCategory_Setup';

function efGoToCategory_Setup() {
	global $wgHooks;
	$wgHooks['SpecialSearchNogomatch'][]   = 'efGoToCategory_SpecialSearchNogomatch';
	$wgHooks['SphinxSearchGetNearMatch'][] = 'efGoToCategory_SphinxSearchGetNearMatch';
	return true;
}

function efGoToCategory_SpecialSearchNogomatch($t) {
	global $wgOut, $wgRequest;

	$term = $wgRequest->getText('search');
	if( !empty( $term ) && strpos( 'category:', strtolower( $term ) ) !== 0 ) {
		$term = "Category:{$term}";
	}

	$title = SearchEngine::getNearMatch( $term );
	if( !is_null( $title ) ) {
		$wgOut->redirect( $title->getFullURL() );
	}
	return true;
}

function efGoToCategory_SphinxSearchGetNearMatch($term, $t) {

	# test if we have no match so far
	# then we know we can continue with the no go match function
	if( is_null( $t ) ) {
		efGoToCategory_SpecialSearchNogomatch($term);
	}
	return true;
}

PHP 5.3.x support for googleAnalytics 2.0.2

edit

The following diff adds PHP 5.3.x support for googleAnalytics 2.0.2 - please apply to the next release!

  --- googleAnalytics/googleAnalytics.php        2010-06-25 17:07:44.000000000 +0200
  +++ googleAnalytics/googleAnalytics.php.etes   2010-06-25 17:13:35.000000000 +0200
  @@ -32,7 +32,7 @@
   	return true;
   }
   
  -function efGoogleAnalyticsHookText(&$skin, &$text='') {
  +function efGoogleAnalyticsHookText($skin, &$text='') {
   	$text .= efAddGoogleAnalytics();
   	return true;
   }

Password Reset

edit

Hello. I'm trying to use Extension:Password Reset for my wiki. The page Special:PasswordReset works well, but I can't access the page Special:SpecialPages]]. It's said to me :

Fatal error: Can not call constructor in /home/a4337455/public_html/w/extensions/PasswordReset/PasswordReset_Disabledusers.php on line 16

And I don't know what's the matter. Thanks for helping me (and I'm sorry for my english, I'm french). Pkthib 16:50, 21 February 2011 (UTC)Reply

You have to download the right Version for your Mediawiki Version
You need to use the version of the extension that corresponds to your version of MediaWiki. —Emufarmers(T|C) 17:12, 23 January 2011 (UTC - Found on Extension talk:Password Reset/Archive 01

How to keep CategoryTree stayed opened after going back?

edit

When I am going down in one category and subcategories (depth 5-6), after loading the specified category and then hitting the "back" button on the browser , the category tree is folded again. Is there any chance the tree stays opened? Please reply ASAP... How to keep nodes expaneded even after clicking back button in browser.Any code changes to be done in Categorytree extension? It would be great to have the tree expanded to the current page after clicking any article , so that the users can get a quick impression about the location of the current article in the overall context.--Satyamcompany (talk) 19:31, 28 April 2013 (UTC)Reply

Google Analytics extension

edit

Hi Tim, I've proposed a patch to your Google Analytics extension at gerrit:73140 and would love if you could review it. Thanks! Legoktm (talk) 04:08, 11 July 2013 (UTC)Reply

Tracking subdomains for Google Analytics

edit

Tim,

My wiki is hosted on a subdomain and I'd like to use the same Analytics account as my primary domain for simple reporting. To do this, I need to specify a domain name as outlined in https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite#domainSubDomains. Would you be able to add this small feature for me?

UserMerge: error: ....Fatal exception of type MWException

edit

Hello.

I 'installed' and configured LocalSettings, trying to use your UserMerge and Delete Extention, but when i went to Special:UserMerge I got the error:
" [4d78a706] 2014-01-30 10:25:16: Fatal exception of type MWException "

Steps I followed:

  • 'installed' UserMerge and Delete Extension using git from my server.
    • installation ~/wiki/extensions/UserMerge/UserMerge.php
  • Logged into my wiki (http://linux.landisreed.com/) as 'Admin' (the account created at wiki install
  • Navigated to ~/wiki/Special:UserMerge
  • I Got the following :

Internal Error

[4d78a706] 2014-01-30 10:25:16: Fatal exception of type MWException  

Code added to LocalSettings:

# UserMerge added from mediawiki - https://www.mediawiki.org/wiki/Extension:User_Merge_and_Delete - 30.01.14 - Landis.
#
require_once __DIR__ . "/extensions/UserMerge/UserMerge.php";
// By default nobody can use this function, enable for bureaucrat?
$wgGroupPermissions['bureaucrat']['usermerge'] = true;
#
// optional: default is array( 'sysop' )
#$wgUserMergeProtectedGroups = array( 'groupname' );
#
# Allow all users to be merged (by default, the 'sysop' group is unmergeable)
#$wgUserMergeProtectedGroups = array();
#
# Disallow merging of the users in the 'sysop' or 'awesomeusers' groups
# N.B. check the distributed "install.settings" for the correct array name
$wgUserMergeUnmergeable = array( 'sysop', 'awesomeusers' );
#

I rem'd (commented out) the following, because it is implied that the default is already set to include / exclude SysOp's...

$wgUserMergeProtectedGroups = array( 'groupname' );
$wgUserMergeProtectedGroups = array();

What went wrong?

Landis.

Google Analytics extension, ignore sysops

edit

Hello, I'm using your google analytics extension, but I'm not sure about the following parameters:

$wgGoogleAnalyticsIgnoreSysops = false;
$wgGoogleAnalyticsIgnoreBots = false;

Setted to false, they DO NOT ignore sysops? Thks. --Pablo.

No such extension "GroupPortal"

edit

Hi Tim, When I click "Download the latest snapshot" on your Extension:GroupPortal page, I get the message: No such extension "GroupPortal." Please advise. Thx. --Erinbarrett (talk) 15:49, 24 April 2014 (UTC)--Erinbarrett (talk) 15:49, 24 April 2014 (UTC)Reply

review score

edit

In 'Contribution Scores', is it possible to poll the numbers of tranlation reviews? I would like to add it to my userpage in Tranlatewiki.net.

Regards Macofe (talk) 22:47, 29 July 2014 (UTC)Reply

Contribution Score

edit

Hi Tim,

I am using your contribution score extension, how do you customise the output? I am trying to get rid of: 1. 10 top contributors since the beginning of wiki

which appears before the table when used inline in a page.

Thanks, Amir