Jump to content

User talk:Qsheets

Add topic
From mediawiki.org
Latest comment: 15 years ago by Alterego in topic MediaWiki 1.15alpha (r48811)

Issue with installing the IRC Chat extension (Solved)

[edit]

This isn't really a bug, but just something that I (and many others) are incapable of doing. Currently, my wiki is hosted on a free webhosting site, and I therefore do not have access to the command line to install the patch file. Therefore, is it possible to modify the extension so that the patch is not needed, and if so, how? I realize that you don't have to do this, but I'll give you a cookie if you do :) --69.210.43.205 01:01, 6 November 2007 (UTC)Reply

If you were to give me the versions that you are currently using, I could start making the pre-patched files for you just to replace the originals with instead of trying to patch without a command line... Though it is how I had to learn (reading patch files). <(^^,)> --Qsheets 04:28, 8 November 2007 (UTC)Reply
Well, I'm using MediaWiki 1.11, but I'm unsure of what you meant by the versions I'm currently using. If you're referring to the extension php files, I haven't downloaded them yet, but if it's something that shipped with the mediawiki software, whatever came default with 1.11. Does that answer your question? (sorry if it doesn't) --69.210.35.173 01:22, 12 November 2007 (UTC)Reply
Done deal... Sorry for the tardiness of my response, but school and prior-engagements always take predominance over my creations. <(^.^)> --Qsheets 04:50, 8 December 2007 (UTC)Reply

MediaWiki 1.12

[edit]

Hello, i have got MediaWiki 1.12, i dont see that in the list

--Cobra 21:08, 12 June 2008 (UTC)Reply

I took the liberty to add an unofficial version, i might have missed something so i wont garentee anything. Sorry Qsheets --Dotted 11:04, 15 June 2008 (UTC)Reply

MediaWiki 1.15alpha (r48811)

[edit]

This is the version being used on Wikipedia, and the version I use. What follows is the patch issues I went through to get it working. You can see the live copy here: http://grey.colorado.edu/emergent/index.php/Special:IRC . Nice work on the integration, please update the patches and try to do a proper extension that doesn't require patches! --Alterego 17:29, 5 May 2009 (UTC)Reply

Patch log

[edit]
alterego@grey:/var/www/mediawiki/code$ sudo patch -p0 < irc.patch
patching file includes/specials/SpecialPreferences.php
Hunk #1 FAILED at 22.
Hunk #2 succeeded at 45 (offset -3 lines).
Hunk #3 succeeded at 229 with fuzz 1 (offset -11 lines).
Hunk #4 succeeded at 369 (offset -9 lines).
Hunk #5 succeeded at 717 (offset 49 lines).
1 out of 5 hunks FAILED -- saving rejects to file includes/specials/SpecialPreferences.php.rej
patching file includes/User.php
Hunk #1 succeeded at 105 (offset 16 lines).
Hunk #2 FAILED at 172.
Hunk #3 succeeded at 768 (offset 63 lines).
Hunk #4 succeeded at 925 (offset 73 lines).
Hunk #5 succeeded at 1859 with fuzz 1 (offset 229 lines).
Hunk #6 succeeded at 2434 (offset 256 lines).
Hunk #7 FAILED at 2470.
Hunk #8 succeeded at 2501 (offset 257 lines).
Hunk #9 succeeded at 2536 (offset 257 lines).
2 out of 9 hunks FAILED -- saving rejects to file includes/User.php.rej

includes/User.php.rej

[edit]
***************
*** 171,177 ****
        /**
         * The cache variable declarations
         */
-       var $mId, $mName, $mRealName, $mPassword, $mNewpassword, $mNewpassTime,
                $mEmail, $mOptions, $mTouched, $mToken, $mEmailAuthenticated,
                $mEmailToken, $mEmailTokenExpires, $mRegistration, $mGroups;

--- 172,178 ----
        /**
         * The cache variable declarations
         */
+       var $mId, $mName, $mRealName, $mIrcNick, $mPassword, $mNewpassword, $mNewpassTime,
                $mEmail, $mOptions, $mTouched, $mToken, $mEmailAuthenticated,
                $mEmailToken, $mEmailTokenExpires, $mRegistration, $mGroups;

***************
*** 2456,2470 ****
         *
         * @param $name String: the user's name
         * @param $params Associative array of non-default parameters to save to the database:
         *     password             The user's password. Password logins will be disabled if this is omitted.
         *     newpassword          A temporary password mailed to the user
         *     email                The user's email address
         *     email_authenticated  The email authentication timestamp
         *     real_name            The user's real name
-        *     options              An associative array of non-default options
         *     token                Random authentication token. Do not set.
         *     registration         Registration timestamp. Do not set.
         *
         * @return User object, or null if the username already exists
         */
        static function createNew( $name, $params = array() ) {
--- 2470,2485 ----
         *
         * @param $name String: the user's name
         * @param $params Associative array of non-default parameters to save to the database:
         *     password             The user's password. Password logins will be disabled if this is omitted.
         *     newpassword          A temporary password mailed to the user
         *     email                The user's email address
         *     email_authenticated  The email authentication timestamp
         *     real_name            The user's real name
+        *     irc_nick             The user's nick to be used on IRC
+        *     options              An associative array of non-default options
         *     token                Random authentication token. Do not set.
         *     registration         Registration timestamp. Do not set.
         *
         * @return User object, or null if the username already exists
         */
        static function createNew( $name, $params = array() ) {

includes/specials/SpecialPreferences.php.rej

[edit]
***************
*** 22,28 ****
   */
  class PreferencesForm {
        var $mQuickbar, $mOldpass, $mNewpass, $mRetypePass, $mStubs;
-       var $mRows, $mCols, $mSkin, $mMath, $mDate, $mUserEmail, $mEmailFlag, $mNick;
        var $mUserLanguage, $mUserVariant;
        var $mSearch, $mRecent, $mRecentDays, $mHourDiff, $mSearchLines, $mSearchChars, $mAction;
        var $mReset, $mPosted, $mToggles, $mSearchNs, $mRealName, $mImageSize;
--- 22,28 ----
   */
  class PreferencesForm {
        var $mQuickbar, $mOldpass, $mNewpass, $mRetypePass, $mStubs;
+       var $mRows, $mCols, $mSkin, $mMath, $mDate, $mUserEmail, $mEmailFlag, $mNick, $mIrcNick;
        var $mUserLanguage, $mUserVariant;
        var $mSearch, $mRecent, $mRecentDays, $mHourDiff, $mSearchLines, $mSearchChars, $mAction;
        var $mReset, $mPosted, $mToggles, $mSearchNs, $mRealName, $mImageSize;

MonoBook.deps.php

[edit]

This file no longer contains much useful content, instead it includes includes/SkinTemplate.php. The correct file to patch is skins/MonoBook.php

Issues

[edit]

Special:Preferences

[edit]

After applying the fixes manually the irc nick preference renders as:

& l t ; yourircnick & g t ;

After everything was in place this renders correctly as IRC nick:

Saving Special:Preferences

[edit]
Database error
From Emergent
Jump to: navigation, search
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

    (SQL query hidden)

from within function "User::saveSettings". MySQL returned error "1054: Unknown column 'user_irc_nick' in 'field list' (localhost)".

On this last issue I had forgotten to apply the SQL query to this wiki.

Media wiki-Version 1.20

[edit]

Hi is it possible to have a patched file for 1.20.

the other i cant download because the google groups are no longer online.

Its running on IIS 7 with MySQL

Best regards