User talk:Sanjualone

Your Comments
Hi,

I tried adding some blocks to the ignoreBlocks array but it doesn't seem to work $ignoreBlocks = array I still get the word as it shows below the XML block below is in between syntaxhighlight  JBOSS.messaging:service=ServerPeer JBOSS.messaging:service=PostOffice

so is there anything else other than adding the tags to the ignoreBlock array?

Thanks for the handy extension,

Hi Sanjeev Great program and thank you very much! But how can it work in Languages other than English? I hace a site which is in Chinese. Although I install AutoLink and it works with English titles, I can't get it work with Chinese titles. Could you help me solving this problem? Thank you very much! My Email is kintomiko at gmail dot com

by kindai

Hi Sanjeev - Do you know of any way to get this awesome script to create links to categories instead of page titles? I don't know PHP, but I believe that all it would need to do is instead of transforming the text "cheese" into "cheese" it would only need to transform it into " cheese" though I have no idea how to do this. Thanks! dwh2103@columbia.edu / David

Hi Sanjeev

Great program thanks!! Is there anyway of making it work with pages over 32K? We're using it in anger on our website www.kidneycancerresource.com/wiki and quite a few of our pages go well over the 32K mark and waht we've found is that it tries to save and then just comes up with a blank page. When you refresh the saved page it goe back to the original

Thanks

Andy

Hey Sanjeev

Is there anyway to stop it from replacing words that are in external links. The extension works great, but it ruins any external links that you put on your page if the link has a page title in it --66.46.120.133 22:25, 5 December 2007 (UTC)

Thanks!

Chris Sanjeev - Please keep going with this one. I have not installed it yet, but it is something I have wanted for a long time and I think it will make sense to a lot of people. Keep up the good work!
 * Thanks a lot.--Sanjeev 06:21, 9 July 2007 (UTC)

There is a Big Bug in your extension AutoLink. I have written some lines into the diskussion of Extension:LinkSearch.
 * -- Re-Work on AutoLink is going on,Very soon it will be updated. --Sanjeev 09:06, 3 July 2007 (UTC)
 * -- I have added some ideas into your code, see here ... hope it's helpfull. 89.52.189.233 10:31, 6 July 2007 (UTC)
 * Thanks for your ideas regarding AutoLink extension.The idea you've put in there is very much possible and can be done.I appreciate your ideas and will definitely work on that,but a request to you is that please put you ideas and comments in the talk page.Please do not modify the code as,it may be used by someone.Second thing is that the current code at here is taking care of animal and animal .png problem.So no need to worry as this bug is resolved.Next version of it will be having Automatic entries of all articles in page AutoLinkPage.Thanks --Sanjeev 06:30, 9 July 2007 (UTC)


 * How long will it take to improve AutoLink? For now I have stopped using this extension. 89.52.144.68 22:04, 13 July 2007 (UTC)
 * Sorry!! i was busy in some other work.In Next two dayz i'll update the extension.--Sanjeev 08:26, 16 July 2007 (UTC)

This is just a thought and as I know almost nothing about coding, it may not be very helpful. I wonder whether the AutoLinkPages created to hold the links may not grow into something too big to manage easily. Would it be possible to hold the links in a directory outside the wiki and perhaps call them recursively from it? Or from several pages which could be structured to group links of a type together, if it has to be contained within the wiki itself? I hope this makes sense and is not too stupid a thought. Again, many thanks for your efforts on this one and best wishes. John

Such a good idea, and very useful. However, can anybody provide some clarification as to the syntax used for the 'AutoLinkPages' page, thanks in advance. (SOLVED) v85rawdeal 5/12/07

Mods to AutoLink
I just posted a modified version of AutoLink. I then realized I may have broken some etiquette rule for mediawiki extension authorship by doing so without contacting the author first. My apologies if I've done so. Feel free to pull down my code if appropriate. --Vjg 17:13, 24 August 2007 (UTC)

Hi, I'm sending you a message here since your email pref is turned off (and there is nothing in the Mediawiki bugzilla on this extension). There is a problem if you have all caps names for an article (for instance "SVN"). The problem that I received was that something like:

svn co foo actually wrote out  [SVN|svn] co foo 

I took out the "i" in:

$pattern = '/\b((?<!\[)(?<!\/\/)' . $pattern . '(?!\]))\b/i';

is this the best way to fix that? (well it works for me) -- but maybe you have another idea. Either way - I'd like to see it fixed upstream. :-)

Micklweiss

A minor issue
Hi Sanjeev,

AutoLink is really a very useful extension and I love it! I have a minor issue with it and I was wandering if it could be fixed.

We use Mediawiki for software project documentation purposes. We often need to create pages dedicated to object methods and we use methods' names as page names, including brackets at the end, e.g methodName. Unfortunately, it turns out that the brackets are either not parsed at all or trimmed. As a result the extension can't auto link to pages with names containing brackets.

Can you please advise if this can be worked around or if it can be easily fixed? My email address is atanas at alcoronline dot com.

Your input would be much appreciated!

Cheers,

Atanas.

LastLoginTime.php errors when used with MediaWiki v1.11
With v1.11 of MW, the 'user_touched' field in the USER table is formatted as YYYYMMDDHHMMSS.

Comments for changes below...
 * 1) I use MySQL for my DB, so I changed the table name to 'user' -- 'mwuser' is for Postgres.
 * 2) the 'METHOD' has 2 underlines on both sides of it -- '__METHOD__'  vs '_METHOD_'.
 * 3) changes around 'if(isset($lastLogin))' reflect new format of 'user_touched'.
 * 4) change of "'user_touched'  => 'now'"  to  "'user_touched'  => gmdate ( "YmdHis" )", also for new format of 'user_touched'.

Compare: (<).\LastLoginTime.php (2565 bytes) with: (>).\LastLoginTime.php_orig (2534 bytes)

38,46c37,45 <                $lastLogin = $dbr->selectField('user','user_touched', <                         array('user_name' => $_SESSION['wsUserName']), <                                 __METHOD__); <                if(isset($lastLogin)) <                { <                         $day = substr($lastLogin,6,2); <                        $month = substr($lastLogin,4,2); <                        $month = getMonth($month); <                        $time = substr($lastLogin,8,2).":".substr($lastLogin,10,2); --- >                $lastLogin = $dbr->selectField('mwuser','user_touched', >                         array('user_name' => $_SESSION['wsUserName']), >                                 _METHOD_); >                if(isset($lastLogin)) >                { >                         $day = substr($lastLogin,8,2); >                        $month = substr($lastLogin,5,2); >                        $month = getMonth($month); >                        $time = substr($lastLogin,11,5); 54,56c53,55 <                $dbw->update( 'user', <                         /* SET */ array( <                        'user_touched'  => gmdate ( "YmdHis" ) --- >                $dbw->update( 'mwuser', >                         /* SET */ array( >                        'user_touched'  => 'now'

using special::allpages
would it be possible to modify the script so that it uses special::allpages instead of the autolinkpage page? This would esentially create an autolink functionality for everything on teh wiki..

Thanks

Krishna

Got the error
Hi,

My name is suyash and i tried to use your AutoLink extention, i copied the latest one and follow the steps but i am getting the following error

Warning: Cannot modify header information - headers already sent by (output started at ../extensions/AutoLink.php:275) in ../includes/WebResponse.php on line 10