Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

wikifarm

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


lighans at gmail

Mar 30, 2005, 3:38 AM

Post #1 of 12 (458 views)
Permalink
wikifarm

Although it's my habit to first lurk a bit on a mailinglist, then
write, I've got an issue which bothers me so much I deny my normal
behaviour (too much difficult english words in a too lang sentence for
a simple dutch guy).

While working with my wiki, I want to create different layouts for
different peaces of my wiki. I could just install different
mediawiki's, but that is a bit too much space consuming, so after a
while of searching I found the word Wikifarm.
Only problem is that there is no information regarding wikifarms and
mediawiki. )-:
the question: Should the solution be somewhere in wikifarms or are
there other ways to achieve multiple layouts?

thanks in advance

Lighans
--
My mediawiki effort (in dutch): http://huijgen.ligfiets.net/mediawiki/


Jan at Bytesmiths

Mar 30, 2005, 10:44 AM

Post #2 of 12 (473 views)
Permalink
Re: wikifarm [In reply to]

On 30 Mar 2005, at 02:38, Hans Huijgen wrote:

> While working with my wiki, I want to create different layouts for
> different peaces of my wiki. I could just install different
> mediawiki's, but that is a bit too much space consuming...

I installed *one* copy of MediaWiki 1.4, then wrote a script that
duplicated the directory structure and hard-linked the files. Result is
multiple wikis in nearly the same space. (Unix only -- I don't think
you can do that in Windows.)

This might not be exactly what you're looking for, but may be a place
to start.

:::: Base 8 is just like base 10, if you are missing two fingers. - Tom
Lehrer
:::: Jan Steinman <http://www.Bytesmiths.com/Item/003AA08>


astronouth7303 at gmail

Mar 30, 2005, 1:10 PM

Post #3 of 12 (469 views)
Permalink
Re: wikifarm [In reply to]

It's been mentioned that if you hack the vars in LocalSettings.php so
that the includes, maintenance, and languages directories are one
place (eg, a global location), but extensions, images, and skins are
someplace else (a user-specific location), you can change the
variables so it works. (I should try it just to see how it works.)

What one could do is use rewrite rules so that all Wiki requests, no
matter for which one it is, are funelled through the same index.php.
Then LocalSettings.php will parse the query and extract which wiki it
is for. It then uses this to set some paths, and include the
appropriate LocalSettings.php.

On Wed, 30 Mar 2005 09:44:00 -0800, Jan Steinman <Jan [at] bytesmiths> wrote:
>
> On 30 Mar 2005, at 02:38, Hans Huijgen wrote:
>
> > While working with my wiki, I want to create different layouts for
> > different peaces of my wiki. I could just install different
> > mediawiki's, but that is a bit too much space consuming...
>
> I installed *one* copy of MediaWiki 1.4, then wrote a script that
> duplicated the directory structure and hard-linked the files. Result is
> multiple wikis in nearly the same space. (Unix only -- I don't think
> you can do that in Windows.)
>
> This might not be exactly what you're looking for, but may be a place
> to start.
>
> :::: Base 8 is just like base 10, if you are missing two fingers. - Tom
> Lehrer
> :::: Jan Steinman <http://www.Bytesmiths.com/Item/003AA08>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] Wikimedia
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>


--
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Has lots of invites.


f-x.p at laposte

Mar 30, 2005, 2:04 PM

Post #4 of 12 (461 views)
Permalink
Re: wikifarm [In reply to]

Its not much of a problem to insert a variable in the xhtml-slim for the
call to the css.
I think you could choose the value of the variable depending on the
namespace of the page (easy) on or the name of the page...those are
custom changing layout without the use of cookie.
Then of course, you can use a cookie, for different layout depending on
people visiting your site.

Although I used this method just to change the language of the menu
depending on the language of the visitor's browser, I really think it
could be easily adapt for the name of the css (or the directory, but
beware, I'm not sure how it will be handled by the users monobook
features... better disable this)

http://www.fxparlant.net

François

Hans Huijgen wrote:
> Although it's my habit to first lurk a bit on a mailinglist, then
> write, I've got an issue which bothers me so much I deny my normal
> behaviour (too much difficult english words in a too lang sentence for
> a simple dutch guy).
>
> While working with my wiki, I want to create different layouts for
> different peaces of my wiki. I could just install different
> mediawiki's, but that is a bit too much space consuming, so after a
> while of searching I found the word Wikifarm.
> Only problem is that there is no information regarding wikifarms and
> mediawiki. )-:
> the question: Should the solution be somewhere in wikifarms or are
> there other ways to achieve multiple layouts?
>
> thanks in advance
>
> Lighans


Jan at Bytesmiths

Mar 30, 2005, 2:08 PM

Post #5 of 12 (450 views)
Permalink
Re: wikifarm [In reply to]

