It looks like the way to do it would be to run a query like so:
$user = User::newFromName( $userName );
$dbw = wfGetDB( DB_MASTER );
$dbw->insert( 'user_groups',
array( 'ug_user' => $user->getID(), 'ug_group' => 'bot', ),
'User::addGroup', array( 'IGNORE' ) );
But if I am not logged in, this
Im working on the phpbb Single-Signon extension and I wanted to amke it so that
users who are moderators are automatically made sysops on the wiki.
Other than modifying the database, is there any way in code to make a user a
sysop (without having it done by a bureaucrat)?
___
I would also like to note that I am actually looking at using other software
for my project after 2 years of mediawiki because I would like it to behave
more like a social network. I too love mediawiki, but I think it is the wrong
choice for your project.
On Jun 18, 2011, at 1:56 AM, Phillip
Just a word of wisdom on the capchtas
The reason they do not work 100% of the time is that the spam is not a bot, but
an actual person doing this. Sometimes paid per broken captcha.
Making it hard enough to stop spam often means making it too hard for
legitimate users as well. I for one have a v
Nina, thanks for the suggesion. I will certainly take a look.
If you want help, we got already some people from Michigan University,
BYU and Chicago University helping. It would be a pleasure.
On Sunday, June 19, 2011, McHale, Nina wrote:
> Phillipe,
>
> Your project and philosophy sound wonde
Thank you both. I had forgotten about the configuration settings for Confirm
Edit which I do have installed.They also had the code for "check for new
links", so I'll look at it if I go that route.
For now I just changed the capctcha to a slightly more difficult one, in
ConfirmEdit.
--- On Sa
Phillipe,
Your project and philosophy sound wonderful, but I don't think MediaWiki, as
great as it is, is the right tool for the job. Since you are already working
with PHP and MySQL, I'd highly recommend considering Drupal. It was designed
specifically with social networking sites in mind, and
Using wiki markup should do the job. Look at this:
https://bugzilla.wikimedia.org/show_bug.cgi?id=21278
http://www.mediawiki.org/wiki/Manual:Sidebar#Allow_wiki_markup_.28PHP.29
Am 19.06.2011 05:48, schrieb Dan Siegal-Gaskins:
>
> hello everyone,
> i'm a new and slightly confused mediawiki user