Hello all,
I have a small wiki farm set up with separate tables for each. We would like
to have a "Welcome Page" that is common to all the wikis, so that editing it
from one of the wikis would reflect the change across all the wikis.
Is there any way to do this ?
Thank you,
Sowmya
Hi all
I am using MediaWiki 1.9.3 and have a strange problem.
>From time to time, on some pages the integrated templates
will not parsed and displayed als normal text like
{{Template:xy}}
Temporary I can solve the problem with a restart of apache2.
I have also some own extensions with sql connections to other databases.
Maybe there is the problem? Could anyone give me a hint?
Thanks
Marco
I finally managed to get the Short URLs working with my installation of
MW, which is located in public_html/wikific. PHP5 is being run as a CGI
module. So the Short URL loads, but as I've read if something's "not done
properly" with the .htaccess file (in public_html) or the
LocalSettings.php, the skins/CSS files won't properly load. Can anyone
point me at what I've done wrong?
>From LocalSettings.php:
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs
$wgScriptPath = "$wgScriptPath/wiki";
$wgArticlePath = "$wgScriptPath/$1";
$wgStylePath = "$wgScriptPath/skins";
$wgStyleDirectory = "$IP/skins";
$wgLogo = "$wgStylePath/common/images/wikific_logo.png";
>From public_html/.htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.+)$ /wikific/index.php?title=$1 [L,QSA]
Help?
-Azurite
Hi everybody!
Given the following template use:
{{MonthListing
|month=July
|2=Manu.d birthday (1974)
|9=Goofy.g birthday (1932)
|15=Mickey.m birthday (1928)
|17=Siggraph start
|24=Siggraph ends
}}
and given the following template code:
{|
|-
|Day
|Event
{{#if:{{{1|}}}|{{!}}-
{{!}}1
{{!}}{{{1}}}}}
{{#if:{{{2|}}}|{{!}}-
{{!}}2
{{!}}{{{2}}}}}
{{#if:{{{3|}}}|{{!}}-
{{!}}3
{{!}}{{{3}}}}}
{{#if:{{{4|}}}|{{!}}-
{{!}}4
{{!}}{{{4}}}}}
|}
I obtain the following HTML:
<table>
<tr>
<td>Day
</td><td>Event
</td></tr>
<tr>
<td>2
</td><td>Manu.d birthday (1974)
<p><br />
</p>
</td></tr></table>
which all looks nice and dandy except for that
<p><br />
</p>
I have no idea where those tags come from.
I mean, they come from:
{{#if:{{{4|}}}|{{!}}-
{{!}}4
{{!}}{{{4}}}}}
because they are not there if I remove that snippet.
But why 1 and 3 don't do the same?
Is it because I'm using numerical parameter names
and there's an ambiguity between parameter "4" and
the fourth parameter? Are there workarounds?
Manu
Hello All,
I'm going to change domain name in our dns for one of our wiki sites.
What should I change in the configuration of wiki site itself so all pages and data are intact?
Best Regards,
Leon Kolchinsky
From what I can tell, $user->isLoggedIn() tells whether a user
object is an anonymous one or one with an id in the user table. Is
there a function that actually can tell if a user is logged in? I'm
not trying to display this in the wiki, I'm trying to integrate
logging into the wiki into the login system of a blogging package I
have. I realize that most authentication packages do it the other
way, but I'd like to try making the blog treat users as logged in if
they are logged into the wiki.
I'm guessing that there must be session info that I can use
somewhere. My thought is to have the blog send a query on a private
port or via the shell to something that responds if the username
matches someone who is logged in. My first attempt:
<?php
require_once("./includes/WebStart.php" );
require_once("./includes/Wiki.php" );
$mediaWiki = new MediaWiki();
$wikiUser = User::newFromName($_REQUEST['user']);
if($wikiUser->isLoggedIn()){
echo "y";
} else{
echo "n";
}
?>
returns Y whether the user is logged in or not, for the reason
described above.
Jim
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
I want to do evil things with templates, just like the cool kids on
English Wikipedia do. But the programmable template syntax looks like
a sea of braces to me. Is there a comprehensible intro anywhere?
- d.
Hi,
every time I load an image to my wiki this image is added to my watchlist.
I checked the configuration in mypreferences but could not find anything to
stop it.
Any hints?
Regards
Albert Cremer
Hi,
I'm looking for some extension (or something) that allows me to have
parts of a page, or perhaps templates embedded in a page always display
as collapsed, and allow the user to maximize/show/expand them when they
want. For example, a template would be included and have a title, and
text to the title might be something like [+] or [show] or [expand] or
similar. Is there something that does this? (I'm thinking it would be
Javascript, but I'm not sure.)
-Azurite
I'm looking for advice on the best authentication & access control setup
for a "private" MediaWiki installation in the following environment:
* Completely read-protected unless you are logged in (as in
http://23rdworld.com/2007/03/30/how-to-make-your-mediawiki-private/)
* Usernames and passwords are stored in ActiveDirectory (we're
using the LDAPAuthentication extension)
* Logins are restricted to a particular group (e.g., an NT
security group within ActiveDirectory, which LDAPAuthentication.php
supports)
* Easily add and remove access control for individual guests (who
are also in ActiveDirectory, but not in the required NT security group)
* Guests can be read-only or read/write
* FYI, this is on a corporate intranet that is firewalled from the
world
If we use ActiveDirectory for access control, this provides login
security, but we can't revoke access instantly (since the user can
select "Remember my login on this computer" ...or is there a way to
destroy another user's session?). We also cannot control read-only vs.
read-write access at this level, I think.
This is solved if we also use MediaWiki user rights for access control;
but then to add a new user, you need to add them to the NT security
group AND bestow the appropriate MediaWiki user rights. It would be
cleaner to maintain permissions in just one place. (This is my favorite
approach at the moment, however.)
A third possibility is to forget the NT security group and just allow
everyone in ActiveDirectory to log in, but use MediaWiki access control
after login. This works but you get the weird state of "successfully
logged in, but cannot read anything," which is confusing for users and
probably will generate customer support calls.
We are not considering the "100% MediaWiki" approach (use MediaWiki
authentication, not ActiveDirectory), nor the HTTP auth approach
(.htaccess), because we want to keep passwords in sync with
ActiveDirectory. Nor do we want to control access by particular PCs or
IP addresses (e.g., by firewall rules) as it's too hard to maintain.
Are there any other possibilities I've missed? Any other advice? Thank
you.
DanB