Please visit the Conversion Interest page to help us gauge DIYers interest!

We Support Net Neutrality, please visit battleforthenet.com and savetheinternet.com and wikipedia.org/wiki/Net_neutrality for more information.

User:WikiAdmin

From My wiki
Jump to navigation Jump to search


User Management

Namespace


Special:Interwiki Management - Interwiki Help

Use http://www.eaa-phev.org/wiki/index.php?flushcache to flush this servers cache.

Search Enhancements

per [1] In includes/SpecialSearch.php there is a function showResults( $term ) which formats and outputs all the search results from a query, near the top add:

$wgOut->addHTML( wfMsg( 'Googlesearch', $term ) ); # add
$wgOut->addWikiText( wfMsg( 'searchresulttext' ) );# above this

In LocalSettings.php

# $wgDisableTextSearch = true;
# $wgSearchForwardUrl = 'http://www.google.com/search?q=$1';
# $wgSearchForwardUrl = 'http://www.google.com/search?q=site%3Adigipen.edu+%22$1';
$wgNamespacesToBeSearchedDefault = array(
-1 => 0,       # Default setting
 0 => 1,       # Main
 1 => 0,       # Main talk
 2 => 0,       # User
 3 => 0,       # User talk
 4 => 1,       # SiteName
 5 => 0,       # SiteName talk
 6 => 1,       # Image
 7 => 0,       # Image talk
 8 => 0,       # MediaWiki
 9 => 0,       # MediaWiki talk
10 => 1,       # Template
11 => 0,       # Template talk
12 => 0,       # Help
13 => 0,       # Help talk
14 => 1,       # Category
15 => 0);      # Category talk

No longer used: Added to skins/DPSkin31.php at about line 407

// Begin New Portions to search more namespaces
$s .= "<input type=\"hidden\" value=\"1\" name=\"ns0\">";  // Main
//$s .= "<input type=\"hidden\" value=\"1\" name=\"ns1\">";  // Talk
$s .= "<input type='hidden' name=\"searchx\" value=\"" . htmlspecialchars( wfMs( "Go" ) ) . "\" />";

Also change this

. "&nbsp&nbsp<input type='submit' name=\"fulltext\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";

To this

. "&nbsp&nbsp<input type='submit' name=\"searchx\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";

SVN and Trac Management

full notes at definity-systems.org

Etch Packages Subversion 1.1.4 and Trac 0.8.1

$ sudo apt-get install subversion subversion-tools
! libsvn-ruby1.8
+ db4.2-util libconfig-inifiles-perl libneon24 libsvn0
+ python2.3-subversion subversion subversion-tools
$ sudo apt-get install trac enscript
! gv postscript-viewer lpr libapache2-mod-python
!!python-egenix-mxdatetime python-setuptools
+ enscript libsqlite0 python-clearsilver python-sqlite
+ python2.3-clearsilver python2.3-sqlite trac
$ sudo apt-get install python-mysqldb
! python-egenix-mxdatetime python2.3-egenix-mxdatetime
+ python-mysqldb python2.3-mysqldb
$ sudo apt-get install libapache2-svn
$ sudo apt-get install libapache2-mod-python
+ libapache2-mod-python libapache2-mod-python2.3
$ sudo apt-get install python-setuptools
+ python-setuptools python2.3-dev python2.3-setuptools
$ sudo apt-get install python-clearsilver

Initializing projects

More subversion access examples here: http://www.andrewpangborn.com/blog/index.php?/archives/2-SVN-Administration-Fun.html

Manage user access to projects

$ sudo joe /var/www/eaa-phev.org/svn/projects/authz

Manage permissions within trac

sudo trac-admin $tb/$p permission list

Initializing a svn repository & trac project:

p=test_team_one
sb=/var/www/eaa-phev.org/svn/projects
tb=/var/www/eaa-phev.org/trac/projects
tt=/usr/share/trac/templates
sudo svnadmin create "$sb/$p" --fs-type fsfs
sudo chown -R www-data:www-data "$sb/$p"
sudo trac-admin $tb/$p initenv $p sqlite:db/trac.db svn $sb/$p $tt
sudo chown -R www-data:www-data "$tb/$p"
sudo trac-admin $tb/$p permission remove anonymous "TICKET_CREATE" "TICKET_MODIFY" "WIKI_CREATE" "WIKI_MODIFY"
sudo trac-admin $tb/$p permission add authenticated TRAC_ADMIN
echo edit $tb/$p/conf/trac.ini replacing http:\/\/trac.edgewall.com\/ with https:\/\/trac.eaa-phev.org\/projects\/$p
echo edit $tb/$p/conf/trac.ini adding google urchin tracker to footer
#sudo trac-admin $tb/$p initenv $p sqlite:db/trac.db svn $sb/$p $tt #v9+
#sed -i s/http:\/\/trac.edgewall.com\//https:\/\/trac.eaa-phev.org\/projects\/$p $tb/$p/conf/trac.ini

The latest documentation can also always be found on the project website: http://projects.edgewall.com/trac/