PDA

View Full Version : Friendly/ user friendly Dialog in a Private WIKI



Petrus4
02-17-2008, 01:35 AM
I am sure I read a post about this in the past, but could not find it. So excuse me if I post it here again.

If you have a pivate wiki the dialogs currently just tell you are not allowed to view content if you are not logged in.

Can we get more user friendly dialogs or just a main page with a login screen so that it is clear for users that they have to log in to use the wiki.

So no pop up screens just a home page with a text:


Welcome to the Wiki. You have to log in to view the content on this site

and there under the the login window or "Click here to login"

What do you all think?

SteveB
02-19-2008, 06:40 PM
I agree and filed a bug on the issue:
http://bugs.opengarden.org/view.php?id=3356

Thanks for reminding us! :)

Petrus4
06-14-2008, 02:35 PM
Hi Steve , RoyK and others.. its been a while! :)

By the way awesome work everyone!!

I just upgraded two wikis from ithasca to the latest Jay Cooke and lost my friendly login dialog (custom made) and was wondering if these friendly dialogs for private wiki had been made part of the standard code as planned.

Right now when I go to the main page of the wiki I get:


This page's contents could not be loaded.

and no instruction on how to login and no login page.

Is this a feature I can enable or is something I will have to customize again for now?

The upgrades to Jay Cooke went very well!! (except for losing my friendly dialogs) also my debian installation is fully updated with the latest image.

crb
06-14-2008, 03:06 PM
I found this bug yesterday (http://bugs.developer.mindtouch.com/view.php?id=4259) - users were not being prompted to log in when they first connected. I told Carl he had to log in, but then looked into why this problem was happening (it worked in 8.05, but not in 8.05.1). I found a workaround, which is attached to the bug, and the unstoppable RoyK has now fixed it for the next release!

You can customize the message that is show to a user that is not logged in in resources.txt - search for "page-is-restricted-login".

Craig

Petrus4
06-16-2008, 03:54 PM
Thanks Craig!

Changing the text is 1 step but I want the redirect to the login page to work also.

Royk is there anyway we can get the fix before the next release?

crb
06-16-2008, 03:57 PM
The workaround in the bug should fix it so it redirects to the login page, as you are requesting.

Petrus4
06-16-2008, 04:59 PM
ok got it.. sorry I was reading over it to fast late last night.

can you let me know the syntax I need to use in Attach.php to
check for 403 or 401 ?

thanks!

crb
06-16-2008, 06:11 PM
In /var/www/dekiwiki/includes/Article.php, look for this, in the function checkRestricted():


if ($status == 403)
{
if ($wgUser->isAnonymous())
Change to

if ($status == 403 || $status == 401)
{
if ($wgUser->isAnonymous())

Craig

Petrus4
06-16-2008, 06:54 PM
Great Thanks!! :)