User talk:Tim Laqua
[edit] using PasswordReset
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)
[edit] Extension:Icon & Paragraph tags
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)
- 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).
- That worked most excellently. Thank you very much!!! --ShakataGaNai 19:03, 8 January 2008 (UTC)
[edit] Extension:Icon & External links
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)
[edit] Quick Question
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)
[edit] Doesnt show on Google Analytics
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)
-
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 ?
[edit] How to configure Extension:GroupPortal?
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
- Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;
- But allow them to read e.g., these pages:
$wgWhitelistRead = array("Main Page", "Special:Userlogin", "Special:Userlogout");
- 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)
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)
[edit] Password Reset Not Working with 1.13
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)
[edit] Spanish Localization for UserMerge
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)
- 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)
- 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)
[edit] Icon - alignment
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..?
[edit] Tamil Translation
/** Tamil (தமிழ்)
* @author i am karna
*/
$messages['ta'] = array(
'googleanalytics-desc' => `தளத்தட தகவலுக்காக கூகுள் அனலெடிக்ஸ் குறிமுறை(ga.js) மீடியாவிக்கியில் இணைக்கப்படுகிறது.',
);
[edit] MergeUser Installation Issue.
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
[edit] PasswordReset Error
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.
[edit] Extension:Icon Error
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?
[edit] GoToCategory Extension
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; }
[edit] PHP 5.3.x support for googleAnalytics 2.0.2
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;
}
[edit] Password Reset
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)
- 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