Project:Support desk/old

Trackback spam
I got hit by trackback spam of a huge proportion. I turned off trackbacks but they won't go away. How do I get them off my site? Can I clear the table to make all the spam like trackbacks go away? The trackbacks table is empty. They seem to autoregenerate when I delete them. --PurplePopple 12:36, 30 August 2007 (UTC)


 * MediaWiki doesn't have tracebacks. Disable whichever extension you have that adds them. Emufarmers 03:18, 2 September 2007 (UTC)


 * Um, yes it does: $wgUseTrackbacks. PurplePeople, most like it is just stuck in your cache, that is why it wasn't going away. Try clearing your objectcache table and clearing your browser cache. --12.219.103.195 22:21, 3 September 2007 (UTC)

editing Pages
how can i add new articles using just MySQL... i mean without using my web site.. please answer me at : makievski@gmail.com

Makievskij Anton

—77.122.191.47 10:06, 28 August 2007 (UTC)


 * See the information about Exporting and Importing articles. --Dr DBW 23:03, 29 August 2007 (UTC)


 * I would very strongly advise attempting manual database manipulation, due to the plethora of changes actually involved in creating a new page or updating an existing one, including altering the page record, creating a new revision, creating an appropriate text record and setting text flags, updating the link tables, recent changes table, etc. - and that's before you run into any of the classic gotchas such as character sets.


 * Your best bet might be to adapt a maintenance script such as maintenance/importTextFile.php, using MediaWiki as a library to a PHP script which does the job. robchurch | talk 01:37, 30 August 2007 (UTC)

PCRE missing UTF-8 Support?
I am trying to install MediaWiki 1.10.1 on a Debian Etch box, with PHP 5.2.0. I'm using the standard Debian Etch package for PHP and for PCRE (libpcre3).

I got the wiki installed, and it comes up, but on every page, toward the top and overwriting the header, are PHP errors:

Warning: preg_replace_callback [function.preg-replace-callback]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /home/ss1/www/multi/dev/includes/MagicWord.php on line 284

Warning: preg_replace_callback [function.preg-replace-callback]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /home/ss1/www/multi/dev/includes/MagicWord.php on line 284

Warning: preg_match [function.preg-match]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /home/ss1/www/multi/dev/includes/MagicWord.php on line 236

Warning: preg_replace_callback [function.preg-replace-callback]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /home/ss1/www/multi/dev/includes/MagicWord.php on line 284

...etc. Some pages have more than others. I tried fixing this by compiling my own version of libpcre configured with the --enable-utf8 flag, but I couldn't seem to get PHP to actually *use* it. (I don't know if that was because pcre was linked into PHP statically, or if it was because the Debian package pcre was libpcre.so.3, and my compiled version was libpcre.so.0.) Anybody know how I can fix these errors?

Part of the headache is that a TON of Debian packages depend upon libpcre3, so I'd feel really nervous about replacing it with a different version.

—198.51.119.157 15:14, 28 August 2007 (UTC)


 * http://uk2.php.net/manual/en/ref.pcre.php suggests using --with-pcre-regex=  to direct the PHP configuration script towards the right libraries. You might also be able to convince it to use a shared module. robchurch | talk 01:35, 30 August 2007 (UTC)

Admin's confirmation for new accounts
How should I set up MediaWiki, if I want every new user account to be not activated before administrator's confirmation's? —83.237.226.11 21:01, 28 August 2007 (UTC)
 * Explain activated. If you mean that you want to make it so that only "activated" users can edit or read pages, see extension:Require Editor Privilege.  If you just mean just "edit", that may require a bit more instruction, post here if that's what you mean. :-)  Cbrown1023  talk  01:43, 29 August 2007 (UTC)

MediaWiki does not have a concept of account "in limbo". Thre are basically two solutions: HTH -- Duesentrieb ⇌ 22:14, 29 August 2007 (UTC)
 * 1) prohibit account creation by anons and users. So people have to ask you to create an account for them
 * 2) allow account creation to all (default), but take away the right to edit from normale users (and the "autoconfirmed" and "emailconfirmed" groups). Users would only be able to edit if they are assigend to a group which has the edit privilege.


 * You might also take a look at the ConfirmAccount extension, which is under development. It's marked as stable, although it is quite new, so take that with a pinch of salt... robchurch | talk 01:33, 30 August 2007 (UTC)

Using MediaWiki for online encyclopedias with NON-user-created content?
If one wanted to create a for-profit online encyclopedia (in no way related to Wikipedia) where content was NOT user-created but rather supplied to the user, would MediaWiki still be the choice software? —75.51.70.95 23:01, 28 August 2007 (UTC)
 * If it is a large site yes. But be sure to restrict account creation properly. Aaron 00:57, 29 August 2007 (UTC)
 * Wait... you're asking for a non-wiki? or are you asking about something like Citizendium (which uses MediaWiki)?  Cbrown1023  talk  20:37, 29 August 2007 (UTC)

It depends on what exactly you want. But http://lexikon.meyers.de/ (online version of one of the best known german encyclopedias) is based on MediaWiki. -- Duesentrieb ⇌ 22:11, 29 August 2007 (UTC)


 * MediaWiki is a wiki engine. Everybody's got a slightly different idea of what a wiki is, but the basic definition that's agreed upon is a web site which is open for contribution by a wide number of users, and usually, public contribution. If your needs are radically different, then MediaWiki may not be the ideal solution for you.


 * It's worth noting that many companies, including Novell, and several high-profile organisations, such as the Mozilla Foundation, make regular use of MediaWiki for slightly different purposes, and many other organisations, educational institutions, etc. often deploy it as a convenient base for a collaborative knowledge base. robchurch | talk 01:32, 30 August 2007 (UTC)

Using MSSQL instead of MySQL
Hi there,

Can anyone tell me if it is possible to use mediawiki using MSSQL instead of MySQL? —81.175.86.30 07:31, 29 August 2007 (UTC)


 * No, it's not possible. Implementing support for MSSQL would be doable, but quite some work. Postgres is supported though, and I think partial/experimental support for Oracle also exists. -- Duesentrieb ⇌ 22:08, 29 August 2007 (UTC)


 * Note that there was some recent work in this area (see http://bugzilla.wikimedia.org/show_bug.cgi?id=9767), but I'm not quite sure what the status of that is at the moment. There's no official roadmap for inclusion of support for other DBMS; support for, e.g. PostgreSQL has become available thanks to a dedicated maintainer with a strong interest in making this happen. From our point of view, there's no benefit in supporting DBMS which we don't use in production.


 * The Oracle support was, at one point, removed from the software, and was re-added, but has once again slipped into an unmaintained state. robchurch | talk 01:30, 30 August 2007 (UTC)

Help! Need to secure the MediaWiki.
Hello, I need some help in securing a MediaWiki. I want to make it impossible to view anything until a user logs in, and the creation of new user accounts to be allowed only from a couple of IP addresses. Can this be done? How? Any useful links? Thank you very much

—85.186.56.13 07:55, 29 August 2007 (UTC)
 * Please read Rob's disclaimer first. Then, you could do Manual:Preventing access (there should be everything you need in there about only allowing read/edit for people with accounts and for disabling account creation unless you are a user).  Not sure how to allow it only from a few IP addresses.  Cbrown1023  talk  14:35, 29 August 2007 (UTC)

Edit links for sections sometimes disappear
Edit section link are invisible for the same authorized accounts at different PC. Is this a bug or a known issue? —Salmira 12:45, 29 August 2007 (UTC)
 * MediaWiki 1.10.1 with security settings in LocalSettings.php
 * $wgDefaultUserOptions ['editsection'] = false;
 * $wgGroupPermissions['*']['read'] = false;
 * $wgGroupPermissions['*']['edit'] = false;
 * $wgGroupPermissions['*']['createaccount'] = false;
 * Browsers: IE6 sp2, Maxthon 1.5.9.(b80)
 * OS
 * Works correct at MS Windows 2003 Server
 * Sometimes disappears at MS Windows XP Pro SP2

Upload File from URL
I'm been searching all over for an extension that will allow you to upload a file from a URL instead of from a resource on your local machine. Does anyone know if something like this exists? Thanks much.

—Blckdmnd99 17:13, 29 August 2007 (UTC)
 * I know of one that has to do with uploading from Flickr that is used widely on Wikia, but there may be some others listed in Category:Media handling extensions.  Cbrown1023  talk  20:32, 29 August 2007 (UTC)

It's built in. From DefaultSettings.php: /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */ $wgAllowCopyUploads = false; -- Duesentrieb ⇌ 22:05, 29 August 2007 (UTC)

I wanted to use language links, how can I enable it?
I wanted to have the language links like this page : http://www.mediawiki.org/wiki/Template:Languages

I copy and paste 2 templates related to this template (Template:Languages and Template:Languages/Lang ) but when I browse Template:Languages page I saw the functions like "ifexist" hasn't been executed. how can I solve the problem? —80.191.15.10 17:26, 29 August 2007 (UTC)


 * You need Extension:ParserFunctions -- Duesentrieb ⇌ 22:03, 29 August 2007 (UTC)

login and password maintenance under https?
Is there a setting, extension, or code example that allows someone to place just the login page and preferences pag under https protocol while the rest of the site runs under http? I've searched, but haven't found one. Thanks. --Vjg 18:36, 29 August 2007 (UTC)
 * All you need is to have the whole site accessible via either, but force any access to the login special page to return a redirect to the https if access is attempted from just normal http. This could be added in to LocalSettings.php such as in this (untested, off the top of my head) example: --Nad 02:54, 11 September 2007 (UTC)

Hide from Certain User
Is there a way to hide a certain part of a page from a specific user or admin? How would I do this? Thanks. Smaug 22:36, 29 August 2007 (UTC)


 * no. you can hide entire pages from users not belonging to a special group (using an appropriate extension), but you cannot hide parts of pages. This would mess with caching, among other things. Note that hiding things in mediawiki isn't 100% air-tight anyway, mediawiki is not designed for this. -- Duesentrieb ⇌ 10:13, 30 August 2007 (UTC)


 * Thanks for answering. Smaug  13:36, 30 August 2007 (UTC)

Wiki onto Google
How can I get my wiki onto Google? The URL is http://www.iaskmd.com. —24.7.119.253 01:44, 30 August 2007 (UTC)


 * be patient. -- Duesentrieb ⇌ 10:11, 30 August 2007 (UTC)
 * Nice answer. You can submit your site to google, http://www.google.com/addurl/ and wait to be crawled --Zven 02:52, 4 September 2007 (UTC)

pgsql.so
Where do i get pgsql.so? I have php_pdo_pgsql.dll but MediaWiki refuses to take it. —83.86.35.112 17:12, 30 August 2007 (UTC)


 * Sounds like you are using Windows. Try uncommenting this line in your php.ini file (by removing the semicolon) ;extension=php_pgsql.dll Turnstep 18:52, 3 September 2007 (UTC)

Sidebar Help
I need some help please. I cannot seem to edit/customize the sidebar. Here is my setup.


 * Windows Server 2003
 * PHP 5.2.3
 * MediaWiki 1.10.0
 * Mysql 5.2.3790
 * Monobook skin.
 * IIS 6
 * Running on an intranet, so no domain in url. just one word Take2Wiki.

I'm logged in as admin

After reading the helps and various tutorials, I'm pretty sure I just need to be editing my MediaWiki:Sidebar by going to this url.

http://Take2Wiki/MediaWiki:Sidebar

where http://Take2Wiki is the root of my Wiki site. However, it's returning an HTTP 404 error (Cannot find). I've also tried

http://Take2Wiki/index.php/MediaWiki:Sidebar

but to no avail. Am I missing something? Or could it possibly be my setup, or maybe the fact that I don't have a fully qualified domain name??

Any help is most appreciated.

bill —64.182.114.1 18:44, 30 August 2007 (UTC)


 * Go to your wiki main page, then replace  in the URL with  . --Dr DBW 00:09, 31 August 2007 (UTC)

SQL Server 2005 Express
Can I install MediaWiki to work with "SQLServer 2005 Express" or "SQLServer 2000" --203.24.1.57 23:14, 30 August 2007 (UTC)


 * No. robchurch | talk 15:37, 3 September 2007 (UTC)

Short Name issue
I am hosting on hostgator and having problems getting mod_rewrite to work properly.

http://www.thevbcoders.com/codi/index.php/Main_Page

I have tried all rewrite rules from the article on this site but still nothing. I don't have root access which I can't use the root portion. Any ideas on the problem?

Thanks Steve —76.4.188.64 01:28, 31 August 2007 (UTC)
 * That wiki looks very nice ;-) Short urls can have problems if you don't have access to the Apache config, but have you checked Manual:Short URL? --Nad 21:25, 11 September 2007 (UTC)

