Hi, all.
I'm new to this list. This weekend our wiki suffered an attack similar
to the one mentioned in yesterday's list archives: it deleted a good bit
of content and inserted the coolhost.biz links.
However, it did not all come from one user. Rather more than 20 ip's
edited the main page alone.
Can anyone point me to more info on this, and just general help info on
rolling back changes?
Thanks!
Ed
Can I change this function in a custom made skin? If
so, how? I tried inserting it in lines like:
class SkinMyOwnMediaWikiSkin extends SkinTemplate { }
but that doesn't seem to work.
Thanks.
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
If I add a hook in an extension like so:
$wgHooks['ParserAfterTidy'][] = 'some_function' ;
How do I remove that hook?
Is there a way, in extensions, to output text after Tidy parsing that isn't
global and doesn't effect every page on the site?
-ben
Hello,
First, thanks to the developpers for the userrights management system in
1.5.
Now, here are the rights I'd like to set up:
1- Anybody can create an account (looks like default)
2- Only logged in users can edit (described in [[Help:User_levels]])
3- Logged in users can only __edit discussion pages__ (namespace=1)
4- Sysop can edit all pages
5- bureaucrat can makesysop (looks like default)
In mediawiki 1.3 I simply added a line in Title.php (function userCanEdit())
if ( !(1 == $this->mNamespace) && !$wgUser->isSysop() ) { return false; }
Here things are a bit more tricky.
Should I create a special right ("discuss") and insert in userCan():
if ( !(1 == $this->mNamespace) && !$wgUser->isAllowed('discuss') ) {
wfProfileOut( $fname );
return false;
}
Or is there another way?
Thanks for any help.
François
Greetings all,
I've noticed that when I go to any page in my wiki
(eewiki.com<http://eewiki.com>)
there is a long pause while, in the status bar, it says, "Loading from
en.wikipedia.org <http://en.wikipedia.org>. I've gone through the source a
few times and can't find what it's trying to load from there. This is
slowing down my site a fair bit and I can't figure any reason why it would
need to do that.
If anyone has any ideas on how to make this stop, that'd be great. I've only
noticed it since upgrading to 1.5 two days ago.
--
Lisa Jill
http://www.lisajill.net
We had an attack of an hacker on ZUM-Wiki yesterday. And since today it
seems, that we now have over 250 pages more than yesterday.
On our startpage (www.zum.de/wiki) you find the {{NUMBEROFARTICLES}} in this
moment as "Zurzeit 1056 Artikel". But when I look for example the
"Spezial:Popularpages", only 808 articles are displayed. - Up to yesterday,
this difference didn't exist.
Is there any explanation for this?
Maybe the following code put into or damaged pages has to do with it?
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
[[http ://WTHP1.coolhost.biz] [WTHPD1]]
[http ://WTHP2.coolhost.biz WTHPD2]
[[http ://WTHP3.coolhost.biz | WTHPD3]]
[http ://WTHP4.coolhost.biz | WTHPD4]
[WTHPD5 | http ://WTHP5.coolhost.biz]
[[http ://WTHP6.coolhost.biz WTHPD6]]
</div>
(The space between "http" and ":" was made by me.)
Best regards
Karl Kirst
--------------------------------------
post(a)karl-kirst.de
www.karl-kirst.de / www.schule-und-internet.de
Mitarbeit am ZUM-Wiki: www.zum.de/wiki
--------------------------------------
I wanted to do something very simple (or so I thought) on my recipe wiki (
http://mudabone.com/recipe ) in MediaWiki1.5
I wanted to have a simple form to allow users to add a recipe in a standard
format.
So, I grabbed the HTML from the form that appears when you add/edit a page.
I wrote an extension that outputs a modified format of this which is a
simple html form and made wpTextbox1 hidden (which is the large text box on
the add/edit form page).
The form, onsubmit, calls a javascript function which puts together the
format I wanted to support and sets it to the value in wpTextbox1
In theory this works but, for reasons I don't understand, tidy seems to
managle the javascript.
I read about the hooks thing (
http://meta.wikimedia.org/wiki/Write_your_own_MediaWiki_extension#Hooks )
and implemented a simple hack to get around tidy.
$wgHooks['ParserAfterTidy'][] = 'parse_addrecipe2' ;
function parse_addrecipe2(&$parser , &$text)
{
$text .= gethtml();
$text .= getjavascript();
$wgHooks['ParserAfterTidy'][] = null;
}
And that works great except I now have that form on every page in the wiki.
How do I remove a hook?. I obviously barely understand what I'm doing here.
Any help would be much appreciated.
Is there a better way to do this? I'm trying to idiot proof a few of the
basics so users wouldn't have to learn wiki-script (or at least not
initially, this would give them a starting point for editing).
-ben
------------------------ Code for extension if it helps
---------------------------------------------
<?
$wgExtensionFunctions[] = "wfFormsAddRecipe";
function wfFormsAddRecipe ()
{
global $wgParser ;
$wgParser->setHook ( "addrecipe" , parse_addrecipe ) ;
global $wgHooks ;
$wgHooks['ParserAfterTidy'][] = 'parse_addrecipe2' ;
}
function parse_addrecipe2(&$parser , &$text)
{
$text .= gethtml();
$text .= getjavascript();
$wgHooks['ParserAfterTidy'][] = null;
}
function parse_addrecipe($text)
{
//return gethtml();
}
function gethtml()
{
$ret ='
<form id="editform" name="editform" method="post" action="
/recipe/index.php"
enctype="multipart/form-data" onsubmit="validateRecipe(this)">
<input type="hidden" name="action" value="submit"/>
<table>
<tr><td>Recipe Name:</td><td><input type="text" name="title" value="New
Recipe"/></td></tr>
<tr><td>Original Recipe URL:</td><td><input type="text"
name="original_url"/></td></tr>
<tr><td>URL Text:</td><td><input type="text" name="url_text"/></td></tr>
<tr><td>Recipe By:</td><td><input type="text" name="recipe_by"/></td></tr>
<tr><td>Ingredients:<br>
<small>one ingredient per line with " "<br>
example:<br>
one
two</small></td><td><textarea name="ingredients" rows="15"
cols="60"/></textarea></td></tr>
<tr><td>Directions:</td><td><textarea name="directions" rows="15"
cols="60"/></textarea></td></tr>
</table>
<input type="hidden" name="wpTextbox1"/>
<br>
<br />Summary: <input tabindex="2" type="text" value="" name="wpSummary"
maxlength="200" size="60" /><br />
<input tabindex="3" type="checkbox" value="1" name="wpMinoredit"
accesskey="i" id="wpMinoredit" /><label for="wpMinoredit" title="Mark this
as a minor edit [alt-i]">This is a minor edit</label><input tabindex="4"
type="checkbox" name="wpWatchthis" accesskey="<accesskey-watch>"
id="wpWatchthis" /><label for="wpWatchthis" title="Add this page to your
watchlist [alt-w]">Watch this page</label><br />
<input tabindex="5" id="wpSave" type="submit" value="Save page"
name="wpSave" accesskey="s" title="Save your changes [alt-s]"
onclick="validateRecipe(this)"/>
<input tabindex="6" id="wpPreview" type="submit" value="Show preview"
name="wpPreview" accesskey="p" title="Preview your changes, please use this
before saving! [alt-p]"/>
<input tabindex="7" id="wpDiff" type="submit" value="Show changes"
name="wpDiff" accesskey="v" title="Show which changes you made to the text.
[alt-d]"/>
<em><a href="/recipe/index.php?title=Test" title="Test">Cancel</a></em> |
<em><a target="helpwindow"
href="/recipe/index.php?title=Help:Editing">Editing help</a> (opens in new
window)</em><div id="editpage-copywarn">
<p>Please note that all contributions to RecipeWiki
may be edited, altered, or removed by other contributors.
If you don"t want your writing to be edited mercilessly, then don"t submit
it here.<br />
You are also promising us that you wrote this yourself, or copied it from a
public domain or similar free resource (see <a
href="/recipe/index.php?title=RecipeWiki:Copyrights&action=edit"
class="new" title="RecipeWiki:Copyrights">Project:Copyrights</a> for
details).
<strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>
</p>
</div>
<input type="hidden" value="" name="wpSection" />
<input type="hidden" value="" name="wpEdittime" />
<input type="hidden" value="c032ebbd7fd87a6ac32f92368a8940aa"
name="wpEditToken" />
</form>
';
return $ret;
}
function getjavascript()
{
$ret ='
<script language="javascript">
function validateRecipe(form)
{
var rn = "\r\n";
var res = "[[Category:Recipe]]" + rn;
if (form.original_url.value != "")
{
if (form.url_text.value == "")
{
form.url_text.value = "Original Recipe";
}
res += "==Credits==" + rn + "[" + form.original_url.value + " " +
form.url_text.value + "] ";
}
if (form.recipe_by.value != "")
{
res += "by " + form.recipe_by.value;
}
res += rn + rn;
res += "==Ingredients==" + rn;
res += form.ingredients.value + rn;
res += "==Directions==" + rn + form.directions.value;
form.wpTextbox1.value = res;
return true;
//form.submit
}
</script>
';
return $ret;
}
?>
Working for me. What's actually broken?
Rob Church
On 08/10/05, Tim Erickson <tim(a)politalk.com> wrote:
> I'd like to hire someone to install MediaWiki for me (ASAP) and help
> with customization. I'm willing to pay (small budget).
>
> I'll be using MediaWiki to help facilitate on online student
> conference of more than 400 students from 70+ countries, to discuss
> reform of the United Nations.
>
> http://discuss.politalk.org/un/
>
> I'll need this help this weekend - ASAP. Please contact me offline if
> your interested and have experience installing and customizing
> MediaWiki. Please, provide some idea of what it would cost to help
> with a fairly simple install (I hope it will be simple).
>
> NOTE: I actually tried to install myself, but its not working properly.
>
> http://www.politalk.org/wiki
>
> Thanks,
>
> Tim Erickson
> tim(a)politalk.com
>
> --
> =================================================
> Tim Erickson http://www.politalk.com
> St. Paul, MN - USA 651-643-0722
> tim(a)politalk.com iChat/AIM: stpaultim
> =================================================
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
I get an error when trying to upload an image file
logged in as any user including as WikiSysop:
Internal error
Could not copy file "C:\WINDOWS\TEMP\php10A.tmp" to
"C:\Inetpub\wwwroot\mediawiki/images/temp/4/42/20051008234644!DSC04075.JPG".
The "file paths\names" are slightly different each try
with the exception that .tmp always appears in the
first and the C:\Inetpub\wwwroot\mediawiki/images/
always appears in the second.
IIS ver. 5.1
WinXP Pro ver. 5.1.2600 build 2600
PHP ver. 5.0.4
mysql ver 4.1.12a-nt via TCP/IP
MediaWiki 1.4.7
In MediaWiki's LocalSeetings.php I uncommented the
line
$wgDisableUploads = false;
In PHP's php.ini:
file_uploads = On
In IIS for the MediaWiki directory under the default
website, when I right click, select properties and
look at the directory tab, under local path both the
read and write boxes are checked.
As per suggestions on
http://meta.wikimedia.org/wiki/Upload#Supported_file_types.3B_miscellaneous
I added this line to LocalSettings.php:
$wgFileExtensions = array( 'png', 'jpg', 'jpeg',
'ogg','doc','xls','ppt','mp3','sxc','pdf' );
That didn't help
I am able to 'wiki' fine otherwise, adding new pages,
etc.
I'd welcome any ideas for other things to try.
Thanks,
Matt
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
I still don't get any solution for the installation problem.
It is described in details at http://wikisic.ouvaton.org/bug_fix/
Thanks in advance ! Christian