Wiki
From MyWebber Wiki
Enable smooth scrolling
- Download the jquery js file from the web and upload it to /wiki/skins/common/jquery-1.3.1.min.js
- Modify wiki/skins/MonoBook.php (assuming MonoBook is the default layout)
<script src="/wiki/skins/common/jquery-1.3.1.min.js" type="text/javascript"></script> <script> $(document).ready(function(){ $('a[href*=#]').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var $target = $(this.hash); $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']'); if ($target.length) { var targetOffset = $target.offset().top; $('html,body').animate({scrollTop: targetOffset}, 1000); return false; } } }); }); </script>
Remove footer links
Just a place a minus sign in the content of these pages...
- http://wiki.mywebber.com/mediawiki/index.php?title=MediaWiki:Privacy
- http://wiki.mywebber.com/mediawiki/index.php?title=MediaWiki:Disclaimers
- http://wiki.mywebber.com/mediawiki/index.php?title=MediaWiki:Aboutsite
Backup from Godaddy hosting
- Copy maintenance/ to maintain/
- remove maintain/.htaccess
- Modify
maintain/dumpBackup.php
From these lines
require_once( 'commandLine.inc' ); require_once( 'backup.inc' );
to this
$argv = array( '--full' => 1 ); $_SERVER = array( 'not from web hack' ); require_once( 'commandLine.inc' ); require_once( 'backup.inc' ); $options['full'] = true;
- Place a cron job to call this php
wget http://wiki.mywebber.com/mediawiki/maintain/dumpBackup.php -O $WEBSITES_DATA/wikiBackup.xml