locking pages for users and groups
How can I lock pages for other users or how can I say that "page xyz" is just readable for "group abc"? —213.214.18.64 07:23, 31 August 2007 (UTC)


 * See a couple of questions on this page, Project:Support_desk, Project:Support_desk --Dr DBW 07:25, 31 August 2007 (UTC)

Undefined offset: 0 in Namespace.php on line 96
Recently upgraded to Mediawiki 1.10.1 from 1.9.3 and now the above error has appeared. Did the normal upgrading process, back up of files and database, copied new version over the top of the old, ran the updating script, then that was it. Any ideas on the cause of it? I didn't change anything to do with the LocalSettings.php file either. The contents of line 96 in Namespace.php is below --Dr DBW 07:24, 31 August 2007 (UTC) return $wgCanonicalNamespaceNames[$index];
 * Any suggestions? Something wrong in the LocalSettings.php?  I also updated two other wikis, on the same server, using the same procedure, and this error did not appear. --Dr DBW 21:53, 5 September 2007 (UTC)
 * Something in your LocalSettings must be clearing that array because its content (including offset 0) are all defined in namespace.php. Maybe try commenting out extensions to see if any are causing the problem. And check if any localsettings are related to namespaces too --Nad 22:27, 5 September 2007 (UTC)
 * Thank you for the suggestion. Have worked out that it is due to the Extension:SidebarEx.  Off to the developer to see if they know why etc .... --Dr DBW 04:11, 10 September 2007 (UTC)
 * Issue has been resolved. Was a bug in the extension code. -- Dr DBW  |  talk  23:15, 12 September 2007 (UTC)

Another Question
I want to link words within a page to a master definitions list. How do I create a Master page that different words in different pages can link to. —67.161.224.23 14:54, 31 August 2007 (UTC)

—69.146.160.203 15:27, 31 August 2007 (UTC)

Creating links from words to a master definitions or references page
I am creating a procedures wiki and I need to link individual words or phrases to master pages that will contain multiple definitions, references etc. I wish to create these master lists so that in the future, updating references, definitions are done on one page and not multiple procedures

trhixon —Trhixon 15:45, 31 August 2007 (UTC)


 * The Glossary extension might do what you are looking for. --Dr DBW 00:16, 1 September 2007 (UTC)

Adding Content in Sidebar
Hey,

I'm working with an organization at ASU that is using this Wiki software. I'm not familiar with it, so I am having difficulty getting some things accomplished...

Particularly, where (line #s, files, etc) do I go so that I can add content into the sidebar? We are wanting to add some images/logos at the end of the sidebar (underneath the toolbox). I'd like to just be able to go into a file and add the simple HTML code; but I haven't found the appropriate files/etc.

Any help would be greatly appreciated!!

Andrew

—149.169.101.176 18:21, 31 August 2007 (UTC)
 * You may not need to touch the filesystem file structure of MediaWiki, try altering the article MediaWiki:Sidebar on your wiki (have to be a Sysop), however this adds content above the toolbox. See Manual:Interface/Sidebar for documentation details --Zven 20:09, 31 August 2007 (UTC)
 * Images cannot be added into MediaWiki:Sidebar so it looks like you are going to have to find and alter the code. Have you already altered the logo? --Zven 20:36, 31 August 2007 (UTC)

Blocking anonymous users from certain namespaces
I would like to block users that are not logged in (or not of a certain permission atleast) from viewing various namespaces. In other words, I don't want them to even be able to view the source.

In particular:
 * Mediawiki:*
 * Template:*

How can I do this?

—71.146.38.183 21:40, 31 August 2007 (UTC)


 * See Manual:Preventing_access --Dr DBW 23:33, 31 August 2007 (UTC)

Special Statistics error and problems creating subdirectories
Hi, my Special:Statistics returns a figure of 18,446,744,073,709,551,615  articles. It would have been good if it were really true but the fact is that I have just started. Also, what is the command for counting the number of articles in a subdirectory.

I don't seem to be able to add any directory after 103.
 * $wgExtraNamespaces = array(100 => "Portal", 101 => "Perbincangan_Portal");
 * $wgExtraNamespaces = array(102 => "Istilah", 103 => "Perbincangan_Istilah");

I have tried other numbers such as 110 and 201 but it doesn't seem to work either. Also, 100 and 101 does not work either. Only 102 and 103. Is there a conflict somewhere?

(P/S: My version is 1.10.1. I just downloaded the patch, mediawiki-1.10.1.patch(3).sig. Which directory should I download it to?) -- PM Poon 05:13, 1 September 2007 (UTC)
 * About the statistics: There was a problem with the counting, and it went to the largest possible value.
 * About the counting of the pages in namespace (not "subdirectory"): Add the following code to LocalSettings.php (after the place you added the extra namespaces):

$wgAllowSlowParserFunctions = true;
 * Then use the magic word "PAGESINNS", e.g. . You can remove the line in LocalSettings.php if you don't want to use this magic word any more.
 * About the extra namespaces: You use wrong PHP commands. The later command overrides the earlier one. You should use only one command, for example:

$wgExtraNamespaces = array(100 => "Portal", 101 => "Perbincangan_Portal", 102 => "Istilah", 103 => "Perbincangan_Istilah", 104 => "...", 105 => "...");
 * Alternatively, you can use:

$wgExtraNamespaces[100] = "Portal"; $wgExtraNamespaces[101] = "Perbincangan_Portal"; $wgExtraNamespaces[102] = "Istilah"; $wgExtraNamespaces[103] = "Perbincangan_Istilah"; $wgExtraNamespaces[104] = "..."; $wgExtraNamespaces[105] = "...";
 * – rotemliss – Talk 15:51, 1 September 2007 (UTC)

'''Thank you very much, Rotemliss. The solutions given by you were very, very helpful. I had been searching high and low in Google Search but did not manage to find any answer.''' PM Poon 22:40, 2 September 2007 (UTC)

Centering a table VERTICALLY on the page
Hi guys Is there a way to center a table VERTICALLY on a page? I can center horizontally no problems, but vertically, with the valign tag, it doesnt want to play ball. —58.175.34.241 05:56, 1 September 2007 (UTC)


 * http://www.w3schools.com/css/pr_pos_vertical-align.asp —Eep² 08:31, 1 September 2007 (UTC)

php error
I'm trying to install MediaWiki 1.11.0 on php 4.4.7. In the main page you have this

* Download MediaWiki (current stable version is 1.10.1) * Web Server such as Apache or IIS * PHP version 5.0 or later (5.1.x recommended) * Database Server o MySQL 4.0 or later o or PostgreSQL 8.1 or later (also requires plpgsql and tsearch2) o or Ingres 2006 or later (SVN-Download)

when i install, appear this error: "PHP 5.0.0 or higher is required. ABORTING." what can i do to solve this? thanks, and sorry for my bad english :|


 * You said you have PHP 4.4.7. It requires at least PHP 5.0 (5.1 recommended).


 * Either upgrade PHP, or use MediaWiki 1.6.x -- Duesentrieb ⇌ 22:14, 2 September 2007 (UTC)

Coding Error from server not meeting all requirements?
What I mean is, the PHP Version, for example is actually 4.4.6 (I have a 1.9 in use for the wiki software). Could this be an interfearence in some codes not working right? (Example would be the hidden varible one, I CANNOT seem to get it to work)--TheSisko


 * Upgrade PHP to version 5, or use MediaWiki version 1.6.10. Emufarmers 03:18, 2 September 2007 (UTC)

How to Remove Top Links on the right - MyTalk, Preferences, MyWatchlist, My Contributions, but no Log in
Hi Guys, ive been struggling with this. I want to remove the: Top Links - MyTalk, Preferences, MyWatchlist, My Contributions, but KEEP the Log in/Log out link. Ive tried to do the following in Monobook.php, but it removes also the Login/Log out link. $wikidata[personaltools_header] $wikidata[personaltools_content] Any help appreciated. --203.5.136.234

Installation: Requested to Choose Application
I have uploaded MediaWiki (1.6.10) to my web host and MySql database is up, but when I direct browser to directory, the browser tells me I have chosen to open a file, and asks me to chose an application:



This happens in Mozilla Firefox, Netscape Navigator, and MS Internet Explorer. What I am doing wrong? —James R MacLean 09:40, 2 September 2007 (UTC)


 * As said on Bugzilla (11153), it's not our problem, it's a problem with your host's PHP. -- Sayuri 12:38, 2 September 2007 (UTC)


 * The problem is now solved. What happened was that, initially, I had installed release MW 1.10.1, but my web host only supported PHP4.4, not PHP5 (which is a requirement of release 1.10.1).  So I used the SSH client to delete the /wiki directory and replaced it with a new one containing release 1.6.10.  This time, I got the same error.  That's when I posted here the first time.


 * A tech guy at my webhost kindly noticed that it worked for him, so perhaps it was necessary for me to flush my DNS resolver cache. It worked, and I'm in business.  Thanks to everyone for listening and diagnosing.

Optional linking
I have a question. That's why I'm here, you see. My question is this: I'm creating a bunch of templates on a Wiki of mine, and I was wondering if there was a line of code I could use that would link to a certain article if that article existed, but if it didn't, would link to another, default one.

Thanks. (And sorry if this is the wrong place to ask...) ~ ТģØ(Đ {ŧª∫Қ ↑¤ Мә} 14:01, 2 September 2007 (UTC)


 * If you install Extension:ParserFunctions, you get an ifexists directive: ParserFunctions -- Duesentrieb ⇌ 22:18, 2 September 2007 (UTC)

You are a very helpful person. Thanks! ~ ТģØ(Đ {ŧª∫Қ ↑¤ Мә} 04:24, 3 September 2007 (UTC)

Faulty system clock has lead to strange wiki behaviour
My company's wiki server has recently had trouble maintaining the correct time (which was an OS/hardware problem, nothing to do with the wiki software). It's been fixed now, but as a result of the problem we have a wiki in which some articles have been time-stamped with a date in the future. This leads to problems displaying the most recently-edited version of an article.

Is there any 'official' way to correct this? I've considered possibilities such as hacking the database to set all versions to an arbitrary date (say 01-01-2007) but I suspect that such ignorant tinkering could well lead to further problems. Any advice will be much appreciated - thanks in advance. —WombatDeath 15:23, 2 September 2007 (UTC)


 * Manually settings times in the revision table (most essential - bad timestamps in recentchanges ad logging are probably not so critical) is the only way i know to fix something like that. But what to set the time to is another problem. If the info is gone, it's gone... -- Duesentrieb ⇌ 22:20, 2 September 2007 (UTC)


 * Thank you very much for your response! We'll look into that - no data appears to have been lost, so the situation should be recoverable.
 * WombatDeath 10:15, 3 September 2007 (UTC)

CategoryTree in SideBar Problem
Hi guys hope you can help. Ive got the CategoryTree working in the SideBar but there is a problem. It works fine when expanding out the tree on the Main Page. I can click on a child on the Main page and it goes to the right location. However, when Im at the new location other than the Main Page, I get a similar problem to what has already been discussed under "Clicking the [+] has no effect / gives JavaScript error".

The thing is: 1) On the new page, I can click on the root of the category tree, and it takes me to the right location. 2) On the new page, I can click on the root and goes to that root fine, but I cannot expand that roots children out. I CAN expand the CategoryTree out successfully on the Main Page only, but no other page.

The error code Im getting on pages other than the Main Page when using the CategoryTree from the sidebar is: Line 671 Char33 Error:Object Expected Code:0 URL:  I have checked all is correct with the notes on "Clicking the [+] has no effect / gives JavaScript error".

SUMMARY:

On the Main Page: I can expand the category tree successfully, and click on children successfully. On Pages other than the Main: [+]Category (If I click this, it goes to this page) [+]Category (If I click this, it goes to this page) [+]Category (If I click this, it goes to this page) eg. [+]VBScript (If I click on VBSScript, it goes to http://localhost/mediawiki/index.php/Category:VBScript When I hover over the [+] next to VBScript, the path is looking at http://localhost/mediawiki/index.php/Category:VBScript# Questions. This error Im getting. What file is the error coming from, and how to correct? Thank you. —58.175.32.33 19:49, 2 September 2007 (UTC)
 * 1) I can click on the root of each category and go to that page:
 * 1) If I try and click on the [+] sign next to the Category Name, eg. the [+] next to VBScript, I get the error message.


 * as stated on Extension:CategoryTree, it does not work right in system messages. This is a known issue, and there's no simple and good solution (or at least, i don't know any). Basically, CategoryTree registers JavaScript code in the ParserOutput object if it gets used on a page. But system messages used as interface components (like the sidebar) are parsed differently, so the needed JavaSCript does not end up in the HTML head. So CategoryTree doesn't work.
 * A possible hack to work around this issue (untested!): in CategoryTree.php, find the function efCategoryTreeParserOutput. Remove the condition, so it always calls CategoryTree::setHeaders( $outputPage ); This causes the css/js for categorytree to be included on every page (which is not very smart generally, but what you want in your case).
 * Put a note on Extension talk:CategoryTree if this works :) -- Duesentrieb ⇌ 22:33, 2 September 2007 (UTC)

