Extension:ChangePersonal/hi
This page is outdated. |
Please expand this page. |
This extension stores its source code on a wiki page. Please be aware that this code may be unreviewed or maliciously altered. They may contain security holes, outdated interfaces that are no longer compatible etc. Note: No localisation updates are provided for this extension by translatewiki.net . |
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
changepersonal रिलीज़ की स्थिति: अनानुरक्षित |
|
---|---|
कार्यान्वयन | पर्सर एक्सटेंशन |
विवरण | यह व्यक्तिगत लिंक बदलने की अनुमति देता है |
लेखक | Thomas Lorentsen (matxचर्चा) |
नवीनतम संस्करण | 0.9 (2007-11-15) |
MediaWiki | 1.11 |
लाइसेंस | कोई लाइसेंस निर्दिष्ट नहीं है |
डाउनलोड | नीचे देखें |
यह एक्सटेंशन क्या कर सकता है?
यह व्यक्तिगत_रल्स में परिवर्तन की अनुमति देने के लिए एक त्वरित विस्तार है। मैंने इसे विशेष पृष्ठ पर इंगित करने के लिए लॉगिन लिंक को संशोधित करने के लिए उपयोग किया। इस एक्सटेंशन के साथ अन्य व्यक्तिगत यूआरएल को जल्दी से संशोधित किया जा सकता है।
उपयोग
उस एक्सटेंशन को इंस्टॉल और संपादित या संलग्न करें जिसे आपको बदलने की आवश्यकता है
स्थापित
इस एक्सटेंशन को स्थापित करने के लिए, निम्न को स्थानीय सेटिंग्स में जोड़ें:
require_once("$IP/extensions/changepersonal.php");
कोड
<?
/*
* Change Personal for changing the personal urls
* @author Thomas Lorentsen
* @copyright © 2007 by Thomas Lorentsen
* @licence GNU General Public Licence 3.0 or later
*/
if( !defined( 'MEDIAWIKI' ) ) {
echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
die();
}
$wgExtensionCredits['parserhook'][] = array(
'name' => 'Change Personal',
'author' => 'Thomas Lorentsen',
'url' => 'https://www.mediawiki.org/wiki/Extension:ChangePersonal',
'description' => "Changes the personal urls such as the login link"
);
function changePersonal(&$personal_urls, &$wgTitle) {
# This points the login link at the top right to the special page
$personal_urls['login']['href'] = './Special:Userlogin?returnto=' . $wgTitle->mUrlform;
$personal_urls['anonlogin']['href'] = './Special:Userlogin?returnto=' . $wgTitle->mUrlform;
# Append to this as needed
return true;
}
$wgHooks['PersonalUrls'][] = 'changePersonal';
समस्याएं
विशेष पृष्ठों को देखते समय, यह पुनर्निर्देशन गलत होने का कारण बन सकता है। यह पाया गया है कि एक हार्डकोडेड यूआरएल काम का उपयोग करना।
एक बेहतर समाधान की जरूरत है!