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
Guys - need some help on this:
require_once( "$IP/extensions/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "intranet" );
$wgLDAPServerNames = array( "intranet"=>"myserver.intranet.mydomain.com" );
$wgLDAPSearchStrings = array( "intranet"=>"EXAMPLEDOMAIN\\USER-NAME" );
$wgLDAPEncryptionType = array( "intranet"=>"ssl" );
$wgLDAPUseLocal = false;
$wgMinimalPasswordLength = 1;
$wgLDAPBaseDNs = array( "intranet"=>"dc=intranet,dc=mydomain,dc=com" );
$wgLDAPSearchAttributes = array( "intranet"=>"sAMAccountName" );
This is My AD:
LDAP://intranet.mydomain.com/CN=rock\,
zham:OU=GLB,DC=INTRANET,DC=MYDOMAIN,DC=com
I cant authenticate through AD with the above setup.
Appreciate any help on this.
-zham
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
Upon upgrading to version 1.10.1, the Special:allmessages page recognizes only some of the local changes I have made. It will not allow me to edit any text in any pages. Many of the pages are empty. For example, Mediawiki:viewsource is not populated with View source. If I try to add text to change the label to "wikitext," upon saving, it ignores the change and reverts back to an empty page.
Does version 1.10.1 not allow for changes in Special:allmessages? If it does, is there something I needed to do in the upgrade to toggle this function? Thanks for any help.
Nancy
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