Purging database
I made a mistake in my LocalSettings.php regarding namespaces and all my articles that should have gone into the Istilah namespace went into the main namespace instead. When I corrected my mistake in my Localsettings, all my Istilah:xxxxx articles disappeared. Now I rewrite all those missing articles and my Special Statistics hit 18,446,744,073,709,551,615. I added 2 articles in the main namespace and now the number of articles read 18,446,744,073,709,551,613.

I wonder whether there has been a conflict between the two Istilah type articles. How do I purge my database of those articles in the main namespace that is "missing"? Hopefully, this may solve the Special Statistics error. And also, I would like to purge all deleted data from time to time as the website that I rented is quite budget. PM Poon 22:52, 2 September 2007 (UTC)
 * Here's some special-page extensions that may help with that: --Nad 03:57, 3 September 2007 (UTC)
 * Extension:SpecialDeleteOldRevisions - deleting article history or archive for selected articles
 * Extension:Nuke - deleting articles and their history selected by author or IP
 * Extension:NukeDPL - deleting articles and their history selected by DPL query

Thank you Nad, for your recommendations. I have tried the first two but not the third one as I do not use DPL. The second one works but is not useful for me as my ISP assigns a different IP address each time I log in. I think the first one is what I need but unfortunately it returns the following error (I am using MediaWiki version 1.10.1):


 * Warning: Cannot modify header information - headers already sent by (output started at /home/ekomrinf/public_html/ekompute/LocalSettings.php:147) in /home/ekomrinf/public_html/ekompute/includes/WebResponse.php on line 10.

The pertinent line 10 in /home/ekomrinf/public_html/ekompute/includes/WebResponse.php is:
 * /** Output a HTTP header */
 * function header($string, $replace=true) {
 * header($string,$replace);
 * }

while /home/ekomrinf/public_html/ekompute/LocalSettings.php:147 is:
 * include_once("$IP/extensions/SpecialDeleteOldRevisions.php"); &mdash; PM Poon 17:45, 3 September 2007 (UTC)

Displying article and discusssion board on the single page
Please see the followin image. I want to display article and discusssion board on a single page. Is it possible to customize in media wiki. Please response quick Thanks in advance

—Bpishere 16:18, 3 September 2007 (UTC)


 * Have a look at Extension:TalkHere -- Duesentrieb ⇌ 20:12, 3 September 2007 (UTC)

install-utils.inc
hi i have wiki 1.10.1 and php 5.2.1 and mysql 4.1.22-standard

everytime i go to install i get this message

Warning: require_once(includes/Defines.php) [function.require-once]: failed to open stream: No such file or directory in /home/zendurl/public_html/s/stozy/config/index.php on line 46

Fatal error: require_once [function.require]: Failed opening required 'includes/Defines.php' (include_path='.:/home/zendurl/public_html/s/stozy:/home/zendurl/public_html/s/stozy/includes:/home/zendurl/public_html/s/stozy/languages') in /home/zendurl/public_html/s/stozy/config/index.php on line 46

what is going wrong ? nothing i do works. :(

—83.104.231.36 20:58, 3 September 2007 (UTC)

Pretty URLs and namespaces with subpages
I'm running the latest version of MediaWiki, and have configured pretty URLs. They work fine, unless it relates to a subpage. For example: www.domain.com/wiki/article/article subpage. If you type in a pretty URL direct to a subpage it won't work and gives a 404 not found error. If you type in an unpretty URL - www.domain.com/wiki/index.php?title=article/article subpage - then it works fine. Any ideas on how to fix this? —Coldmachine 21:32, 3 September 2007 (UTC)
 * It depends on what method you've used to set up the pretty urls --Nad 22:01, 3 September 2007 (UTC)

Installing scripts to apply to all users: MediaWiki:Common.js
I have tried copying and pasting the js from a number of scripts (e.g. the Force Edit Summary script, and the Force Preview before save script) into MediaWiki:Common.js but none of them seem to work. I've tried with and without the initial pre and nowiki tags (and closing them at the end). If I omit both of those then the page looks pretty weird - some of the code is highlighted in a boxed area for example. If I include them both then still no luck. Is there an extension which needs to be installed prior to amending Common.js with scripts? Oh, I also tried importing via the importscript command both to external URLs and to an internal userspace-based article containing the code, and no luck there either. —Coldmachine 21:33, 3 September 2007 (UTC)
 * You need to set $wgUseSiteJs to true for the MediaWiki:Common.js file to be included. --Nad 21:56, 3 September 2007 (UTC)

Database corruption
Hi, I may be experiencing database corruption. My webhost has proposed that I delete the database and create a new one. If so, all my work goes down the drain. Fortunately the site is very new and has no other user contribution. How do I safeguard my contents in the future?
 * If you have access to the command line you could try running the php script in the maintenance directory php rebuildall.php. The corruption may be more severe, in that case you would need to use mysql tools to establish whether your database is recoverable. The mysql command;

mysqldump -u root -p --single-transaction -B wikidb > wikidb.sql
 * will back up your database at any time. --Zven

Also the use of ImageMagick requires exec to be enabled. I understand this is a very big security risk. &mdash; PM Poon 02:38, 4 September 2007 (UTC)

Edit summary formatting (resolved)
Where is the edit summary formatted? Specifically, I want to get rid of the parentheses </tt> around it. I've already hacked Special:Recentchanges to be a sortable table but would like to fix the edit summary to not have parentheses (and "New page:" in it since the "N" symbol already represents that--I thought it would be editable via MediaWiki:Autosumm-new but removing "New page:" from that had no effect on the recent changes list). —Eep² 12:00, 4 September 2007 (UTC)


 * OK, seems the "New page:" and other "autosumm-"* system messages are hard-coded into the recentchanges database table so existing edit summaries won't be affected (which is why, after editing MediaWiki:Autosumm-new, I didn't see any change). And I found where the parentheses are added: in ..includes/Linker.php</tt> (line 964) of all places. —Eep² 14:33, 4 September 2007 (UTC)

