Do templates force-close any opening tags?
I'm trying to make templates for a simple hierarchical link list, something like {{menu top}} that opens a <div> and <font>, one or more intermedate {{menu this}} {{menu that}} templates that provide a second set of links, based on the same <div> and <font>, then a {{menu close}} that does the </div> and </font>.
But it looks like the {{menu top}} is getting closed off with "</font></p></div>", even though I did no such thing.
Is there any way around this sort of behavior?
(MediaWiki 1.4)
:::: A nation that continues year after year to spend more money on military defense than on programs of social uplift is approaching spiritual doom. Martin Luther King, Jr. :::: Jan Steinman http://www.Bytesmiths.com/Item/003AA15
I've succeeded in getting MediaWiki to authenticate off of vBulletin using an extension of the AuthPlugin.
My problem now is that users still can create MediaWiki accounts. This defeats the whole purpose.
How do I disallow users from creating local MediaWiki accounts? Preferably I'd like to replace the "Retype password...." part of the form with a message telling them where they really need to go to create a password.
Also... I notice that in the AuthPlugin documentation, mention is made of pulling the user's email address from an external source so that MediaWiki can use it. Pulling the email is easy enough, but where do I pass it so that MW can make use of it?
Thanks, Carlton
http://mail.wikipedia.org/pipermail/mediawiki-l/2005-April/004705.html
Add $wgWhitelistEdit = true; to your localsettings.php and that should fix the problem, as it doesn't allow people to create logins.
On 4/24/05, Carlton B carltonb@mindspring.com wrote:
I've succeeded in getting MediaWiki to authenticate off of vBulletin using an extension of the AuthPlugin.
My problem now is that users still can create MediaWiki accounts. This defeats the whole purpose.
How do I disallow users from creating local MediaWiki accounts? Preferably I'd like to replace the "Retype password...." part of the form with a message telling them where they really need to go to create a password.
Also... I notice that in the AuthPlugin documentation, mention is made of pulling the user's email address from an external source so that MediaWiki can use it. Pulling the email is easy enough, but where do I pass it so that MW can make use of it?
Thanks, Carlton
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Thanks... that is half of the solution, I can prevent them from creating MW accounts. But having done that, I need to add a message somewhere that tells users where to go create an account if they don't have one. What file is that going to be?
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of me at work Sent: Monday, April 25, 2005 3:32 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Disabling account creation
http://mail.wikipedia.org/pipermail/mediawiki-l/2005-April/004705.html
Add $wgWhitelistEdit = true; to your localsettings.php and that should fix the problem, as it doesn't allow people to create logins.
On 4/24/05, Carlton B carltonb@mindspring.com wrote:
I've succeeded in getting MediaWiki to authenticate off of vBulletin using an extension of the AuthPlugin.
My problem now is that users still can create MediaWiki accounts. This defeats the whole purpose.
How do I disallow users from creating local MediaWiki accounts?
Preferably
I'd like to replace the "Retype password...." part of the form with a message telling them where they really need to go to create a password.
Also... I notice that in the AuthPlugin documentation, mention is made of pulling the user's email address from an external source so that MediaWiki can use it. Pulling the email is easy enough, but where do I pass it so that MW can make use of it?
Thanks, Carlton
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
-- Tom _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 24 Apr 2005, at 15:34, Carlton B wrote:
I can prevent them from creating MW accounts. But having done that, I need to add a message somewhere that tells users where to go create an account if they don't have one.
Uhm... that sounds like you want to make a wall, then knock a big hole in it!
Either you allow people to create accounts, or you don't.
:::: Jesus Saves!... Passes to Gretsky; Gretsky SCORES! :::: Jan Steinman http://www.Bytesmiths.com/Van
Jan Steinman wrote:
On 24 Apr 2005, at 15:34, Carlton B wrote:
I can prevent them from creating MW accounts. But having done that, I need to add a message somewhere that tells users where to go create an account if they don't have one.
Uhm... that sounds like you want to make a wall, then knock a big hole in it!
Either you allow people to create accounts, or you don't.
If you read back, you'll see he wants account creation to be done through a separate system, which his authentication plugin for MediaWiki uses as a source.
Carlton, you can change the message at the top of Special:Userlogin by editing the [[MediaWiki:Loginprompt]] message. Include a link to the other account system there, and I think it should be pretty straightforward.
-- brion vibber (brion @ pobox.com)
On 24 Apr 2005, at 19:33, Brion Vibber wrote:
If you read back, you'll see he wants account creation to be done through a separate system...
Okay, sorry, I was distracted by the myriad semantics of slanted text.
Not really, but that's my excuse, and I'm stickin' to it. :-)
:::: Some call it vision; some call it temporal lobe epilepsy. :::: Jan Steinman http://www.Bytesmiths.com
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Brion Vibber Sent: Monday, April 25, 2005 11:34 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Disabling account creation Carlton, you can change the message at the top of Special:Userlogin by editing the [[MediaWiki:Loginprompt]] message. Include a link to the other account system there, and I think it should be pretty straightforward.
Thanks Brion... still having problems though. The text of [[MediaWiki:Loginprompt]] is: "You must have cookies enabled to log in to Takipedia." I need to change that, but it doesn't hide the fields that a user could use to create a new account.
I believe I actually need to edit the Special:Userlogin page itself but I don't know how to do it. The section I want to hide contains the "(new users only)" fields and also this text:
"Fields marked with a star (*) are optional. Storing an email address enables people to contact you through the website without you having to reveal your email address to them, and it can be used to send you a new password if you forget it.
Your real name, if you choose to provide it, will be used for giving you attribution for your work."
Is Special:Userlogin the page to edit, and if so, how is it possible to edit it? Even when logged in as a sysop, this page has no edit tabs.
Sorry if these are lame questions, like I said I'm new to MW.
-Carlton
Carlton B wrote:
Thanks Brion... still having problems though. The text of [[MediaWiki:Loginprompt]] is: "You must have cookies enabled to log in to Takipedia." I need to change that, but it doesn't hide the fields that a user could use to create a new account.
If you have set $wgWhitelistAccount to disable user account creation, those form controls will not be shown.
Also make sure you're looking at the page as an anonymous user to confirm you're looking at the correct display.
Is Special:Userlogin the page to edit, and if so, how is it possible to edit it? Even when logged in as a sysop, this page has no edit tabs.
There is not a page Special:Userlogin that you can edit; it's generated by code. All the interface text on the special pages comes from the language-specific messages, which are imported into the database at install time and are editable as the various MediaWiki: pages. These are all listed at Special:Allmessages.
If you really, really need to change the layout of Special:Userlogin, take a look at includes/templates/Userlogin.php. However I don't think you need to touch anything in there to do what you've asked about.
-- brion vibber (brion @ pobox.com)
Thanks so much for your help, wasn't expecting an answer so soon. You have been answering questions around the clock, I can't tell which time zone you sleep in.
-Carlton
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Brion Vibber Sent: Monday, April 25, 2005 6:43 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Disabling account creation
Carlton B wrote:
Thanks Brion... still having problems though. The text of [[MediaWiki:Loginprompt]] is: "You must have
cookies enabled
to log in to Takipedia." I need to change that, but it doesn't hide the fields that a
user could use
to create a new account.
If you have set $wgWhitelistAccount to disable user account creation, those form controls will not be shown.
Also make sure you're looking at the page as an anonymous user to confirm you're looking at the correct display.
Is Special:Userlogin the page to edit, and if so, how is it
possible to edit
it? Even when logged in as a sysop, this page has no edit tabs.
There is not a page Special:Userlogin that you can edit; it's generated by code. All the interface text on the special pages comes from the language-specific messages, which are imported into the database at install time and are editable as the various MediaWiki: pages. These are all listed at Special:Allmessages.
If you really, really need to change the layout of Special:Userlogin, take a look at includes/templates/Userlogin.php. However I don't think you need to touch anything in there to do what you've asked about.
-- brion vibber (brion @ pobox.com)
Thanks so much for your help, wasn't expecting an answer so soon. You have been answering questions around the clock, I can't tell which time zone you sleep in.
http://meta.wikimedia.org/wiki/MediaWiki_FAQ#Does_Brion_ever_sleep.3F on that.
A chance to say - Brion, your work here and on Mediawii is hugely appreciated. I hope you don't *need* too much sleep...
http://meta.wikimedia.org/wiki/MediaWiki_FAQ#Does_Brion_ever_sleep.3F on that.
Jeez, what ISN'T in the FAQ? Consider me suitably chastened.
"Carlton B" carltonb@mindspring.com wrote in message news:BHEHJAMNEHLEHILFBIENKEIDCHAA.carltonb@mindspring.com...
http://meta.wikimedia.org/wiki/MediaWiki_FAQ#Does_Brion_ever_sleep.3F on that.
Jeez, what ISN'T in the FAQ? Consider me suitably chastened.
Jolene Blalock's telephone number, and judging by the state of the test wiki, this is a GOOD THANG :-)
Brion...
I edited MediaWiki:Login prompt like you said, but the changes don't on Special:Userlogin, neither by directly navigating to the auto-generated page, nor by clicking the "Log in" link as in normal usage.
What have I done wrong?
Thanks, Carlton
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Brion Vibber Sent: Monday, April 25, 2005 6:43 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Disabling account creation
Carlton B wrote:
Thanks Brion... still having problems though. The text of [[MediaWiki:Loginprompt]] is: "You must have
cookies enabled
to log in to Takipedia." I need to change that, but it doesn't hide the fields that a
user could use
to create a new account.
If you have set $wgWhitelistAccount to disable user account creation, those form controls will not be shown.
Also make sure you're looking at the page as an anonymous user to confirm you're looking at the correct display.
Is Special:Userlogin the page to edit, and if so, how is it
possible to edit
it? Even when logged in as a sysop, this page has no edit tabs.
There is not a page Special:Userlogin that you can edit; it's generated by code. All the interface text on the special pages comes from the language-specific messages, which are imported into the database at install time and are editable as the various MediaWiki: pages. These are all listed at Special:Allmessages.
If you really, really need to change the layout of Special:Userlogin, take a look at includes/templates/Userlogin.php. However I don't think you need to touch anything in there to do what you've asked about.
-- brion vibber (brion @ pobox.com)
On 4/24/05, Jan Steinman Jan@bytesmiths.com wrote:
Do templates force-close any opening tags?
I was under the impression that they don't get manipulated at all, and that various current uses exploit this fact. If we ever move to a "proper" grammar-based parser, this is a potential problem, because it will prevent templates being cached as pre-parsed segments, but for now, it's fine.
A nice simple example, similar to what you're trying, is http://en.wikipedia.org/wiki/Template:Vfd_top and http://en.wikipedia.org/wiki/Template:Vfd_bottom - the first opens a div, the second closes it.
But it looks like the {{menu top}} is getting closed off with "</font></p></div>", even though I did no such thing.
Are you looking at the source of just the template page on its own, out of context? Or perhaps including just the {{menu top}} without the {{menu bottom}}? Your browser (and possibly a call to "htmltidy" within MediaWiki) will tend to close any elements that are "left hanging", so you will probably never see a page with <div> but no </div>. Once you include the "</div>" yourself, however, the code won't need tidying in this way, so won't be messed with.
In other words, if you actually use both {{menu top}} and {{menu bottom}} in a page, as you describe, it *should* work just fine.
I'm probably screwing it up, but my eyes can't see it!
On 24 Apr 2005, at 08:55, Rowan Collins wrote:
On 4/24/05, Jan Steinman Jan@bytesmiths.com wrote:
Do templates force-close any opening tags?
I was under the impression that they don't get manipulated at all...
Here's "http://www.bytesmiths.com/wiki/Template:VVG_menu_top":
<div align="center"><font size="-3">| '''[[Veggie Van Gogh]]''' |<br> | [[VVG:Fuel system|Fuel system]] | [[VVG:Body, chassis, driveline|Body, chassis, driveline]] | [[VVG:Electronics|Electronics]] | [[VVG:Living quarters|Living quarters]] | [[VVG:FAQ|FAQ]] | [[Biofuel links]] |
Here's "http://www.bytesmiths.com/wiki/Template:VVG_menu_fuel":
{{VVG menu top}}<br>'''''Fuel system:''''' | [[VVG:Overview|Overview]] | [[VVG:Common components|Common components]] | [[VVG:Filling|Filling]] | [[VVG:Plumbing|Plumbing]] | [[VVG:Vegetable oil|Vegetable oil]] | [[VVG:Electrical|Electrical]] |</font></div><br>
Here's what's produced, as seen in "http://www.bytesmiths.com/wiki/VVG:Overview": <div align="center"><font size="-3">| <b><a href="/wiki/index.php/Veggie_Van_Gogh" title="Veggie Van Gogh">Veggie Van Gogh</a></b> |<br /> <p>| <a href="/wiki/index.php/VVG:Fuel_system" title="VVG:Fuel system">Fuel system</a> | <a href="/wiki/index.php/VVG:Body%2C_chassis%2C_driveline" title="VVG:Body, chassis, driveline">Body, chassis, driveline</a> | <a href="/wiki/index.php?title=VVG:Electronics&action=edit" class="new" title="VVG:Electronics">Electronics</a> | <a href="/wiki/index.php/VVG:Living_quarters" title="VVG:Living quarters">Living quarters</a> | <a href="/wiki/index.php/VVG:FAQ" title="VVG:FAQ">FAQ</a> | <a href="/wiki/index.php/Biofuel_links" title="Biofuel links">Biofuel links</a> |</font> </p> </div> <p><br /><i><b>Fuel system:</b></i> | <a href="/wiki/index.php/VVG:Overview" title="VVG:Overview">Overview</a> | <a href="/wiki/index.php/VVG:Common_components" title="VVG:Common components">Common components</a> | <a href="/wiki/index.php/VVG:Filling" title="VVG:Filling">Filling</a> | <a href="/wiki/index.php/VVG:Plumbing" title="VVG:Plumbing">Plumbing</a> | <a href="/wiki/index.php?title=VVG:Vegetable_oil&action=edit" class="new" title="VVG:Vegetable oil">Vegetable oil</a> | <a href="/wiki/index.php?title=VVG:Electrical&action=edit" class="new" title="VVG:Electrical">Electrical</a> |</font></div><br /> </p>
And if you can visualize HTML no better than I, the stuff from "Template:VVG_menu_top" is centered and in a smaller font, but the stuff after that is left-justified, in normal font, and the final closing "</font></div>" show up literally. The HTML clearly contains a closing "</font></p></div>" after the first inclusion.
I made other changes that became visible, to convince myself this was not some obscure caching problem.
This is 1.4.0. I've been putting off merging with later releases -- could that be the problem?
A nice simple example, similar to what you're trying, is http://en.wikipedia.org/wiki/Template:Vfd_top and http://en.wikipedia.org/wiki/Template:Vfd_bottom - the first opens a div, the second closes it.
Yea, I can see that happening, specifically on Wikipedia:Deletion_process
But it looks like the {{menu top}} is getting closed off with "</font></p></div>", even though I did no such thing.
Are you looking at the source of just the template page on its own, out of context?
In the case above, I'm including the first template from the second that is supposed to close the open tags. I'm looking at both the second template, and also a page that includes it. I have tried it with both templates independent, and included independently on another page.
:::: Where a calculator on the ENIAC is equipped with 18,000 vacuum tubes and weighs 30 tons, computers in the future may have only 1,000 vacuum tubes and weigh only 1 1/2 tons. -- Popular Mechanics, March 1949 :::: Jan Steinman http://www.Bytesmiths.com/Item/99AP35
mediawiki-l@lists.wikimedia.org