Hello Ashar,
does it make sense to assign a class to an anchor? Classes only make
sense for links, or do I miss something?
Regards,
jens
On Tue, Mar 16, 2004 at 02:25:12PM +0000, Ashar Voultoiz wrote:
> Update of /cvsroot/wikipedia/phase3/includes
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10480/includes
>
> Modified Files:
> Parser.php
> Log Message:
> Fix source forge bug 803693
>
> When a title is given in a == == headline, the html was incorectly generated as:
> <a name="sectionname"></a><a class="internal">link</a>
>
> It now generates:
>
> <a class="internal" name="sectioname">link</a>
>
> Index: Parser.php
> ===================================================================
> RCS file: /cvsroot/wikipedia/phase3/includes/Parser.php,v
> retrieving revision 1.25
> retrieving revision 1.26
> diff -C2 -d -r1.25 -r1.26
> *** Parser.php 16 Mar 2004 03:58:36 -0000 1.25
> --- Parser.php 16 Mar 2004 14:25:09 -0000 1.26
> ***************
> *** 1290,1300 ****
> }
>
> - // Put it all together
>
> ! $head[$c].="<h".$level.$matches[2][$c]
> ! ."<a name=\"".$anchor."\">"
> ! .$headline
> ! ."</a>"
> ! ."</h".$level.">";
>
> // Add the edit section link
> --- 1290,1309 ----
> }
>
>
> ! // the headline might have a link
> ! if(preg_match("/(.*)<a(.*)/",$headline, $headlinematches))
> ! {
> ! // if so give an anchor name to the already existent link
> ! $headline = $headlinematches[1]
> ! ."<a name=\"".$anchor."\" ".$headlinematches[2];
> ! } else {
> ! // else create an anchor link for the headline
> ! $headline = "<a name=\"".$anchor."\">"
> ! .$headline
> ! ."</a>";
> ! }
> !
> ! // give headline the correct <h#> tag
> ! $head[$c].="<h".$level.$matches[2][$c] .$headline."</h".$level.">";
>
> // Add the edit section link
>
> _______________________________________________
> MediaWiki-CVS mailing list
> MediaWiki-CVS(a)wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-cvs
>
>
Brion, Tim or any other devel,
Tim set me a fr2 db on suda to test the fr wiki in utf-8 instead of ISO8859-1. And he set me a fr2.wikipedia.org
But I have some pbs, fr2 seem set in french but when you go on http://fr2.wikipedia.org/wiki/Special:Specialpages it is set to english !
And the Wikipédia french namespace is not seen, it is set to english : Wikipedia (without é)
I think it is a software pb, could you have a look please ?
And if you see some bug in UTF-8 please ask :)
Shaihulud
I tried using In-place web install of mediawiki-1.2.0rc4.tar.gz on Win2k, it is said that the installation is successful, and the first page is OK ,but when i try to Edit any page, lots of errors:
Warning: session_start(): open(/tmp\sess_a12e331b155be7b080c8a358361d0dd1, O_RDWR) failed: No such file or directory (2) in C:\myweb\mediawiki\includes\User.php on line 146
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\myweb\mediawiki\includes\User.php:146) in C:\myweb\mediawiki\includes\User.php on line 146
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\myweb\mediawiki\includes\User.php:146) in C:\myweb\mediawiki\includes\User.php on line 146
........................
Somebody said it's because my PHP is misconfiged, change session.save_path to a path that exists. So I set
session.save_path = C:\win\temp
and restart apache, but nothing changed, still lots of warnings on the page.
I'm no genius with PHP so the following could be the mutterings of a
deranged hermit, but my path is set in php.ini as
session.save_path = /php/sessiondata
I also needed to specifically grant the user I run the web server as
permissions to that directory. (Right click, Properties, Security, add or
select the web server user, ensure they have read/write permissions to the
directory.)
I don't know if / is drastically different from \ on a Win32 platform under
PHP. My gut feeling is no, your path is correct but your permissions
aren't. You can specify the drive letter as well, i.e.
session.save_path = c:/php/sessiondata
The second and third errors are caused by the first. The first error causes
premature output of HTML - the error message. PHP isn't finished
initializing the connection and continues to attempt to send header
information, causing the 2nd and 3rd error.
Brian Schkerke
Lead Developer
NETCO, Inc.
http://www.netcotitle.com
(636) 925-8657
-----Original Message-----
From: sam [mailto:samzhao2002@163.com]
Sent: Wednesday, March 17, 2004 1:41 AM
To: schkerke
Subject: [bmschkerke] [Wikitech-l] Question about Install on Win2K
I tried using In-place web install of mediawiki-1.2.0rc4.tar.gz on Win2k, it
is said that the installation is successful, and the first page is OK ,but
when i try to Edit any page, lots of errors:
Warning: session_start():
open(/tmp\sess_a12e331b155be7b080c8a358361d0dd1, O_RDWR) failed: No such
file or directory (2) in C:\myweb\mediawiki\includes\User.php on line 146
Warning: session_start(): Cannot send session cookie - headers
already sent by (output started at C:\myweb\mediawiki\includes\User.php:146)
in C:\myweb\mediawiki\includes\User.php on line 146
Warning: session_start(): Cannot send session cache limiter -
headers already sent (output started at
C:\myweb\mediawiki\includes\User.php:146) in
C:\myweb\mediawiki\includes\User.php on line 146
........................
Somebody said it's because my PHP is misconfiged, change session.save_path
to a path that exists. So I set
session.save_path = C:\win\temp
and restart apache, but nothing changed, still lots of warnings on the page.
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)Wikipedia.org
http://mail.wikipedia.org/mailman/listinfo/wikitech-l
I (and the other sysops on WikipediaNL) recently got a message from Ilse, which
is an important Dutch search engine (actually, the largest one that is specifically
directed towards Dutch content). They wanted to put nl.wikipedia.org in their
search engine, but had problems with the 15 second crawl-delay specified in our
robots.txt. And indeed, when we're talking about the bot of a search engine
spidering Wikipedia, a delay of 15 seconds between visits seems rather exessive.
If a search engine would like to crawl the English Wikipedia that way (and we would
like to be in the various search engines, don't we?), it would cost them about
2 months of 24-hour days to do so, probably more (this was on a rather conservative
estimate on the number of pages). To me this sounds like too much. I would thus
want to ask to consider a considerable reduction of the crawl-delay. Alternatively,
we could do so for a 'whitelist' of trusted User agents.
Andre Engels
Hello,
I saw a feature request at sourceforge asking to stop expanding wikilinks
like [[link (something)|]] to [[link (something)|link]].
http://sourceforge.net/tracker/?func=detail&atid=411195&aid=914166&group_id…
As stated in the feature request, I believe that it prevents non
experimented user to learn a great shortcut offered by the software, it
will also save a few bytes in the database, but mainly will render the
source text a bit easier to read ...
What are your opinions ? Should we stop expanding it ?
cheers,
--
Ashar Voultoiz
http://fr.wikipedia.org/Utilisateur:Hashar
do not send mail to listme(a)listme.dsbl.org
I'm playing with MediaWiki code, and have added the ability of parsing
HTML-like tags: for example, <red>text</red> would display text in red color.
Is this interesting enough to be included in the code?
This was mentioned a month ago in the "support for <span> tags" thread. Aside
from being easier to remember and type then <font color=red> it would also
produce HTML without now deprecated <font> tags.
I also have a question: when $wgUseDatabaseMessages is set to false, use of
{{msg:}} tags is disabled as well. Is this intended? If yes, why? I would
like to fix this, but cannot figure out how.This problem is apparent on
Serbian and, i guess, other non-English Wikipedias: LanguageSr.php is not
copied to database, so database messages must be disabled, but that forces
{{msg:}} tags not to work.
So, I amended the Development policy on meta:
http://meta.wikipedia.org/wiki/Development_policy
...to the effect of: "Document new features in the User's Guide."
Every programmer in the world is too damn busy coding to communicate
what they're doing, true. But if you add a feature to MediaWiki, you
are the main person who knows about it.
We have a pretty darn good users' and admins' guide now. The more we
keep it up-to-date, the better. It's quite easy to add a little bitty
wiki page to meta.w.o saying what the feature is and how it works. It
doesn't have to be any more complicated than what you put in a
changelog summary. Others can then find your features, test em out,
expand the doc, etc.
~ESP
--
Evan Prodromou <evan(a)wikitravel.org>
Wikitravel - http://www.wikitravel.org/
The free, complete, up-to-date and reliable world-wide travel guide
Has there been any discussion of prefixing the MySQL table names
to avoid table name collision for those who only have access to
one MySQL database and use other MySQL applications?
For example, Moveable Type uses "mt_", pMachine uses "pm_", and
they also allow one to choose an installation-defined prefix.
I'm new to the list, and did a quick search on the nntp gateway,
and couldn't find this question asked, but it may have been
previously discussed.
thanks
Login successful
>From Wikipedia, the free encyclopedia.
A database query syntax error has occurred. This could be because of an
illegal search query (see [
http://en.wikipedia.org/wiki/Wikipedia:Searching ]Searching Wikipedia), or
it may indicate a bug in the software. The last attempted database query
was:
UPDATE user SET user_name= 'Nick Pisarro, Jr.', user_password=
'b363d2206727ebb2b2894e1b40ee5085', user_newpassword= '', user_email=
'nickp(a)aperture.com', user_options= 'quickbar=2 underline=1 hover=1
cols=80 rows=25 searchlimit=20 contextlines=5 contextchars=50 skin=0
math=1 rcdays=7 rclimit=50 highlightbroken=1 stubthreshold=0
previewontop=1 editsection=0 editsectiononrightclick=0 showtoc=1
showtoolbar=1 date=1 searchNs-1=0 searchNs0=1 searchNs1=0 searchNs2=0
searchNs3=0 searchNs4=1 searchNs5=0 searchNs6=0 searchNs7=0
rememberpassword=0 nickname=NickP timecorrection=-5:00 searchNs8=0
searchNs9=0 disablemail=0 justify=1 hideminor=0 usenewrc=1
numberheadings=0 editondblclick=0 editwidth=0 watchdefault=0
minordefault=0 nocache=0', user_rights= '', user_touched= '20040315115339'
WHERE user_id=35903
from within function "User::saveSettings". MySQL returned error "3: Error
writing file './suda-bin.069' (Errcode: 28)".
-------------------------------
MediaWiki: 1.2.0rc3
[ http://www.php.net/ ]PHP: 4.3.4
[ http://www.mysql.com/ ]MySQL: 4.0.17-standard-log
I only got this error once. When I logged in again, I didn't get any error.
Nick Pisarro