After setup of 1.6.10 since I am using PHP4, I get the following errors:

Warning: Cannot modify header information - headers already sent by (output started at\wiki\LocalSettings.php:1) in \wiki\includes\OutputPage.php on line 496

Which repeats for 421,449,450,452, 503 and 510. How do I resolve this? —71.41.51.2 16:23, 4 September 2007 (UTC)

Access resources outside MediaWiki
Greetings all,

My problem is as follows:

I have a MediaWiki (1.10) site up and working well. The versions of Apache & MySQL are at or within one minor release of current. On the whole, all is working as expected. My issue is that I have an internal client who wants to "advertise" their work on the Wiki without having to upload it. Rather, they want to have some screen on the Wiki look like a standard "Directory/File" display they can "walk down" to the file they want and let the user copy the file from wherever it is stored to the users local disk. These files are on a standard SMB capable Linux box.

The primary directory (containing all the other directories & files) can be mapped in Windows (or NFS) and, of course, there is an Apache Web server that could also be used for access (a new virtual host likely but that's fine).

I have searched EVERYWHERE I can think of, looking for an extension or other mechanism to do this but, no luck. I tried to make the FileProtocolLinks and FileLinkExtensions work but again, no luck (can someone provide a step-by-step to make EITHER of these work?).

I am assuming this can be done but maybe not...In any event, I would GREATLY appreciate ANY help anyone could offer.

Thanks,

Pete

—216.68.13.36 16:59, 4 September 2007 (UTC)
 * You'd need to explain more clearly what items are being copied from where to where and what information the tree structure is reflecting, but it sounds like you'd need an extension made specifically for that. --Nad 22:05, 4 September 2007 (UTC)

--216.68.13.36 19:54, 5 September 2007 (UTC) Essentially, I need to be able to "approximate" the function of a file manager (like Windows Explorer or one of the Linux GUI FM's). The resources are different files (all Acrobat, WORD, Excel or PowerPoint). They all sit on an SMB accessible file server. I also have Apache running on the server so some kind of extension able to display something like a file system as seen by http or ftp (the GUI interfaces that is)would work. I WON'T have control of the directories and files inside the root directory but I DO have control of the parent (root) directory containing the folders & files. I hope this makes things clearer. I hate to have to do it this way but short of importing all the files in some kind of an "Internal Link" construction (which is way too much work and I KNOW the person in charge of these files won't do all the uploading), I'm not sure how to "encourage" MediaWiki handle this requirement.

Many Thanks, Pete

Upload Error (resolved)
When I try to upload a file I'm getting a rather long error. As far as I can tell I've got everything set up as it should be according to the FAQ and all other documentation that I can find. This is the error message I'm getting:

Warning: mkdir [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid/gid is 7926/0 is not allowed to access /mounted-storage/home70b/sub001/sc16966-QTFK/www/wiki/images/archive owned by uid/gid 99/99 in /mounted-storage/home70b/sub001/sc16966-QTFK/www/wiki/includes/GlobalFunctions.php on line 1695

Could not copy file "/upload_tmp/phpNcZbbN" to "/mounted-storage/home70b/sub001/sc16966-QTFK/www/wiki/images/9/93/V1p4f.jpg". —68.148.110.107 19:09, 4 September 2007 (UTC)

Any idea?

Thanks, Tyler
 * From what those errors are saying it looks like you need to change the permissions on your images directory as the script is not allowed to create files in there. --Nad 21:58, 4 September 2007 (UTC)

Permissions are all set to write. That's why this is confusing me so much.

Tyler
 * I think that "SAFE MODE Restriction in effect" is bad and means that your ISP has disabled PHP's ability to create directories. If the ISP doesn't want to turn that off, then you may be able to still upload images by setting $wgHashedUploadDirectory to false which would mean all uploaded files would go directly into your images directory without needing to create new sub directories to put them in. --Nad 22:52, 4 September 2007 (UTC)

Works perfectly now, thank you. I guess it would have help to have read through the LocalSettings.php file a bit more closely.

Sidebar - Nqvigationsleiste
I have installed MediaWiki (german language). This is the URL of my Startpage: htttp://10.1.1.47/index.php?title=Hauptseite How can I edit the navigation Bar on the left side? htttp://10.1.1.47/index.php?title=Sidebar and htttp://10.1.1.47/index.php?title=Navigation are empty pages?? Can you please help me?

—213.70.219.139 08:23, 5 September 2007 (UTC)
 * The sidebar article is MediaWiki:Sidebar --Nad 09:07, 5 September 2007 (UTC)


 * Ok, but what URL must I enter to edit the Sidebar?--213.70.219.139 09:16, 5 September 2007 (UTC)
 * You should just be able to edit it like any normal article. If it's showing up as empty when you click edit, then maybe you need to set $wgUseDatabaseMessages to true in your LocalSettings.php file, but normally you shouldn't need to do that for the sidebar article... --Nad 09:31, 5 September 2007 (UTC)


 * I think I do not have the right link. This is the link for my mainpage: http://10.1.1.47/index.php?title=Hauptseite now I edited it manually to htttp://10.1.1.47/index.php?title=Sidebar and it shows an empty page (even after adding your parameter). But it also shows an empty page when I enter a nonexistant URL like /index.php?title=DoesNotExist

--213.70.219.137 09:48, 5 September 2007 (UTC)
 * The links your showing me here are intranet addresses and not accessible from outside your LAN. Also the link to the sidebar you've shown has the title "Sidebar", not "MediaWiki:Sidebar" which is the name of the article containing the sidebar links. --Nad 10:18, 5 September 2007 (UTC)


 * /index.php?title=MediaWiki:Sidebar works. Thank you!--213.70.219.137 11:20, 5 September 2007 (UTC)

Thumbnails aren't being set with the correct permissions when created
When creating thumbnails either in gallery or just by using the thumb command, the actual thumbnails themselves aren't being set with the correct permissions. Any idea what could be causing this?

—81.150.229.177 13:43, 5 September 2007 (UTC)

Images won't resize
I seem to have a problem resizing images of whatever type while editing. We have wikimedia 1.9.2 installed on a Linux server. At first I thought it had to do with the fact that there might be a problem with the MIME type being read incorrectly but when I check the uploaded files, the MIME type is correct. Is there something I need to change in the LocalSettings to enable resizing all together? I've found quite a few entries in the support pages related to ImageMagick but we don't have that installed and I don't think it is needed for basic image resizing.

Any suggestions?

-212.113.85.1 14:28, 5 September 2007 (UTC)

Hi, I am no expert and I had a similar problem before. You need to use either ImageMagick or GD. My webhost gave me GD because you need to enable exec to run ImageMagick (something that is not wise because it presents a big security risk).

The relevant part of LocalSettings.php reads:
 * '' ## To enable image uploads, make sure the 'images' directory
 * '' ## is writable, then set this to true:
 * ''$wgEnableUploads      = true;
 * ''$wgUseImageMagick = false;
 * ''$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'svg', 'ogg' );

As you can see, you need to disable ImageMagick. However, you will need to enable GD in one of the files to get GD to work. I can't remember which file it is. Can anyone else help? &mdash; PM Poon 16:48, 6 September 2007 (UTC)

How to tell MediaWiki to use different php version
How do you tell MediaWiki to use a different version of php? On one server that are trying to install on, default is some 4 version, but 5 is installed and available. Where can you tell it to find php in a different to the standard location. --Dr DBW 00:39, 6 September 2007 (UTC)


 * Just found out that if use .php5 then it will use version 5. But that means have to rename all the .php files, though suppose that isn't that much of a problem ... --Dr DBW 00:54, 6 September 2007 (UTC)


 * If want to rename files, can use, however, penny just dropped that that solution wont help, as there are lots of includes inside the MW code, which are directed at .php files, not .php5, so this idea doesn't get anywhere --Dr DBW 04:40, 6 September 2007 (UTC)


 * Another reason this wont work, is .php5 files on the server are still handled using cgi, so the #!php5 line still has to go inside all the .php files --Dr DBW 05:16, 6 September 2007 (UTC)


 * To avoid changing all the scripts to php5 (if using Apache) you can use mod-rewrite to append the "5" to all php scripts within a particular virtual-host. --Nad 02:24, 6 September 2007 (UTC)


 * Would that mean that the .php file is then executed as a .php5 file though, or simply displayed back to the browser as having that extension? This is the response I got from my host when asked them about mod-rewrite: --Dr DBW 04:10, 6 September 2007 (UTC)
 * Mod_rewrite will simply rewrite the URL of the file, not the files itself. I'm afraid the only option at this stage, apart from an upgrade to a PHP5 native server as you're already doing, is to manually add the shebang to each file.
 * Yeah that's true actually - you'd have to change the .php handler just for that virtual host... --Nad 05:15, 6 September 2007 (UTC)
 * Seems you can use a .htaccess file setting to do that. Haven't worked it out yet how it is done yet though .... --Dr DBW 01:21, 6 September 2007 (UTC)


 * On the particular server I am running things on, you add  and , because they run php5 for some reason as a cgi module. Plus, within the .php files you need to have   at the top of the .php files. --Dr DBW 01:31, 6 September 2007 (UTC)


 * So this idea doesn't work either, since the #! line has to be added to the all the .php files. Only way out now is the above one using mod-rewrite --Dr DBW 04:40, 6 September 2007 (UTC)
 * Since mod-rewrite is not an option, you could do a perl one-liner to add the she-bangs, such as this (make a copy of the dir structure first though incase it stuffs up):

perl -p -i -e "$/='%%%%%';s/^/#\!\/bin\/php5\n/" `find mw/ -name "*.php"` Those %'s set the record separator to something non-existent because otherwise the regexp applies to every line. Change "mw" to the mediawiki install basedir, and set the php5 path to suit. --Nad 05:51, 6 September 2007 (UTC)

OK, here is what I have come up with (but have not as of yet tried it out), first run this script that will put the #!php5 code on the start of all .php files and save them as .php5 Then run this script that will rename all of the .php5 files back to .php --Dr DBW 05:27, 6 September 2007 (UTC)

And further refinement of the script, going to try this out (have to get my providers to run the script). If anyone has suggestions on how to get the script to do it on sub-directories as well, that will make life easier, as there are 17 directories with MediaWiki that contain .php scripts that will need to run it in. --Dr DBW 06:39, 6 September 2007 (UTC) And now made this into a bash script to run. Anyone here got an idea how to get it to go into sub-directories to do the same process? --Dr DBW 00:39, 7 September 2007 (UTC)
 * The perl line above will match all .php's recursively and prepend a shebang to each, you could add a rename to it too --Nad 01:20, 7 September 2007 (UTC)
 * Thanks for the suggestion. Not needed now anyway ;-( --Dr DBW 02:51, 7 September 2007 (UTC)

Well, not surprisingly, not as easy as I thought. .php files that are included into the original, called .php file, well you should have the #!php5 line in that, d'oh. Should have realised that. Damn, I wish they would just upgrade all to php 5, but they aren't doing that until Jan next year ..... --Dr DBW 02:26, 7 September 2007 (UTC)

Adesense Advertisement Not Displaying
The Google tower-format advertisement in the right column could not display until I added the following line to my LocalSettings.php:
 * require_once("$IP/adsense.php");

Unfortunately, I got the following error:

Warning: Cannot modify header information - headers already sent by (output started at /home/ekomrinf/public_html/ekompute/adsense.php:4) in /home/ekomrinf/public_html/ekompute/includes/WebResponse.php on line 10

What could be causing the problem? &mdash; PM Poon 04:07, 6 September 2007 (UTC)

Automatic replacement of string from more than one page
Hey, i've a problem.

How can i replace (automatic) a string from more then one pages.

In an older Mediawiki version i used html image links (<img src=".."/>). now, in mediawiki i use the mediawiki image links, because the html links are wrong.

So i need a methode, to replace from all pages the old links.

Please help!

—62.8.155.19 10:02, 6 September 2007 (UTC)
 * You'll need to use an external script to loop through the pages and adjust them, here's a few approaches you could use:
 * Create a simple match & replace http robot based on existing mediawiki-client code like libwww-mediawiki-client-perl or wiki.pl.
 * Create a script which loops through and modifies the article by accessing the database, such as caretaker.pl which is desgined to loop through all articles daily and apply a set of match & replace rules on each.
 * Bot can can be simplified by installing Extension:Simple Forms which adds extra query-string options which can be used for matching and replacing content. Yi-bot is an example script which uses this method of mass replacement.
 * --Nad 10:29, 6 September 2007 (UTC)

wikidb.text table not found
I am upgrading our wiki from 1.4 to 1.10.1... I have copied over all files as shown, i have tried the php update.php and re installing it from the config.. I get an error saying wikidb.text is not found. I am logged in to phpMyAdmin and there is not text table. There are alot of tables so i'm sure everything is here as was before. The wiki worked well before trying to update is there something I should be renaming or otherwise?

Thank you Jasin

—138.162.128.52 15:46, 6 September 2007 (UTC)

Main Page Design
Dear friends of MediaWiki, we want to use Mediawiki in our club for our own Intranet. We welcome all the useful tools of Mediawiki. Please take a look on our Main page. We would be very happy if someone could help us with the formatting. How could we better arrange the little pictures? We protected our intranet by password. Should anyone anyway could open it, so tell me please. I would give a password to trustable Users. --Ulli1105 11:57, 11 September 2007 (UTC)

MySQL 1062 Error
I'm using a web-hosting(I don't have server.) and I setup the latest Wiki(Korean). and everything was OK in setup process. but when I try to make another account or try to write a post, then they print "MySQL 1062 Error"(i'm not sure that was whether 1062/1026). the servers told me to delete all tables, and I did, and I setup again, and still I have that ploblum. —121.147.10.228 16:02, 6 September 2007 (UTC)

Sysop?
I've uploaded a photo. Now I wanna delete it but the wiki says that I have to have administrative privileges. what should i do? —128.95.94.46 17:51, 6 September 2007 (UTC)


 * Log in as a sysop; such an account was created for you during installation. robchurch | talk 15:05, 7 September 2007 (UTC)

Extra tabs
How do I add an extra tab (in an extension e.g.) only for one user group? Thanks, SPQRobin 18:45, 6 September 2007 (UTC)
 * Here's a snippet to be added into LocalSettings.php for adding an extra tab conditional upon users group --Nad 20:35, 6 September 2007 (UTC)

Adding a Category Tree [+] Tab next to Edit, History, Protect, Delete
Hi guys, Just wondering how you would go about adding: 1) An extra tab next to Edit, History, Protect, Delete, for every page. 2) A Category Tree [+] tab next to Edit, History, Protect, Delete, for every page. Thank you. —58.175.32.33 22:41, 6 September 2007 (UTC)

Totally removing the Sidebar, toolbox etc column so the page extends full width
Hi guys! Probably not explaining myself very well, but what Im trying to do is to totally remove the column that contains the logo, navigation (sidebar), toolbox, so that each wiki page extends the entire width of the screen, similar to when you click on "Printable Version" in the toolbox. Any help greatly appreciated. —203.5.155.234 01:27, 7 September 2007 (UTC)


 * Try some of the other skins available, one may be like that? --Dr DBW 02:27, 7 September 2007 (UTC)
 * You could change your CSS to remove the sidebar and reposition the main content. --Nad 02:44, 7 September 2007 (UTC)

Putting a "back to top" link underneath each Section [Edit] link on the page.
Hi guys Just wondering if it is possible to add another link underneatch each Section [Edit] link that when clicked on, takes you to the top of the page you are on..similar to an anchor, but so that this functionality would appear on every wiki page. Any help on this appreciated. —203.5.155.234 01:32, 7 September 2007 (UTC)


 * Project:Support_desk/Archive_10 - that one sort of asks, why do you actually need this function? Personally, I don't understand why people want / need top / end links).  Anyway, I suspect if you look through the archives here, search them may be? you should be able to pull up some options.  I seem to recall this has come up a few times, and there is likely to be a solution available in there somewhere. --Dr DBW 02:54, 7 September 2007 (UTC)


 * [Home]</tt> key? robchurch | talk 14:57, 7 September 2007 (UTC)

automatic numbering like the 'table of contents'
Hey,

I've a question.

Is there a posibility of an automatic numbering of the subcategories?

e.g.

HeadlineSize1 1. HeadlineSize2 1.1 HeadlineSize3 2. HeadlineSize2 2.1 HeadlineSize3 2.2 HeadlineSize3 and so on, like in the 'table of contents'

In Mediawiki, subcategories get no number(in the text)

Please Help.

Thanks!

—62.8.155.19 08:20, 7 September 2007 (UTC)


 * Extension:DynamicPageList together with Extension:Tree view can make category trees. Using CSS these trees could be made to render in a similar style to the table of contents. I made an example here --Nad 10:44, 7 September 2007 (UTC)

Email Authentication
I was just wondering if someone might be able to help me with an problem I'm having with email authentication in MediaWiki. $wgEmailAuthentication is set to true in my LocalSettings.php file but when I send a request for an email authentication message to be sent to confirm my email address is correct I never receive the authentication email. I've tried a different email address too and its the same for that one. I've double checked that the address being sent to is correct so I'm stumped as to what the problem is. Do I need to change a setting somewhere else? I'm also using Apache on my iMac. Do I need to change how Apache is configured? Any help would be really appreciated. Thanks very much.—62.8.155.19 08:20, 7 September 2007 (UTC)]] 10:44, 7 September 2007 (UTC)


 * I'd look at it from the point of view that the email isn't being sent, unless you can confirm it is (MTA log), and work from there. robchurch | talk 14:56, 7 September 2007 (UTC)

Quick Log In
Is there a way to embed a login form/ username:password fields onto either the front page/ sidebar or top menu bar? That way people can log in right from the start Bouncingmolar 13:33, 7 September 2007 (UTC)
 * You could inject a form into a page using a parser hook extension, and into the skin using a skin hack. The login form isn't an includable special page, though. robchurch | talk 14:55, 7 September 2007 (UTC)
 * I added a login form example to Extension:Simple Forms. --Nad 05:40, 13 September 2007 (UTC)
 * cool i'll check it outBouncingmolar 08:11, 13 September 2007 (UTC)

Spam Attacks
A wiki I implemented at the university of Oldenburg is constantly attacked by a spamer working under ever changing IPs. I never saw such stuff on the English WP. Does anyone have experience with such attacks? (I know, I could of course block all IP-Users - yet I wanted to have the thing as open as the original WP so that my students got some insight into the thing.) regards, --Olaf Simons 14:21, 7 September 2007 (UTC)


 * Is the advice at Manual:Combating spam useful at all? robchurch | talk 14:54, 7 September 2007 (UTC)

some more buttons for "admins" would be nice

 * It would probably be helpful if only I were the "real" (instead of formal) admin of the wiki our university implemented on my request. The source texts remain hidden, I do not see where I could include the given code fragments. It seems I'll have to protect our child through an exclusion of all IP-edits. Here again I miss the button I have to press as the "admin" or "bureaucrat". The decision how open the structure was to be, seems to have been made with our wiki's implementation, which I did not influence...


 * PS. A special problem is the lack of experience-based information. It would be good to have some kind of guess on the effect of decisions - I had (as a German Wikipedia admin) some clues about what personal vandalism can mean in this medium, I had, however, no idea that I would spend much more time on blind attacks bots seem to produce. I never saw such attacks on the recent-changes at either the German or the English Wikipedia. If we decide to allow logged-in users only - is there any experience whether this will end the automatic attacks? --Olaf Simons 18:46, 12 September 2007 (UTC)


 * Requiring login to edit will not stop spambots if the create-account form is still publically accessible. I use Extension:ConfirmEdit which prevents spambots from using forms. Just using it on the account-creation form is enough to stop them if you have to log in to edit. --Nad 21:55, 12 September 2007 (UTC)

How to change URL format
I have installed mediawiki for http://www.rrules.com/. URL of home page or any page appears as http://www.rrules.com/index.php?title=Main_Page but i want this url as http://www.rrules.com/index.php/Main_page. Please help to fulfill this requirement. Thanks in advance
 * That's covered in Manual:Short URL and Manual:Very short URL --Nad 21:05, 7 September 2007 (UTC)

CAN MEDIAWIKI RUN WITH A 12MB MEMORY LIMIT?
Dear Support, —66.214.124.4 19:16, 7 September 2007 (UTC)
 * 1) 12MB OF MEMORY IS THE LIMIT AT OUR SERVER ENVIRONS.  CAN MEDIAWIKI RUN WITH 12MB?
 * 2) Can the new version run on PHP4 by renaming files as they generate?
 * As long as MySQL is running ok, then MediaWiki should be able to work, but you'd be likely to have out of memory errors if there were too many concurrent users or any advanced queries. MediaWiki has not been able to run on PHP4 though since about version 1.6. --Nad 21:12, 7 September 2007 (UTC)

