Manual talk:FAQ/2007

open my_wiki from my_root directory (my_domain).
I had hard time figuring it out as I couldn't find any reference to this. MediaWiki help and manuals assume that you upload file to /wiki/ directory. But, then the index.php resides within /wiki/ directory and users have to type http://my_domain/wiki/ to get to my_wiki main page. I had to spend hours to find out what I had to do to allow users to just type my_domain name and get to my_wiki main page. Here is what you can do:
 * create an index.php, and type this:


 * upload it to the root directory of my_domain (e.g., if you own a domain name such as www.my_domain.com, that is the name of your root directory)

That's it!

My Wiki page is at http://taichiwiki.org You can contact me with further questions - I am a non-techy who has a patience to make research and read mannuals. I have been spending unacountable amount of hours to find right tips and codes for this wonderful program and some others. I personally feel that MediaWiki should have a special page called MediaWiki help for non-techies. There are so many great functions and extensions for MediaWiki, but the average installation instructions seem to be written by and for the techies. I guess techies don't understand the problems of non-techies... Don't get me wrong techies, I really appreciate what you are doing, and doing it for free. You guys are awesome! --Kohyin 07:00, 27 January 2007 (UTC)
 * Um, that's what we are working on here... any further help would be much appreciated.  By the way, you could have done that just by messing around with the Apache rewrite rules, but that isn't linked from anywhere here. Hmm. Tito xd (?!?) 19:12, 28 January 2007 (UTC)
 * Yes, I realized it later as my learning progressed. This one is a round-about not-so fluent solution, but it gets a message passed to the machine :) I have struggled and still am struggling, I don't want all the time and energy go wasted just for my personal goal. I will keep posting what I find difficult and confusing as well as beginner's solutions that I come up with...I love learning languages and it's like learning new languages. Need to read lots of grammer books and go through dictionaries, but solution will be there as it isn't an appreciation of a literature (literature is another fascinating subject, though)Kohyin 08:57, 17 February 2007 (UTC)

Typo
theres a typo in this section causing the information box to be displayed wrong. === How can I create Interwiki Links in my Wiki? ===

DB Expert Answer
Bouncingmolar 15:53, 9 April 2007 (UTC)

Update Why section for new version
In the "Why..." section the part about "...can't I download MediaWiki 1.10?" should be updated or removed, now that MediaWiki 1.10 is avaliable from the Download page. --24.20.69.240 01:43, 22 May 2007 (UTC)
 * Anyone home? It's still there.  It should just be removed entirely rather than having to update it. 67.98.226.13 17:30, 1 June 2007 (UTC)

Requested title change
This heading is not grammatically correct. Can somebody please change it to "How can I suppress MediaWiki from formatting urls, tags, etc." Thanks, 203.217.47.76, aka Jeremy 22:41, 24 May 2007 (UTC)

spam blocking HOWTO
It'd be great if this could be added to the Anti-Spam section: http://wiki.evernex.com/index.php?title=Blocking_Spam_in_Mediawiki --Neurophyre 16:12, 11 June 2007 (UTC)

Suggested change to "How can I prevent editing by anonymous users?"
EdK added a comment in the section titled "How can I prevent editing by anonymous users?" suggesting an alternate way of writing the PHP example listed: use if (condition) continue; and the user doesn't have to remember the closing brace? I can't say I can see how this would solve the same problem, but probably I'm just misunderstanding the pseudo-code. EdK (or anyone else who groks this), please clarify. --Jarsyl 09:49, 3 October 2007 (UTC)


 * I think I know what this person is suggesting. They are saying that instead of telling people to do this:

if ( $this->data['loggedin'] == 1 ) { foreach($this->data['content_actions'] as $key => $tab) { ... } }
 * we could tell them to do this:

foreach($this->data['content_actions'] as $key => $tab) { if ( $this->data['loggedin'] == 1 ) continue; ... }
 * Here  causes each iteration of the   loop to be aborted.
 * The advantage is that it does not require users to look for the closing brace of the  block, which is always tedious. The disadvantage is that it's not very elegant code, but it's a nice hack if the goal is improving the success rate of this customization.
 * Disclaimer: I do not know PHP, I'm only using cognate constructs from other language that have a  keyword. I'm further speculating that PHP has a   keyword that would abort the entire   loop. If that's the case (someone please confirm) then we could suggest this:

foreach($this->data['content_actions'] as $key => $tab) { if ( $this->data['loggedin'] == 1 ) break; ... }
 * Thibgc 23:27, 11 October 2007 (UTC)