Hello!
I need a rescue 911 in here. Here it comes..
Everytime a new article is entered, I need to save the categories that the
user has entered(if there will ever be a category and it is not existing
yet). So what i did is i create a function named saveCategory, here is the
code
function saveCategory() {
$ot = Title::newFromText( $cat, NS_CATEGORY );
if ($ot->getArticleID()==0){
$article = new Article( $ot );
$article->insertNewArticle( 'sample text', '', false, false, false,
'');
}
}
I call this after
$this->mArticle->insertNewArticle( $this->textbox1, $this->summary,
$this->minoredit,
$this->watchthis, false, $isComment);
in the EditPage.php
The good news is, I can save the pages and even the category pages. The bad
news is, in the category page, I cannot see the link from the article that
it came from but i can see the text i put in. In the article page,
everything is shown even the categories i put. The link only shows in the
category page if i edit and save the article page again.
So my wild guess is that, I can save the article in the page table and
revision table except for linkpages. If this is correct, then why? What is
my fault in here? If you have other way to do this, i'l be willing to
listen. I just need this to work! Please help :(
--jaro
Hello everybody.
Server platform: WinNT 4.0 SP6
Server software: DeveloperSide.NET's Web-Server Suite, made of:
* Apache 2.0.54
* Perl 5.8.7
* mod_perl 2.0.1
* PHP 5.0.5
* MySQL 4.1.14
o DBI
o DBD::mysql
o DBD::mysqlPP
o Net::MySQL
* phpMyAdmin 2.6.4-pl1
* analog 6.0
Server up and running, all tests passed.
Trying to install MediaWiki 1.5.3
Had to change php.ini in order to use php_mysql.dll instead of
php_mysqli.dll. This solves a first problem (MediaWiki installation script
couldn't call successfully any mysql functions). But now there is a problem
remaining:
<MediaWiki installation results>
MediaWiki 1.5.3 installation
Please include all of the lines below when reporting installation problems.
Checking environment...
* PHP 5.0.5: ok
* PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
* Have XML / Latin1-UTF-8 conversion support.
* PHP is configured with no memory_limit.
* Have zlib support; enabling output compression.
* Neither Turck MMCache nor eAccelerator are installed, can't use object caching functions
* GNU diff3 not found.
* Couldn't find GD library or ImageMagick; image thumbnailing disabled.
* Installation directory: D:\www\webroot\wiki
* Script URI path: /wiki
* Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider changing it manually.
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in D:\www\webroot\wiki\config\index.php on line 471
* Trying to connect to MySQL on localhost as root...
o Connected as root (automatic)
* Connected to 4.1.14-nt-max-log; enabling MySQL 4 enhancements
* Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider changing it manually.
* Database wikidb exists
* Creating tables... using MySQL 3/4 table defs...
Warning: fopen(../maintenance/tables.sql) [function.fopen]: failed to open stream: No such file or directory in D:\www\webroot\wiki\install-utils.inc on line 95
Could not open "../maintenance/tables.sql".
</MediaWiki installation results>
It seems that something is going wrong with the paths (look at the warning
after chdir). Maybe the problem has to do with having the wiki directory in
D:\ insetad of C:\ ? The structure is:
D:\www
D:\www\Apache2
D:\www\mysql
D:\www\php5
D:\www\webroot ==> http://myserver
D:\www\webroot\wiki
etc.
I have checked that D:\www\webroot\wiki\maintenance\tables.sql exists
Any ideas?
Many thanks
--
Saludos,
Ignacio González Torquemada
ELIOP, S.A. Departamento de Productos
http://www.eliop.es mailto:igtorque@eliop.es
Tel. +34 91 383 57 47 Fax. +34 91 302 92 49
Hello, i am MW newbie.
I want to set my MW 1.5.3 like this:
- only sysop can create new users
- annonymous and users can just log-in, can not create new users
Is it possible? How can I set it up?
Thanks.
Dominik Smatana
PS: Sorry for my english.
Okay I've got an answer. Yes, it is an O/S setting. If you change the
timezone using the Windows control panel it changes the timezone that is
displayed by the wiki. This makes sense.
The name that Windows uses for the timezone is a registry setting. I
can't tell you exactly which registry setting because I did a blanket
search-and-replace to try to get it working, but there were only about 3
or 4 matches.
The change to the registry setting doesn't take effect unless you change
the timezone in the control panel and change it back again. (It might
also take effect if you restart the computer, I didn't try that.)
So there're two steps: search and replace the offending time zone name
in the registry and cycle the time zone in the control panel. After
that, like magic, the name reported by the wiki changes.
I'm sure it's much easier on Unix!
Ben
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Rob Church
Sent: Monday, 12 December 2005 1:25 p.m.
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Time zone name
If it isn't a system message, chances are the OS *does* supply it.
Check Special:Allmessages and see.
Rob Church
On 11/12/05, Ben Arnold (DSLWN) <BenA(a)datacom.co.nz> wrote:
> On my installation the timezone in the ~~~~ signature is displayed as
> "(New Zealand Daylight Time)". This is pretty cumbersome. I'd prefer
> it display "(NZDT)" or no timezone at all. I've tried Googling
> mediawiki time zone but all the hits are around setting the offset,
not the name.
> I've also tried searching the MediaWiki installation for a
> configuration file with timezone names in it, but no luck.
>
> I'm using MediaWiki 1.5.1, PHP 4.3.8, MySQL 4.0.20a-debug on Windows
> XP Professional.
>
> In my LocalSettings.php, I have the following setting:
>
> $wgLocalTZoffset = 13;
>
> I guess there must be a mapping somewhere from 13 to "New Zealand
> Daylight Time", although I don't know how it knows I'm not using Tonga
> Standard Time. Maybe the O/S supplies the timezone names. Any ideas?
>
>
> Ben
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On my installation the timezone in the ~~~~ signature is displayed as
"(New Zealand Daylight Time)". This is pretty cumbersome. I'd prefer it
display "(NZDT)" or no timezone at all. I've tried Googling mediawiki
time zone but all the hits are around setting the offset, not the name.
I've also tried searching the MediaWiki installation for a configuration
file with timezone names in it, but no luck.
I'm using MediaWiki 1.5.1, PHP 4.3.8, MySQL 4.0.20a-debug on Windows XP
Professional.
In my LocalSettings.php, I have the following setting:
$wgLocalTZoffset = 13;
I guess there must be a mapping somewhere from 13 to "New Zealand
Daylight Time", although I don't know how it knows I'm not using Tonga
Standard Time. Maybe the O/S supplies the timezone names. Any ideas?
Ben
Hi,
I have installed MediaWiki 1.5.2, and run the configuration script. It said it could not write the file LocalSettings.php, and printed the file itself. I have pasted the text into LocalSettings.php, as suggested. Then moved it from the config folder into the wiki root folder. And now I have no idea, what's next? If I go to that server in my browser, the URL's transformed into http://server/index.php/Main_Page, and I get the HTTP 404 page. How can I create the very first page? What should be its name and where should I place it? Or is there some configuration step missing?
Can you give me some help?
Thanks a lot,
Peter
hi, i'm new in this mailinglist;
i want to write a php-bot for the german wikipedia;
i don't think it's possible the get direct access to the databases,
not only for reading;
so my question is:
what is the most direct access for:
* reading the source of a acticle
* writing/uploading a edited source
* knowing of a artice is a redirect, kategorie or something else
if there is no other possibility i can also access the the editing-
pages in wikipedia and extract the source of a page from there,
but i hope there is also an other way!
please let me know,
thanks, johannes
I am very new to wiki's and I am trying to set up a multiple language
one. I can not get the sidebar to change to the appropriate languages
etc when you select them.
Can anyone help me with a simple set through of what I should do please.
Laurie
Hi there, I managed to set up a wiki, but somehow the Sysop didn't
make it in the user list, it is completely empty. Does anyone know
how this is possible, or is it common behavior? Should I enter it
through the MySql database? I did however fill in the name and
password while installing...
Thanks, Rob