Special Pages have disappeared?
I'm running Mediawiki version 1.8.2 on a Linux machine with PHP 5.1.6 and MySQL 5.0.42.

I haven't had any problems with Mediawiki until about 2 weeks ago when all of my Special Pages stopped working. All of the code is still on the server, it's like it's just not recognizing that they are special pages anymore. All of my content is still there and I can still edit files, but I can't login, upload, go to a random page, etc, etc. Instead of loading the .php files that contain this code it tries to get me to add them in as regular wiki pages that haven't been given content yet.

I've searched but can't find any references to this problem anymore. Please let me know how I can fix this.

—205.155.65.226 20:13, 7 September 2007 (UTC)
 * It sounds like the namespaces array has been modified so the the "special" namespace is being treated as a normal one. Do you have any extensions or localsettings which might have affected that? --Nad 21:15, 7 September 2007 (UTC)


 * No extensions running and afaik the localsettings haven't been changed since the install. Is there anything specific I should look for? —205.155.65.226 21:42, 7 September 2007 (UTC)


 * One thing I'm noticing, I'm not seeing my links show up as (http://blah/mediawiki/index.php/Special:Random), instead it's removing the 'Special' so it's just (http://blah/mediawiki/index.php/:Random). Typing it out by hand doesn't work though, but this seems like it's doing something wrong. —205.155.65.226 21:55, 7 September 2007 (UTC)

I want to change status of multiple page at once
I want to change a page content and automatically the status of another page that I defined will change. example in practice : It is useful when I want to edit "use case" of one feature of software and automatically wiki change the status of "test case" of that feature (for example add a flag of "use case changed" above the test case page). is there any extension? —213.233.160.30 01:38, 8 September 2007 (UTC)

How to run Maintenance scripts from my server! :(
This is a really stupid question but I can't figure out how to run maintenance scripts from my server. Do I use PHPMyAdmin to do this. I'm on siteforge and I'm not (obviously) a coder. Also what would be the particular name of a maintenance script code that I run through my database? Thanks in advance. —Zezek
 * The maintenance scripts are designed to run from the command line. See m:Help:Maintenance scripts overview --Nad 03:33, 8 September 2007 (UTC)

I just don't understand where the command line is? I'm not a programmer at all. Can you describe where that is if I'm being hosted on Siteforge?
 * You need what's called "shell access" to your host. Your ISP may not supply that level of access, you'll have to ask them about it. But their may still be some options for you even if they don't give you shell, such as PHP-Shell which emulates shell access specifically for PHP scripts. You may be best not to be dealing with the maintenance scripts unless something's actually not working though, and make sure you back up your database before you begin (you can do that with your PHPMyAdmin). --Nad 04:19, 8 September 2007 (UTC)

Thank you very much. I appreciate this level of input on such a, as I imagine, simple question.--Zezek 05:00, 8 September 2007 (UTC)

External images in articles
Is it possible to use external images in articles from e.g. imageshack.us? This will save a lot of space on my server.

—81.69.162.167 14:44, 8 September 2007 (UTC)
 * Manual:$wgAllowExternalImages should help. --Flominator 15:26, 8 September 2007 (UTC)

No sysop account present
During my installation no sysop account was generated. It is also not possible to add sysop rights to an existing user, as sysop is not in the list of available groups (only administrator, bot and buerocrat are there). As a consequence I cannot edit the navigation bar. I already tried to add all the $wgGroupPermissions['sysop']... parameters from defaultSettings.php to localSettings.php, but this had no effect at all, the group sysop is still unknown to the wiki. Any help would be gratefully appreciated! Thanks Jo Fagor —194.24.158.17 11:30, 9 September 2007 (UTC)


 * Add the line $wgGroupPermissions['user']['userrights'] = true, then promote (via Special:Userrights) yourself to 'Bureaucrat, Sysop', then immediately remove the line. Alternately, you can use a direct DB query to insert a row with the 'Bureaucrat' right for user id #1 in the usergroups table. Aaron 12:17, 9 September 2007 (UTC)

Thanks - I tried it, but this does not change anything. The problem seems to be that the group sysop does not exist at all - therefore it is not in the list of available groups and therefore I cannot promote myself to sysop. Another strange thing: I cannot see the page MediaWiki:sidebar in the list of special pages, in fact I was not able to find it anywhere! Jo Fagor

Warning: Cannot modify header information
I am trying to use the SpecialDeleteOldRevisions function but encountered the following error:


 * Warning: Cannot modify header information - headers already sent by (output started at /home/ekomrinf/public_html/ekompute/LocalSettings.php:149) in /home/ekomrinf/public_html/ekompute/includes/WebResponse.php on line 10

When I tried to install Adsense in my LocalSettings.php, I too encounter a similar error.


 * Warning: Cannot modify header information - headers already sent by (output started at /home/ekomrinf/public_html/ekompute/adsense.php:4) in /home/ekomrinf/public_html/ekompute/includes/WebResponse.php on line 10

What could be the possible cause or causes? &mdash; PM Poon 17:41, 9 September 2007 (UTC)

Data base
Hello,

After having installed a mediawiki 1.10.1, 110 Articles later I noticed that the database was already 26MB. Is there a possibility not to write Article Revisions in the text table, but to write those revisions directly on the hard disk.

If not, which functions or classes I should modify to get this feature.

How can wikipedia run an encyclopedia of 2 000 000 articles with many revisions, using only database memory ? —Pppswing 18:45, 9 September 2007 (UTC)
 * Database information is stored on the hard disk, the RAM is used as a local cache of current queries and information. --Nad 22:00, 9 September 2007 (UTC)
 * What about the text table ? I can't see any wikitext on the hard disk only image. Pppswing 03:34, 10 September 2007 (UTC)
 * It's up to your database server where on the disk the data is stored (MySQL usually stores your data somewhere like /var/lib/mysql), but you should not access these files directly, use the a proper database backup utility such as the mysqldump command or the PhpMyAdmin web application. The images you can see are part of your wiki file structure and are not part of the database storage. i.e. when you back up your wiki, you must do a database backup and also separately back up all the images files too if you want a complete backup of all information in the wiki. --Nad 02:39, 11 September 2007 (UTC)

apache2 postfix email wasnt delivering
Put your question here—BEFORE the signature! And, again, DELETE THIS COMMENT! --> —84.56.194.202 19:10, 9 September 2007 (UTC) hi @ll,

'''is used the apache2, postfix. emails cannot be send to me. why?'''

here is the log-file:

Sep 9 20:34:27 localhost postfix/pickup[5808]: AF25A2E2FCD: uid=33 from=<www-data>

Sep 9 20:34:27 localhost postfix/cleanup[5848]: AF25A2E2FCD: message-id=<20070909183427.AF25A2E2FCD@lserver>

Sep 9 20:34:27 localhost postfix/qmgr[5809]: AF25A2E2FCD: from=<info@agentur-net.de>, size=1280, nrcpt=1 (queue active)

Sep 9 20:34:28 localhost postfix/local[5850]: AF25A2E2FCD: to=<admin@agentur-net.de>, relay=local, delay=1, status=bounced (unknown user: "admin")

Sep 9 20:34:28 localhost postfix/cleanup[5848]: 10A142E370C: message-id=<20070909183428.10A142E370C@lserver>

Sep 9 20:34:28 localhost postfix/qmgr[5809]: 10A142E370C: from=<>, size=2907, nrcpt=1 (queue active)

Sep 9 20:34:28 localhost postfix/qmgr[5809]: AF25A2E2FCD: removed

Sep 9 20:34:28 localhost postfix/local[5850]: 10A142E370C: to=<info@agentur-net.de>, relay=local, delay=0, status=bounced (unknown user: "info")

Sep 9 20:34:28 localhost postfix/qmgr[5809]: 10A142E370C: removed


 * That's a problem with your postfix configuration (done in a file called main.cf probably in /etc/postfix). It's thinking that the destination is local instead of forwarding it to another mail server. --Nad 21:57, 9 September 2007 (UTC)

Distinguishing preloads from abandonned new articles
Recently I accidentally marked (and unmarked) something (Template Extension Sample!) for speedy deletion because it was an empty template and no links showed up when I checked "what links here". Fortunately someone caught the fact that it was being used as a preload. So now I'm wondering...

A page whose sole use is as a preload will have no links and no content and is indistinguishable from a page that was created with that preload and then abandoned. The former we definitely don't want deleted and the later we do. Relying on someone to remember that page X is used as a preload is seems bit high risk.

a) is there any facility for finding links used by preloads/
 * --Nad 21:09, 11 September 2007 (UTC)

ReInstall to Change Settings?
Question: do I need to reinstall the wiki to change the settings? I need to enable file uploading which I seemed to miss during the install process. Can someone help? - 71.165.236.27


 * You simply add the required settings to your LocalSettings.php file. List of options available here Manual:Configuration_settings -- Dr DBW  |  talk  00:53, 12 September 2007 (UTC)

Different logo ($wgLogo) for each namespace, and (possibly) for each custom Category?
Hi guys! I have created a few different namespaces and different categories, and just wondered if it is possible when you go to each new namespace and or category, that you can have a different logo for it, instead of using the same logo for every namespace? Thanks guys. —58.175.32.33 03:01, 12 September 2007 (UTC)
 * By "going to a namespace or category" do you mean "going to any article" but setting the logo based on what categories or namespaces the article may be in? if so, you add something along these lines to your LocalSettings.php file: --Nad 09:44, 12 September 2007 (UTC)


 * ...or then do it with CSS. If you would have a custom namespace numbered 100 (and its talk counterpart, namespace number 101), you could add this to your wiki's MediaWiki:Monobook.css or MediaWiki:Common.css:


 * -- Sayuri 09:53, 12 September 2007 (UTC)

Edit Verification
Would there be any way to have a verification process for edits?

I have created a wiki for my high school (900 students), disabled registration, integrated it with our other account systems, and restricted edits to only local machines.

However, this is still not secure enough, in the opinion of the Superintendant, as well as his superiors.

Would there be any way to allow edits, but put them 'on hold' to be later verified and applied by an administrator?

Thanks for your time. —137.164.95.15 16:10, 12 September 2007 (UTC)
 * I've thought about that before but never implemented it, the way I would go about it would be to allow the edits to go through, but make articles default view stay at the older revision until authorised to move to the current state. --Nad 22:07, 12 September 2007 (UTC)

I think the subject would be templates
I want to have a "default" article displayed whenever users and editors create a new page. In other words a pre-populated document with a certain format of categories and headings. How should I go about accomplishing this? —68.35.119.165 16:55, 12 September 2007 (UTC) Nate
 * All the text of the MediaWiki interface can be adjusted from the system-message articles which are listed in Special:Allmessages. You need to set $wgUseDatabaseMessages in your LocalSettings.php file for the edits to take effect first. The message which corresponds to the text above the edit box when creating a new page is the MediaWiki:Newarticletext article. (Note that these articles are empty unless they're changed from the default message) --Nad 22:02, 12 September 2007 (UTC)

True delete of old revisions
Hello, I would like to truly delete some revisions in order to save space in the data base. I know that the wikitext are hold on the text table. How can I truly deleted some old revisions ?

—Pppswing 19:40, 12 September 2007 (UTC)
 * Here's some special-page extensions that may help with that: --Nad 21:56, 12 September 2007 (UTC)
 * Extension:SpecialDeleteOldRevisions - deleting article history or archive for selected articles
 * Extension:Nuke - deleting articles and their history selected by author or IP
 * Extension:NukeDPL - deleting articles and their history selected by DPL query


 * Hi Nad, I tried Extension:SpecialDeleteOldRevisions but had this Warning: Cannot modify header information for my Wikimedia Version 10.0.1. However, things seem so easy with Version 10.0.0 which I had installed in both in my personal computer and in another webhost. I have been told that it is due to some blank spaces or bytecodes before the php tag in LocalSettings.php but I couldn't find any. Till date, it cannot be resolved. &mdash; PM Poon 22:56, 12 September 2007 (UTC)
 * Make sure there's non after the final php delimeter either --Nad 23:01, 12 September 2007 (UTC)

Main Page blank after installation
After I succesffully installed MediaWiki, the main page, "wiki/index.php?title=Main_Page" is not rendering - i.e. there is simply a white background present. LocalSettings.php is in the parent directory.

Any help would be greatly appreciated.

—71.235.91.201 03:16, 13 September 2007 (UTC)
 * Does the empty page have any html source? also try ensuring your php is able to output errors, and if not find where it logs them to see if maybe an error's happening but not being reported to output. --Nad 04:54, 13 September 2007 (UTC)

Splash page
How can I have a splash page with a login prompt for my Wiki? —Zezek 04:36, 13 September 2007 (UTC)
 * You could apply a different css to the login page which removes all the wiki components and applies some bg images etc --Nad 04:56, 13 September 2007 (UTC)
 * did zezek mean making the initial page load with login fields? Bouncingmolar 08:09, 13 September 2007 (UTC)

Software doesn't open images with a "+" in the name
Hello, I'm an administrator of an Italian wiki (part of the Wikia project). We have a problem in opening images that have a "+" character in the name. In particular: "http://nonciclopedia.wikia.com/wiki/Immagine:6+1498.jpg"
 * 1) I go on the "Not Categorized Images" page ("Immagini prive di categorie", in Italian),
 * 2) I click on the image named "6+1498.jpg" (in order to categorize it),
 * 3) The software tells me that "Un file con questo nome non esiste; caricarlo ora?" ("A file with this name doesn't exists, do you want to upload it now?") and the URL isn't
 * but

