I made a script, based on importTextFile.inc, to automatically create or
edits pages. The core function is this:
function editPage(&$title, $text, $comment)
{
$article=new Article($title);
$article->doEdit($text, $comment);
return "OK";
}
Almost everything is working well. The pages are created, they appear on
Recent Changes, they can be read and edited, and so on.
The problem is that templates don't seem to work very well.
If the page contains a template like {{test}}, and the template "test"
contains a category definition, what happens is that the category is shown
on the footer of the new page. But when I open the category page, the new
page is not listed there. It only will be listed if I edit and save the page
on the browser.
This doesn't seem to be cache related because caching is disabled on my wiki
and because I used action=purge and cleared the browser cache as well... And
even if I edit and save the category page, the new page is not shown there
until I edit and save the new page...
I searched the MediaWiki site and the list archive but could not find
anything on this except for the solved "Bug 2483: Special:Import needs to
run link updates on created pages", that is similar.
I'd be very grateful if someone could point me to some information on how to
solve this problem.
I want to suggest to enhance the way link texts are generated, by introducing directives to links. This is esp. important for subpage links.
[[link|text|<directives>]]
where directives are 'l' - lower case, 'c' - capitalize, 's' - subpage. multiple directives can appear.
so
[[../Some Page||ls]] will give the text as 'some page'.
Thanks,
ittay
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd(a)qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
Hello all,
I've just tried to install MediaWiki v1.9.1 on one of our servers (Apache on Windows 2000). However, turns out this server is running PHP4 only at the moment.
Thus I'll have to install PHP5 - but without endangering the PHP4-application already running on that server.
Is there an easy way to make PHP5 be used only for the .../HTDOCS/WIKI/ folder? (Renaming all wiki-related files to .PHP5 would probably cause a lot of trouble.)
I believe the following thread might be what I'm looking for: http://lists.wikimedia.org/mailman/htdig/mediawiki-l/2006-July/013713.html
Unfortunately, I don't fully understand those instructions - and I'd rather ask before messing with a live system...
PHPINFO() tells me that the MySQL "Client API version" is 3.23.49 - I guess that'll have to be upgraded as well!? But in contrast to PHP, MySQL is fully compatible with earlier version so it shouldn't break anything - right?
Any help would be greatly appreciated!
-- F.
PS: I hope this is a valid issue for this list. Unfortunately, I can't request help from our IT department, as this wiki project not "officially recognized" yet - and won't be until it's properly set up and ready to prove its worth (kind of a catch-22 there)...
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
I am quite new to PHP server and MediaWiki.
I am running MediaWiki 1.8.2 with PHP 5.2.0 (isapi) and MySQL
4.1.21-community-nt, Microsoft IIS V6.0 on a Windows 2003 server.
When logging in to MediaWiki, I get a confirmation screen saying user
succesfully logged on (in Danish). But even I immediately do anything
like clicking My preferences, I get the message User not logged in. When
I log in clicking Remember me (also translated from Danish) I am able to
see My preferences, but changing my password or other settings to my
Wiki profile, does not get saved to the database.
I imagine that it is something about a session cookie that times out,
but I can't figure out where to change it.
Some Internet pages describes how to preserve or aviod preserving the
session when changing between different MediaWikis on the same host, but
this is not the case here. Also, some pages describes how to change
php.ini, but as far as I can see this is in order.
In php.ini
- the session.cookie_lifetime = 0 which is suppose to be until browser
restart.
- session.gc_maxlifetime = 1440
Where can I change the timeout or is it some kind of other problem with
the setup?
Thanks, Henrik
Hi Everyone!
I'm looking for help with a project I started a few years ago.
BluWiki is a free wiki host, which was started to allow anyone to
publish online. There's no censoring or annoying advertising. Its
still pretty small, with an average of maybe ~300 edits / day.
However I think it has a lot of potential. I'm looking for some
experienced Wikipedians to help me improve and maintain the project.
No technical knowledge required...
If you're interested, shoot me an email.
Although BluWiki isn't making any money, I can try to compensate you
non-financially. This might include:
- Rights to my first born son
- Server space / shell access on a dedicated Gentoo machine w/ plenty
of spare resources (please don't abuse..)
- A percentage of any donations to BluWiki
- A major role in the future direction of the project
- Anything else you can think of that's fair...
Thanks!
-s
Hi,
I'm hoping someone can shed some light on my problem.
I have MW running on Win 2K3, MySQL, with IIS and PHP 5.2.0 am getting an error message when a user tries to have their password mailed to them. It mails fine and they receive the email, there just happens to be an error thrown by the process.
The error message is as follows:
Login error:
Error sending mail: mail() [function.mail]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Halifax' for '-4.0/no DST' instead
I've tried setting the time zone in LocalSettings.php and DefaultSettings.php and in both cases when I set the timezone the wiki fails to load. Does anyone know where I'd set the time zone to fix this?
I'm not intimately familiar with IIS or W3K but had other reasons for deciding that was the best platform to run this on.
Any help would be greatly appreciated.
Thanks,
Dylan
--
Dylan Boudreau
SupportSoft, Inc.
This e-mail message may contain confidential information. If you are not the intended
recipient, you may not use, copy, or disclose to anyone information contained in this
e-mail. If you received this message by mistake, please advise the sender by reply e-mail
and delete this message. Thank you.
Hello,
I'm very pleased to learn that my university department has put in place a
MediaWiki server for use in our courses, IT support, etc. However, I'm
writing to ask for advice about a good "pattern" for name spaces in such an
environment, as our technicians prefer to just let us "have at it." I have
seen a few live wikis at universities, and there doesn't seem to be a set
pattern, per se, on how to do this.
As an instructor, I've already set up a few wiki pages for use in the
context of one of my courses, using MediaWiki on a free web site. During
this trial, I realized a few problems. First, certain terms have definitions
that are relative to my course. For example, I teach an intro to software
design (LOG120 is its course code), and I expect my students to learn the
very basic concepts of "coupling" and "cohesion". If one looks up the global
(wikipedia) definitions for these terms, they may or may not be useful in
the context of my course (not to mention that software engineering is a
"young" field and we don't all agree on terms). So, this means I have to
prefix my pages with a context of my course (project). Second, I had to be
very careful while rapidly creating my pages on this site not to "steal" the
global definitions (which happens if I forget to prefix a link with my
namespace and I accidentally create it.)
So, the pages for Coupling and Cohesion I'd like to have for my course have
a particular context, which implies I need to have a name space that's
unique to my course, e.g., LOG120, so I'd have LOG120:Coupling and
LOG120:Cohesion.
Here are the problems I see with this approach, and I'd like to get some
feedback from this list before we spend too much energy in the wrong
direction:
1) From what I understand about MW software, there are only 16 name spaces
allowed, and my department has more than 30 courses. Assuming every
professor jumped on board with the wiki approach (which is unlikely), it
seems we'll run out of name spaces with this strategy of one per course. If
we don't use course-specific contexts, I can foresee disagreements about
content on pages for different contexts. It could be interesting perhaps to
have one context, but with course-specific information separated on that
page. Professors aren't going to be agreeing on definitions, because of the
principle of academic freedom.
2) On a given page, most of the links will have to be prefixed with the
course's name space. This seems to be a lot of redundant prefixing, and runs
the risk of an errant global page being created when done hastily. Is there
a way in MediaWiki pages to define a "default" name space prefix?
3) What about the basic concepts of "Talk:", etc. for MW layout? It seems
like if I use a name space convention as stated above, Talk:Cohesion would
not be about my course's version of Cohesion, but rather the general
meaning. This is ambiguous.
An obvious alternative configuration would be a wiki server for each course,
but that seems like overkill for the technicians to maintain. The opposite
is to not have any course-specific namespaces, and use prefixes with a "."
like LOG120.Coupling - again, this seems like less user-friendly from the
standpoint of editing of the links.
Looking forward to any feedback, advice or examples of well designed MW
sites used in a teaching context. Regards,
Cris Fuhrman
--
Christopher Fuhrman
Professeur
Département de génie logiciel et des TI
École de technologie supérieure (ETS)
http://profs.logti.etsmtl.ca/cfuhrman/
+1 (514) 396 8638
I want to show the TOC of another page.
Specifically, I want to just get the headers and show them, with links to the actual contents in the other page. My use case is that each page I refer to is a FAQ where each question has its own section. I want to create a master FAQ that will include the headers of the others.
Thanks,
Ittay
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd(a)qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
It seems to me that the best place to do this might be with an Apache
rewrite rule or two -- simply translate mixed case into lower case.
:::: When a place is lifeless or unreal, there is almost always a
mastermind behind it. -- Christopher Alexander
:::: Jan Steinman "http://www.EcoReality.org"
Hi there,
Certain documents we are creating have to be available in at least two
languages.
In order to make translation easy and ensure that it's always up to
date, my favorite solution would be to have a structure like this:
<p lang="de">Dies ist ein Absatz.</p>
<p lang="en">This is a paragraph.</p>
<img src="img/de/menu1.png" lang="de" />
<img src="img/en/menu1.png" lang="en" />
<p lang="de">Dies ist ein weiterer Absatz.</p>
<p lang="en">This is yet another paragraph.</p>
That is, have all the languages on the same page, paragraph by paragraph.
However, there should be an option to only show one particular language
at a time.
While this should be easy to do with CSS/JS (just set elements with a
certain attribute to "display: none;"), I have no idea how to implement
such a switch for a wiki page.
It's probably very simple, so I just need to be pointed in the right
direction.
Has anyone done something like this before? I'd greatly appreciate some
tips!
-- Frederik