On 30 Mar 2005, at 12:10, Jamie Bliss wrote:

> It's been mentioned that if you hack the vars in LocalSettings.php so
> that the includes, maintenance, and languages directories are one
> place (eg, a global location), but extensions, images, and skins are
> someplace else (a user-specific location), you can change the
> variables so it works. (I should try it just to see how it works.)

That sounds like a lot of work! Here's how I do it. Feel free to leave
my .signature on. I got into the habit of putting at least one colon in
front back in the 80's, when I was pretty active in a shell script
mailing list... ;-)
----------------
#!/bin/bash
##
# Link the wiki files into another directory for use as a copy.
#
# $1: where to put the wiki
#
# Where the originals are
basedir=/Library/WebServer/include/wiki

# Should not need to change anything below this line.
#
# Where the target website is
#
if [ ! -d "$1" ]; then
echo $0 error, $1 does not exist; exit 999;
fi

#
# Resolve relative name, if needed.
#
stardir="$PWD"
cd "$1"
targetdir="$PWD"
cd "$startdir"

#
# Setup the base wiki directory.
#
umask=027
[ -d "$targetdir/wiki" ] || mkdir "$targetdir/wiki"
chgrp www "$targetdir/wiki"
targetdir="$targetdir/wiki"

#
# Hard-link files in $1 directory to $2 directory, both of which exist,
# recursively doing the same in any subdirs found.
# Paths must be absolute.
#
depth=-1
function linkall() {
echo
((depth=$depth+1))
for (( i=$depth; $i > 0; i=$i-1 )) ; do
echo -n ' ';
done
echo -n "linking $1: "
local here="$PWD"
cd "$1"
local f
for f in *
do
if [ -d "$f" ]; then
mkdir "$2/$f"; chgrp www "$2/$f"; linkall
"$1/$f" "$2/$f" ;
else
echo -n '.';
ln "$1/$f" "$2/$f";
fi
done
cd "$here"
echo -n '/'
((depth=$depth-1))
}

linkall "$basedir" "$targetdir"
echo

#
# Explicitly handle exceptions.
#
chmod 770 "$targetdir/images"
chmod 770 "$targetdir/config"
rm "$targetdir/LocalSettings.php"

echo
echo "Now go to http://hostname/wiki/config and set up the
configuration"
echo "REMEMBER remove or write protect the config directory afterward!"
echo

:::: If busses stop at a bus station, and trains stop at a train
station, what happens at a work station?
:::: Jan Steinman <http://www.IslandSeeds.org/wiki>


lists-MediaWiki-l at ira

Apr 5, 2005, 1:35 AM

Post #6 of 12 (468 views)
Permalink
Re: wikifarm [In reply to]

Quoting Jan Steinman, from the post of Wed, 30 Mar:
>
> >While working with my wiki, I want to create different layouts for
> >different peaces of my wiki. I could just install different
> >mediawiki's, but that is a bit too much space consuming...
>
> I installed *one* copy of MediaWiki 1.4, then wrote a script that
> duplicated the directory structure and hard-linked the files. Result is
> multiple wikis in nearly the same space. (Unix only -- I don't think
> you can do that in Windows.)

well, hardlinks, surprisingly enough, are possible in Woodnose, but M$
will not admit it openly, rather burry this fact deep in some MSDN
article they hope nobody reads :-)

> This might not be exactly what you're looking for, but may be a place
> to start.

sounds like he was looking for different thing, if I understood -
different CSS for different pages in the SAME wiki...

--
Too cool for school
Ira Abramov
http://ira.abramov.org/email/


astronouth7303 at gmail

Apr 5, 2005, 3:15 PM

Post #7 of 12 (469 views)
Permalink
Re: Re: wikifarm [In reply to]

On Apr 5, 2005 4:35 AM, Ira Abramov <lists-MediaWiki-l [at] ira> wrote:
> Quoting Jan Steinman, from the post of Wed, 30 Mar:
> >
> > >While working with my wiki, I want to create different layouts for
> > >different peaces of my wiki. I could just install different
> > >mediawiki's, but that is a bit too much space consuming...
> >
> > I installed *one* copy of MediaWiki 1.4, then wrote a script that
> > duplicated the directory structure and hard-linked the files. Result is
> > multiple wikis in nearly the same space. (Unix only -- I don't think
> > you can do that in Windows.)
>
> well, hardlinks, surprisingly enough, are possible in Woodnose, but M$
> will not admit it openly, rather burry this fact deep in some MSDN
> article they hope nobody reads :-)
>

Yes... I remember doing that for a system file that was always locked.
Deleting it was a pain, though...

Anyway, for those literate in C, it involves a call to
CreateHardLink(), which is defined as:
BOOL CreateHardLink(
LPCTSTR lpFileName, // link name name
LPCTSTR lpExistingFileName, // target file name
LPSECURITY_ATTRIBUTES lpSecurityAttributes
);