"http://nonciclopedia.wikia.com/wiki/Immagine:6_1498.jpg"

If I try to change manually the URL, placing a "+" where is a "_", then the software replace the "+" with the "_" and tells me the message again.

What shall I do?

PS. I use Firefox 2.0.0.6

—Heavymachinegun 12:03, 13 September 2007 (UTC)
 * The "+" character is not allowed directly in a URL because it has special meaning (it's used as a space character, which mediawiki then changes to underscore), so you'd need to replace your plus's with "%2B"'s (percent-encoded). --Nad 20:57, 13 September 2007 (UTC)
 * If I replace the "+" with "%2B" in the address-bar the software replace again with "_" :-(. I have to rename these images but they are completely unreachable for displaying, deleting and renaming. Is there a workaround? --Heavymachinegun 21:59, 13 September 2007 (UTC)
 * I guess you should also encode the percent, then. Try the link http://nonciclopedia.wikia.com/wiki/Immagine:6%252B1498.jpg -Color probe 15:59, 14 September 2007 (UTC)

Looking for Calendar/Holidaylist Extension for Mediawiki
Hello,

I´m looking for an extension like the holidaylist plugin for Twiki. link HolidaylistPlugin

Does Someone know, if there exist such an plugin?

Thanks for answering.

Best Regards.

—204.104.55.244 12:05, 13 September 2007 (UTC)
 * Have a look at the calendar extensions, some of them may do what you're looking for --Nad 21:13, 13 September 2007 (UTC)

Javascript problem
I have a problem with the MediaWiki installation. I have tried everything to make the javascript work, but failed. I have set the parameter in the Localsettings.php, I have checked the configuration in different browsers (all set to allow Java(script)), I have checked if the installation of the server and network might prevent Javascript from running. CSS in common.css and Monobook.css works fine.

Does anyone have any idea what would cause it, what should I check or enable? Info: we are working with MediaWiki 1.7.1 and I intend to upgrade to 1.11, if I figure out how. We run Windows 2003. I gave it away already: I am not an IT-specialist. Londenp 12:38, 13 September 2007 (UTC)
 * Please define problem more clearly - what parameter did you set in LocalSettings? $wgUseSiteJs? and what javascript are you having trouble running? is it absolutely all of it that's not working such as enhanced-recentchanges, edit-toolbar-buttons etc, or just additional extension scripts? --Nad 21:03, 13 September 2007 (UTC)
 * These are the parameters:

$wgAllowUserCss 	= true; $wgAllowUserJs 		= true; $wgUseSiteJs 		= true; $wgUseSiteCss 		= true;
 * 1) Css und JavaScript zugelassen?
 * enhanced-recentchanges works.
 * I have also tried Extraeditbuttons, moveEditsection, InsertButtonsToToolBar, Main Page tabber (from wikiality.com). Tooltips only without any other javascript works though. On the Dutch Wikibooks I have editted several times the Common.js and Monobook.js files and that worked well. I don't rule out programming mistakes, but copy/paste is not that difficult. Maybe you can suggest a simple code to test if the javascript for MediaWiki:Monobook.js works or not? Londenp 07:32, 14 September 2007 (UTC)

Format Standardization of Pages throughout Wiki
I'm in a corporate environment and using MediaWiki for supplementing our documentation needs. What is the best way to standardize the pages so they are consistent across pages/users. I have tried using full page templates but the Table of Contents don't render them properly. What is the best way to enforce a standard look and feel throughout the wiki? I am looking for a way to have two different documented projects by two different people have the same Wiki formatting. —65.124.141.254 17:05, 13 September 2007 (UTC)
 * If the content is just straight forward headings, bullet/number lists etc then everything should already be consistent, so is the problem with more advanced content such as tables and images? templates are probably the solution (and probably a "best practices" page to specify some documentation conventions), but I'd need to know what exactly the nature of the inconsistency is. --Nad 21:09, 13 September 2007 (UTC)

I created a template that has standard headings like say heading1, heading2.. Then under each heading I have a variable container to put the next for each project. The issue that I am having is I also want to have a Table of Contents but I have tried adding a tags to the template with no luck. The TOC doesn't render. Below is an example of my template. When I use my template I only get =heading= and not an actual rendered page. What do I need to do to have a full page template that also support a TOC? =heading1=     =heading2= —65.124.141.254 22:46, 13 September 2007 (UTC)
 * There must be a problem somewhere with your install or with the template syntax as the toc should render fine. Are all braces closed? --Nad 04:30, 14 September 2007 (UTC)

How to remove %28 %29 etc escape chars from URL?
Although in the status bar the page name appears normal e.g. .co.uk/A_(B) once you click on it it appears in the browser URL bar as .co.uk/A_%28B%29

Is there any way to change this to make it prettier? (presumably some server setting). Thanks in advance. —Jonathan3 22:21, 13 September 2007 (UTC)


 * Unfortunately, I don't think that's possible. They are escape chars, after all. However, there may be some addons for addons which will tidy up the URL bar, for example Locationbar². Of course, that's specific to only those who install it, but that's the best that can be done. -Color probe 15:53, 14 September 2007 (UTC)

User Toolbar alignment issue
I've set up a new Wiki, but at some point the user toolbar (Login, my talk, preferences etc) shifted across to the left, rather than aligning to the right. I'm unsure how this has happened, and it's showing as this on multiple PC's and different (IE and Firefox) browsers.

Help?

enigmablue@gmail.com

—61.29.55.106 00:49, 14 September 2007 (UTC)

Biggest Problem with MediaWiki (Only my opinion)
Hi guys Firstly I just want to say I love MediaWiki and use it. I know there are other options available for Document Management Systems, but Im trying my hardest to implement this as viable working document management solution. The biggest problem by far Im finding is: <b> EASE OF UPDATING DOCUMENTS AND ADDING NEW DOCUMENTS</b> For mediawiki to be adopted especially by management, it has to be simpler to update documents. Currently, I see that it is not management-user friendly. They just dont have the time to click on Edit, and understand the wiki/html syntax. If only a genius out there has come up with a form based submission to editing documents, this would solve my problem. I also would find it hard to believe that no-one has contemplated this, because in my opinion, this is the number 1 reason management would not adopt it. Im not talking about TinyMCE and those other editors, but rather a form-based editing submission system. I havent explored all options yet to make it easier yet, and would love some advice here. For a savvy mediawiki user, this is not a problem. But when you want management to start using it, it is laborious for them to click on [Edit], and understand how to insert modifications with wiki and html syntax. To the point, that it becomes so time-consuming in terms of getting it done correctly for them, that they dont want to use it. Scenario: <b>Management need to update a Progress Wiki Document, that has a custom tag<b> Management go to the wiki page and click on [Edit]. What they are confronted with is a series of lines like the following....... <NewTaskTag> Task = Time = Priority = Updated by = </NewTaskTag> <NewTaskTag> Task = Time = Priority = Updated by = </NewTaskTag> In the above, management need documentation on how to insert data, and how to use the new tag. What would be great: --Form Task: <Task Text Box where Management simply enter the task without having to write "Task = "> Time: <Time Text Box where Management simply enter the time without having to write 'Time = "> etc etc Submit: <A submit button which submits their changes> Guys! If you know of any extensions or something that would throw up a form so the users have an easier way of editing pages, that would be FANTASTIC!!!!! I think at the moment this is the NUMBER 1 reason why mediawiki is second to other document management systems, but please correct me if there is already available something to this, because I love mediawiki. Thanks. —203.5.136.234 01:23, 14 September 2007 (UTC)
 * Lower the learning curve for management. When they click on Edit, a form is presented to them in the following format:

MediaWiki has lots of ways to do this, but no easy way to find them (not yet). Also some of them require a bit of coding. Here's a few techniques:
 * empty templates embedded in preloaded wiki text - requires facility with wiki text skills and templates. No coding required. See Extension:CreateBox, Extension:CreateArticle, and Extension:Inputbox for more information.  For an example in active use, see Manual:Extensions and Template:Extension/CreateExtensionInputBox (the input box it uses).
 * special pages with forms - requires some coding skills - see Manual:Special pages
 * articles with embedded forms - requires HTML and PHP coding skills. For the HTML form, see Extension:HTMLets.  For using that form to create another page, see the  hook.

Over the next week, I'll be working on an article covering some of these techniques in more depth, please check Manual:Forms and the various articles it links to for periodic updates.

Note: each of these techniques require Extensions - use with care, extension status is currently self-assigned and represents only the opinion of the extension maintainer, not the MediaWiki development team. Egfrank 05:10, 14 September 2007 (UTC)

Hi Egfrank! And thank you SO MUCH for that information (champion). I followed your advice and looked at SemanticForms, which I have posted a question, that if this gets solved, then we will be REALLY HAPPY, as it will totally change the way our users use mediawiki. If your kind enough, or one of you gurus are kind enough to have a look at this post below (Article: "Creating a SemanticForm and using tags"), Id be really greatful. Thank you again. :>)

