Jason Spirko | 1 Aug 2007 03:13

Re: Use Special:UserLogin as Main Page

Rob:

I'm sorry, my intentions were not to mislead anybody. I was looking for a
way to make users login first, then be directed to the wiki. 

I apologize for any confusion. I am new to MediaWiki and PHP. I'm struggling
to get this up and running for my company and implement the features they
would like to see.

I appreciate the help you all have given me so far.

-----------------------------
Jason Spirko
Systems Administrator
Xoran Technologies Inc.

-----Original Message-----
From: mediawiki-l-bounces@...
[mailto:mediawiki-l-bounces@...] On Behalf Of
Rob Church
Sent: Tuesday, July 31, 2007 5:25 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Use Special:UserLogin as Main Page

On 31/07/07, Jason Spirko <jspirko@...> wrote:
> Can they be sent directly to the login page if they are not logged in?

If that's what you want, then your original question was very misleading,
although this makes more sense.

(Continue reading)

Rob Church | 1 Aug 2007 03:48
Picon

Re: Use Special:UserLogin as Main Page

On 01/08/07, Jason Spirko <jspirko@...> wrote:
> I'm sorry, my intentions were not to mislead anybody. I was looking for a
> way to make users login first, then be directed to the wiki.
>
> I apologize for any confusion. I am new to MediaWiki and PHP. I'm struggling
> to get this up and running for my company and implement the features they
> would like to see.
>
> I appreciate the help you all have given me so far.

Perhaps it would be useful if you could briefly restate the problem,
assuming none of the solutions provided to date have been helpful, so
we can understand what we're being asked?

Some indication of expected behaviour would be great.

Rob Church
Jason Spirko | 1 Aug 2007 04:11

Re: Use Special:UserLogin as Main Page

Rob:

We are using MediaWiki for our company wiki, when a employee goes to our
wiki they are taken to the main page and then they are able to navigate
through the site. I want the employees to login *before* they are directed
to the main page (or any page for that matter). 

I use namespace protection throughout the site and to make it simpler for
the employees it would be easier if they logged in first (every employee has
an account w/permission to edit various namespaces). Some employees are
confused by the login "errors" they receive when they want to edit a page.
After I explain that its not an error and that they need to login to edit
pages they understand. But I'm just trying to curb these panic attacks by
making them login before they are even allowed to access the site.

I hope this makes sense...

-----------------------------
Jason Spirko
Systems Administrator
Xoran Technologies Inc.

-----Original Message-----
From: mediawiki-l-bounces@...
[mailto:mediawiki-l-bounces@...] On Behalf Of
Rob Church
Sent: Tuesday, July 31, 2007 9:49 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Use Special:UserLogin as Main Page

(Continue reading)

Andrew Fabian | 1 Aug 2007 04:28

Including MW via a function call

Hey all,

I'm trying to use MediaWiki in a pretty non-standard way, and I'm hoping 
someone can give me a definitely answer about what works / wont work:

The site is a collection of a few different open-source document, chat, 
and database tools.  As such, it has it's own PHP code that drives the 
site, and includes MediaWiki and other systems to generate parts of 
pages where required.

As a simple example, I'm trying to do something like this:

function renderWiki($title)
{
    $_R = $_REQUEST; $_G = $_GET; $_P = $_POST;
    $_REQUEST = array(); $_POST = array();

    $_GET = array( 'action' => 'render', 'title' => $title );

    chdir('wiki');

    ob_start();
    require('index.php'); // run MediaWiki here
    $output = ob_get_contents();
    ob_end_clean();

    $_REQUEST = $_R; $_GET = $_G; $_POST = $_P;

    chdir('..');

(Continue reading)

Jack Eapen C | 1 Aug 2007 05:41

Re: AuthorRestriction Extension


You may also wish to try
http://www.mediawiki.org/wiki/Extension:Simple_Security  

Regards,

Jack
----------------------------------------------------------------
"The absence of alternatives clears the mind marvelously"

-----Original Message-----
From: mediawiki-l-bounces@...
[mailto:mediawiki-l-bounces@...] On Behalf Of Getzke,
John
Sent: Wednesday, August 01, 2007 2:00 AM
To: mediawiki-l@...
Subject: [Mediawiki-l] AuthorRestriction Extension

I know this is a touchy subject for some, but has anyone had luck with
this restriction Extension:
http://www.mediawiki.org/wiki/Extension:AuthorRestriction
<http://www.mediawiki.org/wiki/Extension:AuthorRestriction>  ?

I can see that it blocks users from reading pages, but does it also
block users from writing as well?  If there are any positive reviews for
this extension I would like to hear it, or even better... bad reveiws.

Thanks,

John Getzke
(Continue reading)

Thompson, Graeme (AELE | 1 Aug 2007 09:01

Re: Use Special:UserLogin as Main Page


We have a similar setup to what you require, except that we allow the
Main Page to be seen by everyone.

Below is the section of configuration from our LocalSettings.php to
achieve this:

Hope this helps, 

Graeme

#
# The following line should be commented, otherwise these settings will
# throw away the settings on DefaultSettings.php (you probably don't
want this).
# With this line commented you will only overwrite the settings you
explicitly
# define here (that's what you probably want).
#$wgGroupPermissions = array();
$wgGroupPermissions['*'    ]['createaccount']   = false;
$wgGroupPermissions['*'    ]['read']            = false;
$wgGroupPermissions['*'    ]['edit']            = false;

#Prevent new user registrations
$wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" =>
1);