I'll send anyone the short program I have (I can't say I wrote it,
don't remember) to make a hard link. The API is only supported,
however, on 2k and XP.

-- Jamie
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Have lots of invites. Gmail now had 2GB.


slowpoke at gmail

Apr 5, 2005, 6:05 PM

Post #8 of 12 (460 views)
Permalink
Re: Re: wikifarm [In reply to]

On Apr 5, 2005 5:15 PM, Jamie Bliss <astronouth7303 [at] gmail> wrote:
>
> Anyway, for those literate in C, it involves a call to
> CreateHardLink(), which is defined as:
> BOOL CreateHardLink(
> LPCTSTR lpFileName, // link name name
> LPCTSTR lpExistingFileName, // target file name
> LPSECURITY_ATTRIBUTES lpSecurityAttributes
> );
>
> I'll send anyone the short program I have (I can't say I wrote it,
> don't remember) to make a hard link. The API is only supported,
> however, on 2k and XP.
>

Are you talking about junctions?
http://www.sysinternals.com/ntw2k/source/misc.shtml#junction


lists-MediaWiki-l at ira

Apr 5, 2005, 10:08 PM

Post #9 of 12 (470 views)
Permalink
Re: Re: wikifarm [In reply to]

Quoting Jamie Bliss, from the post of Tue, 05 Apr:
> Anyway, for those literate in C, it involves a call to
> CreateHardLink(), which is defined as:
> [...]
> I'll send anyone the short program I have (I can't say I wrote it,
> don't remember) to make a hard link. The API is only supported,
> however, on 2k and XP.

no need. you can get it with "hardlink magic" (freeware off the web) and
I do believe also with "ln" in a cygwin shell.

--
A dancer for money
Ira Abramov
http://ira.abramov.org/email/


Jan at Bytesmiths

Apr 9, 2005, 11:08 AM

Post #10 of 12 (456 views)
Permalink
Re: Re: wikifarm [In reply to]

On 5 Apr 2005, at 01:35, Ira Abramov wrote:

> Quoting Jan Steinman, from the post of Wed, 30 Mar:
>>
>> I installed *one* copy of MediaWiki 1.4, then wrote a script that
>> duplicated the directory structure and hard-linked the files.
>> (Unix only -- I don't think
>> you can do that in Windows.)
>
> well, hardlinks, surprisingly enough, are possible in Woodnose, but M$
> will not admit it openly, rather burry this fact deep in some MSDN
> article they hope nobody reads :-)

Yea, I meant as an accessible, supported, scriptable interface.

I used to make hardlinks in CP/M using an absolute disk editor to
duplicate FAT table entries, too, but I didn't claim that CM/P
supported it! :-)

:::: Where did my money go? <http://www.warresisters.org/piechart.htm>
:::: Jan Steinman <http://www.Bytesmiths.com/Item/99AU34>


Jan at Bytesmiths

Sep 13, 2005, 2:24 PM

Post #11 of 12 (463 views)
Permalink
Re: WikiFarm [In reply to]

> From: Michele Ong <nekopan [at] gmail>
>
> Been trying to work out how to run small collaborative group wikis
> off the
> one install and it looks like WikiFarms might be the way to go.
> However, I
> can't seem to figure out the details of how wikicities or wikipedia
> have
> done it...

I don't know if this is what you're looking for, but I wrote a script
that created a directory structure, then hard-linked or copied (as
appropriate) the various WikiPedia files. Then you edit the copied
ones, and the hard-linked ones work as though they were a copy.


:::: The antidote to fear is action!
:::: Jan Steinman <http://www.IslandSeeds.org>


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l


nekopan at gmail

Sep 13, 2005, 6:25 PM

Post #12 of 12 (469 views)
Permalink
Re: Re: WikiFarm [In reply to]

Hi,

Thanks Jamie, Jan. I think Jamie's suggestion will do what I need. I just
needed confirmation that you needed a separate instance of tables for each
and where to get it to do the decision making. :)

(ie. I wasn't sure if there was Magic(TM) involved ;)

Ta!

On 9/14/05, Jan Steinman <Jan [at] bytesmiths> wrote:
>
> > From: Michele Ong <nekopan [at] gmail>
> >
> > Been trying to work out how to run small collaborative group wikis
> > off the
> > one install and it looks like WikiFarms might be the way to go.
> > However, I
> > can't seem to figure out the details of how wikicities or wikipedia
> > have
> > done it...
>
> I don't know if this is what you're looking for, but I wrote a script
> that created a directory structure, then hard-linked or copied (as
> appropriate) the various WikiPedia files. Then you edit the copied
> ones, and the hard-linked ones work as though they were a copy.
>
>
> :::: The antidote to fear is action!
> :::: Jan Steinman <http://www.IslandSeeds.org>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] Wikimedia
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.