Talk:Programming notes

From Wise Nano

Jump to: navigation, search

Contents

(no topic)  by 80.40.89.19 13:22, 11 Nov 2004 (CST)

Brilliant stuff - very helpful for me, a beginner of mediawiki hacking!

Where are pages stored in the database  by Ruach 19:08, 18 Nov 2004 (CST)

Do you (or anyone else) know where wiki pages are stored in the database? I am trying to hack my wiki so that pages have user/group/world perms, similar to unix/linux. I was going to do that by adding the properties to each page in the database but I can't for the life of me figure out where they are kept. :( Any help would be much appreciated. Thanks --Matthew

Where are pages stored in the database  by Ruach 19:12, 18 Nov 2004 (CST)

Never mind, I found the answer here: http://meta.wikimedia.org/wiki/Database_layout. Pages are stored in the cur table. --Matthew

Adding fields to wiki  by 194.109.237.230 18:04, 7 Dec 2004 (CST)

I'm toying with an idea to make some demonstration wiki for the proposed wikipeople project. So information on any person in the past could be tored including ancestrial information (parents, children sisters etc.). So.. to provide some structure i want to add additional fields to the cur-table: like date and place of birth. Although i'm planning to hack into a wiki tomorrow, i could use some inspiration on how to get started on that.

Are there any important issues i should think of?

I'm considering the following: a particular ?.php page retrieves tha data: both the 'text' and additional filed data. That extra field data is then added to the 'text' with tags and then of course translated into output for the browser.

Not too much work i reckon. Yet then, of course, there's the editing and comparison functions etc. etc. And much much more.

Any feedback is much appreciated. jetze van der wal (jetze@xs4all.nl)

Cooperation  by NSK 15:51, 11 Jan 2005 (CST)

I am also modifying MediaWiki. I would be interested to cooperate. See http://maatworks.wikinerds.org/index.php/WikiAnt and http://www.wikinerds.org - if interested plz email me! NSK 15:51, 11 Jan 2005 (CST)

Edit box directly under talk page  by Fxp 13:09, 22 Feb 2005 (CST)

Hello,

And of course, great thanks for your page. You seem to know a good deal about mediawiki and its hacking. I just wanted to ask if you had an idea what I could to to have the edit box directly under the TalkPage... of course only for logged visitors. my newbies customs

Answer: f dot parlant at wanadoo dot fr

Thanks

Changing the Preview  by 217.80.25.2 02:48, 25 Mar 2005 (CST)

Hello, we want to use mediawiki for a translation project and it works with uploaded scans of the book. I´d like to know, if you know how to change the preview page: The uploaded scan should be placed directly left to the edit box. I dont know which file I should edit to change the arrangement of the different parts in mediawiki.

Thx Marco (info at marcokalz dot de)

"New Page" Form  by 154.20.47.238 23:01, 15 Apr 2005 (CDT)

Hey, for anyone who wants it...

If you don't care about the category tag automatically placed in the new page, you can do this much easier:

SpecialNewPage.php

<?php
function wfSpecialNewPage()
{
	global $wgOut;
	
	$wgOut->addHTML('
	<form name="input" action="index.php"
	method="get">
	<label>Title:</label>
	<input type="text" name="title">
	<input type="hidden" name="action" value="edit">
	<input type="submit" value="Create">
	</form>');
}
?>

Then, add your new special page to the $wgSpecialPages array in SpecialPage.php:

SpecialPage.php

$wgSpecialPages = array(
	'NewPage' => new SpecialPage( 'NewPage' )
);

Now you can link to Special:NewPage

(I don't think this method will work if you use the Apache RewriteRule's for "clean" URLs though)

Personal tools