Main Page
From CenterfocusWiki
Line 27: | Line 27: | ||
- External Links should be opened in browser target '_top'. Unfortunately the setting | - External Links should be opened in browser target '_top'. Unfortunately the setting | ||
- | $wgExternalLinkTarget='_top'; has no effect . Alternative solution: adapt 'mediawiki/includes/Linker.php' | + | $wgExternalLinkTarget='_top'; has no effect . Alternative solution: adapt in 'mediawiki/includes/Linker.php' the function 'makeExternalLink': |
- | + | ... $pos = strpos($url, "centerfocus.de"); | |
$posip = strpos($url,"83.169.17.207"); | $posip = strpos($url,"83.169.17.207"); | ||
if ($pos === false || $posip===false ) { | if ($pos === false || $posip===false ) { | ||
Line 35: | Line 35: | ||
return '<a href="'.$url.'"'.$style.' >'.$text.'</a>'; | return '<a href="'.$url.'"'.$style.' >'.$text.'</a>'; | ||
} | } | ||
+ | ... |
Revision as of 18:58, 12 January 2011
MediaWiki has been successfully installed.
Consult the User's Guide for information on using the wiki software.
Getting started
Gelöscht:
DNS Eintrag Typ A 'ns.centerfocus.de'
-in die wikidb in Tabelle 'interwiki' den Eintrag ('cf' 'http://www.centerfocus.de/$1' 1,0 ) eingefügt - dient zur Linkabkürzung im Wiki : http://www.centerfocus.de/ wird durch cf abgekuerzt.
-in skins/MonoBook.php im div 'p-tb' login-Eintrag hinzugefuegt:
<div class="portlet" id="p-tb"> <h5><?php $this->msg('toolbox') ?></h5> <div class="pBody"> <ul> <li> <a href="/mediawiki/index.php/Special:Userlogin">Login</a></li>
- http://83.169.17.207/mediawiki/MediaWiki:Common.css und http://83.169.17.207/mediawiki/MediaWiki:Common.css bearbeitet
- External Links should be opened in browser target '_top'. Unfortunately the setting $wgExternalLinkTarget='_top'; has no effect . Alternative solution: adapt in 'mediawiki/includes/Linker.php' the function 'makeExternalLink':
... $pos = strpos($url, "centerfocus.de"); $posip = strpos($url,"83.169.17.207"); if ($pos === false || $posip===false ) { return '<a href="'.$url.'"'.$style.' target="_top">'.$text.'</a>'; } else { return '<a href="'.$url.'"'.$style.' >'.$text.'</a>'; }
...