Infobox Template Questions
My questions are on the examples found here > http://www.vendpedia.com/infoboxhelp.gif

My questions are:

1. In "Template:Infobox Favorite", what code should I have? Just the code for the layout as shown in the first box above? Should the code from both of the exampled be inserted into this template file?

2. Does the list in box 2 example above need to be copied and pasted on each existing page I want the infobox to appear on? Is there any other way to pull this information from the template and have only what comes after the "=" signs be editable?

3. What if I down the road, I wanted the "color =" changed to "design =", would this have to be done on each page individually or can the "color =" be controlled via a template?

Thanks so much for any help and especially for your time. I have been stumped on trying to figure this out for 3 straight nights and just want to be sure I have as much control as possible over the infobox template before I move full steam ahead.

—97.100.47.148 04:34, 14 September 2007 (UTC)


 * First of all, there's a nifty parser extension called Parserfunctions, which you could install on your wiki. The most known function is #if:, which will do an if-then-else operation on the given parameters. An operation like   will conditionally show text or not, depending in the parameter "food". However, the function doesn't work great with tables. You should add Template:! to your wiki, with the only content a vertical line | . So, a piece of code could be:

{|




 * This will do what you expect. Now, on question 1, of course you can add more lines of these if you need. You could also see what Wikipedia does with infoboxes. And yes, you can add a description/example/whatever of the template between tags.
 * On number 3, there is a way around for that. In the above snippet, you would change it into

{|




 * That way, it will try both parameters, and thus it wouldn't break on all pages. Hope this helps! Color probe 15:46, 14 September 2007 (UTC)

more HTML tags
See Help talk:Formatting. —Eek 05:29, 14 September 2007 (UTC)

Creating a SemanticForm and using tags
Hi guys hope you can help. If I can get this working, this will be a MAJOR thing for us :>)

Example: Lets say I have an extension called NewTaskTag, which lets you insert a <NewTaskTag> into a wiki page, then you manually insert parameters as follows..

<NewTaskTag> Task = This task completed at.. Time = 6pm Priority = Severe Updated by = </NewTaskTag> <NewTaskTag> Task = Time = Priority = Updated by = </NewTaskTag>

The extension then renders the html into a table like format.

Because this is a manual job, I wanted to make it easier to do this.

So, Ive installed Semantic Mediawiki along with SemanticForms.

These are great, but I wanted to know if you could use a form to do the above instead of using the normal edit option with Mediawiki.

The problem I see is how will the form know how to interpret and pass the entered bits/eg. the fields to the extension, and how would you say, in a form, place a filed to say to use <NewTaskTag>?

To further clarify what Im trying to say is the following.

If I want to use the <NewTaskTag> in a wiki page, I just go to a new page, click on Edit, and enter the following:

<NewTaskTag> Task = Time = Priority = Updated by = </NewTaskTag> <NewTaskTag> Task = Time = Priority = Updated by = </NewTaskTag>

I then complete each line, eg.Task = This new task, Time = 6pm, etc etc.

What Id like to do is the following:

Create a new form that has this format:

Task: [___ Text Box for Task entry___] Time: [___ Text Box for Time entry___] Priority: [___ Text Box for Priority entry___] Updated By: [___ Text Box for Updated By entry___]

All the user would have to do is then input in the text boxes the required data, then the <NewTaskTag> would do the rest. The questions I have though are:

1)How would the form know that each text box is actually in the format: Task = Time = etc etc

