I've been working on making a set of extensions to make a table
editing helper, which I'm tentatively calling TableEdit. The help
page for the prototype is at:
http://colimod.org/colipedia/index.php/Special:TableEdit
...with screen captures!
The basic idea is that you can put <newTableEdit/> in your markup,
and an extension will replace it on save with a link to a special
page that can create the table by adding and deleting columns and
rows. These are stored in an external mysql db with two tables. One
keeps track of the tables in each page and the other keeps track of
the content of each row. The row data is just a string of values
delimited by '||' so it can be dropped right into the table markup.
In the prototype, you can put a list of column headings between
<newTableEdit>list</newTableEdit>, or you can specify a location for
a list of column headings in a Template page.
Individual rows can be editable by all or only by the creator and
admins. This doesn't stop editing in the page itself unless you
combine it with ProtectSection or some other protection mechanism.
What I don't have working yet is:
- Sorting
- Inserting between existing rows and columns
- Parsing the data back out of the wiki text.
and as usual, the code could probably be cleaned up a lot. I'll try
to post it to mediawiki as experimental this weekend, but I wanted
people to see the doc page.
Jim
p.s. The wiki it's on doesn't allow anonymous registration or
editing, so you won't be able to test drive it in place.
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
How can I show a " " in source code? If I try something like
this, the "nbsp" is not shown; a whitespace is shown instead.
<pre><nowiki>
test = " "
</nowiki></pre>
<pre>
test = " "
</pre>
Results:
test = " "
test = " "
Obviously the " " is being interpreted as a HTML char; maybe the
"pre" tag should html-encode it.
Hello,
I am running mediawiki 1.9.0 on mysql 5.0 and php 5.2.1, and is working fine.
I would like to expand the wiki site (internal) to have forums for our users to post questions. Are there extensions available? What do I need to do to get that setup.
Jim,
I tried that, but unless I'm just way off base, that method greatly
increases the amount of code that has to be maintained in the extension,
which increases the chance of compatability issues with future MediaWiki
versions.
I'd prefer to keep it as simple as possible.
Lisa Ridley
> ------------------------------
>
> Message: 2
> Date: Sat, 3 Mar 2007 10:31:46 -0500
> From: Jim Hu <jimhu(a)tamu.edu>
> Subject: Re: [Mediawiki-l] Hook request for EditPage.php
> To: MediaWiki announcements and site admin list
> <mediawiki-l(a)lists.wikimedia.org>
> Message-ID: <6FDD1233-DE0B-4821-A53E-71EF339A458D(a)tamu.edu>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Can you just Hook at AlternateEdit and put your functionality in a
> class that subclasses EditPage?
> =====================================
> Jim Hu
> Associate Professor
> Dept. of Biochemistry and Biophysics
> 2128 TAMU
> Texas A&M Univ.
> College Station, TX 77843-2128
> 979-862-4054
>
>
> On Mar 3, 2007, at 8:39 AM, Lisa Ridley wrote:
>
>
>> I'd like to request a hook addition for EditPage.php.
>>
>> I'm working on some extensions to modify the user interface for the
>> edit
>> page in MediaWiki (specifically, to present the user with data form
>> fields in addition to the standard Mediawiki free-form edit box. The
>> information captured in the data fields will be saved in the article
>> created in a template format and displayed using a template
>> specific for
>> the data). EditPage.php has a hook at the very beginning of the
>> source
>> code; however, I'd like to leverage the existing code as much as
>> possible without having to use an "include" statement or recreate the
>> code in my extension. I'm currently modifying EditPage.php to place a
>> hook at the end of the EditPage::edit() function, right above this
>> line:
>>
>> $this->showEditForm();
>>
>> That is similar in function to the one at the beginning of the
>> function:
>>
>> if ( ! wfRunHooks( 'AlternateEdit', array( &$this ) ) )
>> return;
>>
>> but calling it 'AlternateEditForm' instead. It functions in a
>> similar
>> manner. This allows me to leverage the existing code in
>> EditPage:edit().
>>
>> Ideally, I'd like to place this even further down, but I haven't
>> found a
>> better place for it yet.
>>
>> If this could be formally added to the MediaWiki source code without
>> requiring users to modify it, that would be wonderful!
>>
>> Thanks for your consideration .
>>
>> Lisa Ridley
>>
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l(a)lists.wikimedia.org
>> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
>
>
Hi all,
I notice that 1.9.2 added a new table "redirect", which is populated
during upgrade / reinstall.
Now, how do I update the redirect table on demand? (to do so would, I
presume, be recommended after importing new data into the "big three"
tables page,revision,text).
Or, how important is it to keep the redirect table up to date?
Regards,
// Rolf Lampa
What would be the ill effects of disabling cookie check? Like this:
$wgDisableCookieCheck = true;
It seem I'll have to do this on a special scenario. We need to provide
a way to open a specific wiki page from a desktop application
(context-sensitive help on the wiki). We also need to authenticate the
desktop user on the wiki.
What we're doing now is to redirect to an auxiliary web page that in
background fakes a post to Special:Userlogin and outputs the HTML
returned by the login form.
This trickery works well, with the exception that apparently the login
cookie is not set, or is set on a different context. Anyway, in
function processLogin(), hasSessionCookie() returns false and this
causes a redirect to the home page of the wiki.
We're circumventing it by disabling cookie check.
The end result is that the user is authenticated, his user name
appears on the wiki, and everything seems to work well.
But I wonder if there is any side effect of not having the cookie set.
After opgrading to php 5 my imageupload wont work.
The MIME type is set to application/x-archive and the height width to 0x0.
If I change these settings manually in the database it works fine.
Any solutions ?
MediaWiki: 1.9.3
PHP: 5.2.1 (apache2handler)
MySQL: 4.0.17-log
Hi all,
I would like to generate a sitemap using a hierarchy deducted from the links to each document.
Example:
Document A contains links to B and C.
Document C contains a link to D
I'd like the sitemap to be generated like this:
+ A
----B
---+C
---D
Does anyone know of an extension or something that provides such a sitemap?
Any help is very much appreciated!!
Many thanks,
Ger Apeldoorn
I've got a Excel spreadsheet containing two columns of data - the
first is a list of names and the second is plain text data associated
with each name - that I would like to import into my MediaWiki
database, creating articles for each name with the data in the second
column as the content for each article. Is there a way to do an
import like that? All I've been able to find is Special:Import which
only works with the XML files created using Special:Export. I thought
about reformatting my data in the XML format used by the
Special:Export function but I don't know how I would handle some of
the fields like ID and Revision ID which I assume are unique and
automatically assigned.
-McD-
I'd like to request a hook addition for EditPage.php.
I'm working on some extensions to modify the user interface for the edit
page in MediaWiki (specifically, to present the user with data form
fields in addition to the standard Mediawiki free-form edit box. The
information captured in the data fields will be saved in the article
created in a template format and displayed using a template specific for
the data). EditPage.php has a hook at the very beginning of the source
code; however, I'd like to leverage the existing code as much as
possible without having to use an "include" statement or recreate the
code in my extension. I'm currently modifying EditPage.php to place a
hook at the end of the EditPage::edit() function, right above this line:
$this->showEditForm();
That is similar in function to the one at the beginning of the function:
if ( ! wfRunHooks( 'AlternateEdit', array( &$this ) ) )
return;
but calling it 'AlternateEditForm' instead. It functions in a similar
manner. This allows me to leverage the existing code in EditPage:edit().
Ideally, I'd like to place this even further down, but I haven't found a
better place for it yet.
If this could be formally added to the MediaWiki source code without
requiring users to modify it, that would be wonderful!
Thanks for your consideration .
Lisa Ridley