Thanks again Jim.
I almost got it working with the following code: http://www.stevefink.net/mediawiki/ldaptools_body.php
My only issue here is with the following line:
$wgOut->addHTML('<form method="POST" action="'.$_SERVER['PHP_SELF'].'">');
This posts to the page and rewrites the URL as
https://host.foo.com/index.php/$_SERVER%5B%27PHP_SELF%27%5D
and completely breaks my form.
I think if I can get that fixed, my special page will be golden.
Any advice would be appreciated!
- sf
Jim Hu wrote:
Hmm... seems like it should have worked then. But if there's an easier example go for it! I'll take a look at that myself.
On Apr 15, 2007, at 8:20 PM, Steve Finkelstein wrote:
MW - 1.9.3 PHP - 5.2.0
I've been referred to take a look at http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/examples/ SpecialIncludable.php?revision=19503&view=markup
Looks simpler to manage for a newcomer to PHP.
- sf
Jim Hu wrote:
What MW/php versions are you using? I didn't have to explicitly include, but I think MW autoloads the classes, which doesn't work in PHP4. That's my handwaving guess - the real experts can confirm or deny.
Jim On Apr 15, 2007, at 6:54 PM, Steve Finkelstein wrote:
When writing a SpecialPage, I receive the following error:
PHP Fatal error: Class 'SpecialPage' not found
Do I have to explicitly include SpecialPage.php in my code? It doesn't list it as such in the page listed below by Jim.
- sf
Jim Hu wrote:
I found the frameworks on this page to be helpful in building special pages
http://meta.wikimedia.org/wiki/Writing_a_new_special_page
Jim On Apr 14, 2007, at 4:15 PM, Ian Smith wrote:
So, you have a script which basically pops up an HTML form? Sounds like you want to make a new special page. This would be a page that you can link to, and which can access MW's security features - so you can restrict it to people who have confirmed email addresses, eg.
Find another extension that does something similar, and merge your code into it.
Ian
-----Original Message----- From: Steve Finkelstein [mailto:sf@stevefink.net] Sent: Saturday, April 14, 2007 12:53 PM Pacific Standard Time To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Tie in a script?
All,
Not sure what the correct terminology is, assuming it might be a hook or extension. Either way - I have existing scripts which I've written in PHP that simply allow users to change their LDAP password, etc. I'm looking to throw this code (it's just a form with basic PHP+LDAP support) into MediaWiki so users can change their password from there. Currently I have it linked as an external link and for security purposes, this isn't favorable.
Is there any suggestions on how I can begin to go about this? The correct documentation etc would be much preferred.
Thanks all!
- Steve
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
!DSPAM:1020,4622c69f13307424076780!