And that all these text boxes are enclosed in the <NewTaskTag> tag?

2) How could you create a form that automatically enters a <NewTaskTag> tag, then the required text boxes, with each one corresponding to a parameter required for the newtasktag, then a closing </NewTaskTag>? If I can get this working by you wonderful gurus, this would totally change for the better the way we use Mediawiki!

Thanks guys in advance. —203.5.136.234 06:11, 14 September 2007 (UTC)
 * I'm not sure exactly what you're meaning, is the problem with the semantic forms way that after you fill in the form it takes you to an edit form rather than just updating the article directly? Updating template articles with an Ajax form is a basic example of using Extension:Simple Forms to populate templates in articles using Ajax forms. --Nad 09:05, 14 September 2007 (UTC)

Hi Nad. Thank you for your reply. Im just about to post a new question called "Calling an extension from a wiki form eg.SemanticForm" Thank you for your reply :>)

Adding a "+" tab or "Click here to post new comment/question"
Hi Guys hope you can help. On the mediawiki page "Project:Support desk". The tabs at the top say: project page   discussion    edit   +   history Click here to post a new question. Now when you click on "Click here to post a new question, you post it, and it displays it in a new section. Id like to know how to add this facility to our site, whereby on a page, you either or both have: 1) A "+" tab wher the project page, discussion, edit tabs are, so that when you click on the "+" tab, it allows you to create a new section in the page 2) A link on a page, such as "Click here to post a new question", so that when you click on it, it does the same as a "+" tab. Any help greatly appreciated. —203.5.136.234 06:26, 14 September 2007 (UTC)


 * 1) The [+]-Tab is there on all talk pages automatically. Not sure how it gets added to this here page though. Perhaps some JavaScript hack.
 * 2) You can use external link syntax for that: new section gives you new section


 * The tab gets added by a magic word called __NEWSECTIONLINK__ which adds the link to non-talk pages. Color probe 15:23, 14 September 2007 (UTC)

Adding a "Back to Top" link on every page.
Hi guys hope you can help. Im using mediawiki and (it doesnt matter if youre not familiar with it, but would be nice if you were :>)), and what Id like to be able to do is the following on every page of my wiki. Because my pages are really long, id like to be able to add a [Top] link next to each [Edit] link for each section.

Example:

Currently:

- Wiki Page

Section                                                             [Edit]

Section                                                             [Edit]

Section                                                             [Edit]

Section                                                             [Edit]

etc etc

- So basically, every wiki page has sections, and next to each section, on the right, there is an [Edit] button that when you click on, you can edit just that section.

What Id like to be able to do is the following:

- Wiki Page

Section                                                             [Edit] [Top]

Section                                                             [Edit] [Top]

Section                                                             [Edit] [Top]

Section                                                             [Edit] [Top]

etc etc

- So, basically in the above, To add a [Top] link next to each [Edit] link, which takes you to the top of the page you are currently on. Id like this functionality for every page of the wiki. The thing is, is that the new [Top] link has to be generated/created upon the creation of a New Section, just like the [Edit] link is for that new section.

Any help greatly appreciated. —58.175.32.115 07:49, 14 September 2007 (UTC)


 * WE had that once, it got removed as useless clutter. There's a magic key called "home" on your keyboard.... -- Duesentrieb ⇌ 08:41, 14 September 2007 (UTC)

Hi Duesentrieb... I know theres a home on my keyboard. I dont think its useless clutter, especially if your page is especially long, you have your hand on your mouse, and theres a handy top link close by. There was obviously a good reason to add this functionality in the first place. Just because it got removed by people who thought it was "useless clutter" doesnt mean that those that like it think the same :>)
 * Whether or not it's useful, it does raise a slightly interesting question of how exactly would one go about changing those links purely from LocalSettings or CSS? --Nad 09:07, 14 September 2007 (UTC)
 * According to the MW1.11 release notes, there are now two new hooks for manipulating section edit links, EditSectionLink and EditSectionLinkForOther

Calling an extension from a wiki form eg.SemanticForm
Hi everyone! What Im trying to do, but dont know how or if its possible, is to call an extension from a form eg.Semantic form, so that for example, lets say you created an extension called Roadmap, that allowed you to insert a tag in a wiki page, called <Roadmap>, with parameters,wondering if there was any way to build a form, where each field you created was a parameter of the <Roadmap> tag. This way, users wouldnt have to "guess" so to speak with what options were available, and it would eliminate the need to write up doco on how to use the extension, as the fields would be right there in the users' face.

So basically, instead of doing the conventional thing as follows...... <Roadmap> etc etc </Roadmap> You could call the Roadmap extension (somehow) from a form, that has the following structure: RoadMap form......................
 * Item1 = sjdlfjsd
 * Item2 = sjdlkfjsjfl

Item1:  <_______user inserts data for Item1 here___> Item2:  <_______user inserts data for Item2 here___> etc etc In the above form, the labels Item1: and Item2: etc, are on the form itself, so the user doesnt have to type in Item1=, Item2= etc. All they have to do is enter what data they want in the text box next to that Item label. By doing this, they dont have to remember how the structure of the extension tag is constructed or what options to use. It is right there. Somehow the Item labels would have to map to each extension's parameter/option. When the user clicks on save or submit, the extension is called, and translates each field or maps each field entered on the form to the appropriate extension parameter. If you could do this, it would save a lot of time :>)

Thank you. —58.175.32.115 09:27, 14 September 2007 (UTC)