User talk:Caspar

From ThinkLemon

Jump to: navigation, search

Hi,

Im the owner of the updates to your Google sitemaps script, could you please give me some credit on the main/article page, Thankyou.

P.S. I set it to $wgArticlePath instead of $wgScriptPath. For instance this is due to the fact that people who have followed this WikiMedia article http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url do not want the sitemap to show the sitename.com/w/index.php url but instead want sitename.com/wiki/mypage showing.

Perhaps eregi_replace('\$1',$sPageName,$wgArticlePath) would be better than eregi_replace('\$1',"",$wgArticlePath).$sPageName though, the latter being the revision I posted.

Kind Regards
Mark Rawson

Hi Mark, I will test your suggestions. And adjust the script accordingly. :-) As for eliminating the index.php from the URL. I have some rewrite rules in place here. Take a look at: MediaWiki:Rewrite Rules --Caspar 01:19, 5 December 2005 (CET)
Yes, I did notice your rewrite rules, however using $wgArticlePath would be the 'correct' variable to use, as most people will/have (me included) have used WikiMedia's suggested URL rewriting rules, and perhaps used WikiMedia's suggested robots.txt file that blocks engines from crawling unwanted pages such as edit pages, therefore if this script is used the people who have used the WikiMedia configuration suggestions will not submit anything crawlable in thier sitemaps file.
Hope I managed to explain myself alright but please ask for any clarification. -- Duckcomputing 15:19, 5 December 2005 (CET)
Hi Mark, Forgot to mention: I think it's solved in the 0.3 version. --Caspar 01:21, 2 June 2006 (CEST)

With the google sitempas there are capitalised t's in Category_Talk: etc (should be Category_talk:) This is in the big switch-case statement. I don't know if this will make a difference.

Well it seems it doesn't matter. User_Talk:Caspar is correctly interpreted as User_talk:Caspar. The capital T's are hardcoded in the script. I'll adjust. Thanks for pointing it out. --Caspar 13:17, 7 May 2006 (CEST)
Forgot to mention: It's corrected. --Caspar 01:21, 2 June 2006 (CEST)

Also with the navigation to your left, you can edit this Mediawiki:Sidebar to get rid of donations, current events etc :) --86.139.131.89 23:17, 6 May 2006 (CEST)

As for the navigation. It's one of those things still left over from the update. I still need to alter the skin to match the main domain. But thanks for the tip. --Caspar 13:17, 7 May 2006 (CEST)
And it's done. :-) --Caspar 01:21, 2 June 2006 (CEST)

I have made some changes to your Google Sitemap Generator (which rocks btw), so it will output each url on a new line so you can sumbit it to Yahoo as a urllist.txt. My blog entry about it is here. Do you want me to write a guide up on your wiki? --Elliot 18:00, 31 May 2006 (CEST)

Hi Elliot, I saw your post on www.mwusers.com. Thanks! Please feel free to write down what you did to get the sitemap working for Yahoo!. After all, it's a wiki. --Caspar 01:21, 2 June 2006 (CEST)
Thanks, not all wiki owners are nice, I didn't know if you had the code copyrighted or anything lol. Well I have done it now Yahoo_Sitemaps, hopefully it will help your wiki get indexed more often, and your users like it --Elliot 01:56, 2 June 2006 (CEST)
Damn that's fast! Thank you for your contribution. I'll have a look into it myself. As far as copyrights concerned, everything on this site is going to be copied/re-hashed somehow anyway, so I don't bother (although I really need to delve into Creative Commons :-|). --Caspar 02:18, 2 June 2006 (CEST)
BTW: fixed the site as the stats had their monthly bog-down. :-(
Well I like to think of someone with not much of a life rofl. Well I think most things should be free to use and edit, and giving the original authors is always a must. Thanks a lot btw for the google sitemap generator, it was really useful (btw just linked to you http://www.psconclave.com/wiki/PSConclave:Links) Elliot 02:24, 2 June 2006 (CEST)

Special:Export

Hi, can you modify your PHP script so that we can easily export our mediawiki site. The only thing that we want is complete article list of all namespaces. Special:Allpages function does not give us what we want. It gives 3 column list and only for 1 namespace :(

Can you write a php script for easy export? Thanks... meta:User_talk:Timurberk

To get the complete list of pages is easy. Just change the line "WHERE (page_is_redirect = 0 AND page_namespace NOT IN (8, 9)) ". into "WHERE (page_is_redirect = 0) ".. That should give you all pages (which aren't redirects). But you may want to change the output into something more easily readable? And you may want to get the redirects too, so you need to get rid of 'page_is_redirect' as well. And/or want to sort the results in a different manner? Please also take a look at the Yahoo! Sitemaps, which is a variant on the Google Sitemaps script but outputs alle URL's in a textfile (skip the .htaccess rewrite part). --Caspar 11:55, 22 August 2006 (CEST)
Thank you. I did it! But now I have a problem with MediaWiki export. I couldn't export more than 125 pages. I have to seperate my list. After exporting all parts seperately I have to merge them... --88.233.50.234 22:31, 22 August 2006 (CEST) meta:User_talk:Timurberk
Ah I see! You're using the XML export function of MediaWiki itself. The max of 125 pages probably has something to do with the maximum allowable length of the input. But here's another thought. If you're exporting a somewhat managable amount of pages you could import your text-file (the source) in Excel and do your copy-pasting from there. That way you can easily manage/track what you've exported allready.
But if you just want to copy or duplicate an installation to another server you may be better off with something like phpMyAdmin. With phpMyAdmin you can do a complete dump of your database (not just the pages) and import it into a new server. It may take some fiddling, but it should be straight forward. Once imported into the new server you just copy the settings (LocalSettings.php?) from the 'old' wiki to the new server and everything should be running as if it were the 'old' server. --Caspar 00:29, 23 August 2006 (CEST)
Personal tools
related