# Pages anonymous (not-logged-in) users may see
$wgWhitelistRead = array ("Main Page", "Special:Userlogin");

(Continue reading)

Emanuele D'Arrigo | 1 Aug 2007 10:54
Picon

Re: LocalSettings.php - ini_set() function

On 7/31/07, Rob Church <robchur@...> wrote:
>
> ini_set() isn't able to change all PHP.ini configuration settings,
> which makes some sense if one considers what would then be possible
> with a malicious script.

It does make perfect sense.

There's a list on http://uk2.php.net/manual/en/ini.php#ini.list -
> those marked with PHP_INI_ALL or PHP_INI_USER can be changed using
> this function.

Exactly what I needed! Thank you!

Ciao!

Manu

--

-- 
Emanuele D'Arrigo
vfx free electron
Frank Fulchiero | 1 Aug 2007 14:03

Re: Use Special:UserLogin as Main Page

Sorry, I'm somewhat of a noob. But why not just make them log in at  
the main page URL, like we did in this wiki:

http://nutmeg.conncoll.edu/bio/index.php/Main_Page

afaik, there is no way they can go to another page unless they log in.

This would be controlled by

$wgGroupPermissions['*']['read'] = false;

in LocalSettings or DefaultSettings
http://www.mediawiki.org/wiki/Manual:%24wgGroupPermissions

Frank Fulchiero
Digital Media Specialist
Connecticut College

> From: "Jason Spirko" <jspirko@...>
> Subject: Re: [Mediawiki-l] Use Special:UserLogin as Main Page
>
> We are using MediaWiki for our company wiki, when a employee goes  
> to our
> wiki they are taken to the main page and then they are able to  
> navigate
> through the site. I want the employees to login *before* they are  
> directed
> to the main page (or any page for that matter).
>
> I use namespace protection throughout the site and to make it  
(Continue reading)

Platonides | 1 Aug 2007 14:46
Picon

Re: A Wiki Anoyance

Caucci, Joe wrote:
> Hi fellow wikiholics,
> 
> I'm new to the mailing list. I realized today that when you click Edit
> on a page you can see all the templates used on the page.
> 
> What's anoying is that this only works with "page edit" and not when you
> just click to edit a section. Which means you have to do at least 2 more
> clicks after realizing that a template is being used and you'd like to
> edit the template.
> 
> Is there anyway around this problem? I want to see my page templates no
> matter what edit I click on. And I'd like to not have to hack any php if
> possible.
> 
> Joe

I don't think so. The information about which templates are used come 
from the database. From what was saved last time, not from the content 
you're seeing now. You can see eg. templates which are not directly 
included in the page, but come from several template-including levels.

Also, there're some weird cases:
{{template1|text=
==Section 1==
Lorem ipsum dolor
}}{{template2|text=
==Section 2==
sit amet, consectetur adipisici elit
}}
(Continue reading)

Platonides | 1 Aug 2007 14:56
Picon

Re: Including MW via a function call

> 1) Does this theory sound correct?
So it seems.

> 2) Assuming I need to use functions in my site's framework, what's the 
> best way to make this work?
I suppose you could do some strange trickeries to avoid the function, like

<?Php
do_data()
render_page();
if ($show_wiki) require("index.php");
?>

However, i think you're using the wrong approach here.
You could allow the users to go to /wiki/ with the wiki having an Skin 
to resemble your site's skin (you can even callback to your site's 
code). http://www.mediawiki.org/wiki/Manual:Skinning

Also, if you only want to convert wikitext to html, you can use the 
Parser class in your code.

Gmane