Re: Perl/MySQL based forums

2001-01-21 Thread Greg McCarroll

* Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
 
 No, I'm not going to code a forum package by hand. 
 

go on dave, it cant be that hard 

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: Perl/MySQL based forums

2001-01-21 Thread Aaron Trevena

On 21 Jan 2001, Dave Hodgkinson wrote:
 
 I know some people here had some experience with wwwthreads, but are
 there any alternatives?
 
 No, I'm not going to code a forum package by hand. 
 
With a little work wmforum is quite nice (easy enough to understand and
therefore make more modular and port to templatetoolkit) also its GPL so
you can fork it into something decent and release/use how you like. If you
have used forum software before its pretty easy to bang a decent ofrum out
of it.

slashcode and kuro5hins code are fairly heavy and un-necessary (also
wmforu works fine with mod_perl).

http://www.mawic.de/mwforum/


A.

-- 
A HREF = "http://termisoc.org/~betty" Betty @ termisoc.org /A
"As a youngster Fred fought sea battles on the village pond using a 
complex system of signals he devised that was later adopted by the Royal 
Navy. " (this email has nothing to do with any organisation except me)






Re: Perl/MySQL based forums

2001-01-21 Thread Dave Hodgkinson

Greg McCarroll [EMAIL PROTECTED] writes:

 * Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
  
  No, I'm not going to code a forum package by hand. 
  
 
 go on dave, it cant be that hard 

I'm sure there's a TT macro that does it all.

-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -



Re: Perl/MySQL based forums

2001-01-21 Thread Michael Stevens

On Sun, Jan 21, 2001 at 01:33:09PM +, Greg McCarroll wrote:
 * Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
  No, I'm not going to code a forum package by hand. 
 go on dave, it cant be that hard 

Having done it a few times, it *isn't* that hard...

Michael



Re: Perl/MySQL based forums

2001-01-21 Thread Dave Hodgkinson

Dave Hodgkinson [EMAIL PROTECTED] writes:

 Michael Stevens [EMAIL PROTECTED] writes:
 
  On Sun, Jan 21, 2001 at 01:33:09PM +, Greg McCarroll wrote:
   * Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
No, I'm not going to code a forum package by hand. 
   go on dave, it cant be that hard 
  
  Having done it a few times, it *isn't* that hard...
 
 I'm playing with mwforum right now. Seems OK.

Aside from all the inline HTML.

ARGH! When will people learn!

-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -



Re: Perl/MySQL based forums

2001-01-21 Thread Greg McCarroll

* Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
 Dave Hodgkinson [EMAIL PROTECTED] writes:
 
  Michael Stevens [EMAIL PROTECTED] writes:
  
   On Sun, Jan 21, 2001 at 01:33:09PM +, Greg McCarroll wrote:
* Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
 No, I'm not going to code a forum package by hand. 
go on dave, it cant be that hard 
   
   Having done it a few times, it *isn't* that hard...
  
  I'm playing with mwforum right now. Seems OK.
 
 Aside from all the inline HTML.
 
 ARGH! When will people learn!
 

it got the job done in the first n'th generation? yes? we'll solve
that problem in the n+1'th generation of computing and introduce
another batch of new ones



-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: Perl/MySQL based forums

2001-01-21 Thread Aaron Trevena

On 21 Jan 2001, Dave Hodgkinson wrote:

 Dave Hodgkinson [EMAIL PROTECTED] writes:
 
  Michael Stevens [EMAIL PROTECTED] writes:
  
   On Sun, Jan 21, 2001 at 01:33:09PM +, Greg McCarroll wrote:
* Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
 No, I'm not going to code a forum package by hand. 
go on dave, it cant be that hard 
   
   Having done it a few times, it *isn't* that hard...
  
  I'm playing with mwforum right now. Seems OK.
 
 Aside from all the inline HTML.
 
 ARGH! When will people learn!

I was in the process of converting it to TT when i lost a load of my work
at oven (forgot to follwo symlinks when I tar gzipped home).

A.

-- 
A HREF = "http://termisoc.org/~betty" Betty @ termisoc.org /A
"As a youngster Fred fought sea battles on the village pond using a 
complex system of signals he devised that was later adopted by the Royal 
Navy. " (this email has nothing to do with any organisation except me)






Re: Perl/MySQL based forums

2001-01-21 Thread Jonathan Stowe

On Sun, 21 Jan 2001, Aaron Trevena wrote:

 On 21 Jan 2001, Dave Hodgkinson wrote:
 
  Dave Hodgkinson [EMAIL PROTECTED] writes:
  
   Michael Stevens [EMAIL PROTECTED] writes:
   
On Sun, Jan 21, 2001 at 01:33:09PM +, Greg McCarroll wrote:
 * Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
  No, I'm not going to code a forum package by hand. 
 go on dave, it cant be that hard 

Having done it a few times, it *isn't* that hard...
   
   I'm playing with mwforum right now. Seems OK.
  
  Aside from all the inline HTML.
  
  ARGH! When will people learn!
 
 I was in the process of converting it to TT when i lost a load of my work
 at oven (forgot to follwo symlinks when I tar gzipped home).
 

I always had that problem until I stuffed everything in CVS :)

/J\
-- 
Jonathan Stowe   |   
http://www.gellyfish.com |   I'm with Grep on this one 
http://www.tackleway.co.uk   |




Re: Perl/MySQL based forums

2001-01-21 Thread Greg McCarroll

* Jonathan Stowe ([EMAIL PROTECTED]) wrote:
 On Sun, 21 Jan 2001, Aaron Trevena wrote:
  On 21 Jan 2001, Dave Hodgkinson wrote:
   Dave Hodgkinson [EMAIL PROTECTED] writes:
Michael Stevens [EMAIL PROTECTED] writes:
 On Sun, Jan 21, 2001 at 01:33:09PM +, Greg McCarroll wrote:
  * Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
   No, I'm not going to code a forum package by hand. 
  go on dave, it cant be that hard 
 Having done it a few times, it *isn't* that hard...
I'm playing with mwforum right now. Seems OK.
   Aside from all the inline HTML.
   ARGH! When will people learn!
  I was in the process of converting it to TT when i lost a load of my work
  at oven (forgot to follwo symlinks when I tar gzipped home).
 I always had that problem until I stuffed everything in CVS :)

it's a sign of how we have not moved away from the current computing
metaphor to something else - boo to filesystems bring on object storage!




-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: Perl/MySQL based forums

2001-01-21 Thread Dave Hodgkinson

Aaron Trevena [EMAIL PROTECTED] writes:

 I was in the process of converting it to TT when i lost a load of my work
 at oven (forgot to follwo symlinks when I tar gzipped home).

Don't you hate it when that happens?

I've managed to hack in the requisite headers and footers (a
containing, constraining table) so I'm in business.

-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -



Re: Perl/MySQL based forums

2001-01-21 Thread Aaron Trevena

On 21 Jan 2001, Dave Hodgkinson wrote:

 Aaron Trevena [EMAIL PROTECTED] writes:
 
  I was in the process of converting it to TT when i lost a load of my work
  at oven (forgot to follwo symlinks when I tar gzipped home).
 
 Don't you hate it when that happens?
 
 I've managed to hack in the requisite headers and footers (a
 containing, constraining table) so I'm in business.

Don't spose you could bang it on line once you've done a bit so I don't
have to reapeat both of our work?

A. 

-- 
A HREF = "http://termisoc.org/~betty" Betty @ termisoc.org /A
"As a youngster Fred fought sea battles on the village pond using a 
complex system of signals he devised that was later adopted by the Royal 
Navy. " (this email has nothing to do with any organisation except me)






Re: Perl/MySQL based forums

2001-01-21 Thread Dave Hodgkinson

Aaron Trevena [EMAIL PROTECTED] writes:

 On 21 Jan 2001, Dave Hodgkinson wrote:
 
  Aaron Trevena [EMAIL PROTECTED] writes:
  
   I was in the process of converting it to TT when i lost a load of my work
   at oven (forgot to follwo symlinks when I tar gzipped home).
  
  Don't you hate it when that happens?
  
  I've managed to hack in the requisite headers and footers (a
  containing, constraining table) so I'm in business.
 
 Don't spose you could bang it on line once you've done a bit so I don't
 have to reapeat both of our work?

No, no. I inlined 'em. No templates. 

Dave // Beyond lazy...

-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -



Re: Perl/MySQL based forums

2001-01-21 Thread Jonathan Stowe

On Sun, 21 Jan 2001, Greg McCarroll wrote:
 * Jonathan Stowe ([EMAIL PROTECTED]) wrote:
  On Sun, 21 Jan 2001, Aaron Trevena wrote:
   On 21 Jan 2001, Dave Hodgkinson wrote:
Dave Hodgkinson [EMAIL PROTECTED] writes:
 Michael Stevens [EMAIL PROTECTED] writes:
  On Sun, Jan 21, 2001 at 01:33:09PM +, Greg McCarroll wrote:
   * Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
No, I'm not going to code a forum package by hand. 
   go on dave, it cant be that hard 
  Having done it a few times, it *isn't* that hard...
 I'm playing with mwforum right now. Seems OK.
Aside from all the inline HTML.
ARGH! When will people learn!
   I was in the process of converting it to TT when i lost a load of my work
   at oven (forgot to follwo symlinks when I tar gzipped home).
  I always had that problem until I stuffed everything in CVS :)
 it's a sign of how we have not moved away from the current computing
 metaphor to something else - boo to filesystems bring on object storage!

Its a sign that its time for Grep's drug test:)

Actually I do agree with you, but this stuff is still quite difficult to
implement using Open Source tools ... 

[ wondering how long we can keep the beautiful symmetry of the quoting ]

/J\
-- 
Jonathan Stowe   |   
http://www.gellyfish.com |   I'm with Grep on this one 
http://www.tackleway.co.uk   |




Re: Perl/MySQL based forums

2001-01-21 Thread Leon Brocard

Jonathan Stowe sent the following bits through the ether:
 On Sun, 21 Jan 2001, Greg McCarroll wrote:
  * Jonathan Stowe ([EMAIL PROTECTED]) wrote:
   On Sun, 21 Jan 2001, Aaron Trevena wrote:
On 21 Jan 2001, Dave Hodgkinson wrote:
 Dave Hodgkinson [EMAIL PROTECTED] writes:
  Michael Stevens [EMAIL PROTECTED] writes:
   On Sun, Jan 21, 2001 at 01:33:09PM +, Greg McCarroll wrote:
* Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
 No, I'm not going to code a forum package by hand. 
go on dave, it cant be that hard 
   Having done it a few times, it *isn't* that hard...
  I'm playing with mwforum right now. Seems OK.
 Aside from all the inline HTML.
 ARGH! When will people learn!
I was in the process of converting it to TT when i lost a load of my work
at oven (forgot to follwo symlinks when I tar gzipped home).
   I always had that problem until I stuffed everything in CVS :)
  it's a sign of how we have not moved away from the current computing
  metaphor to something else - boo to filesystems bring on object storage!
 [ wondering how long we can keep the beautiful symmetry of the quoting ]

Dunno, but it looks very pretty:
http://astray.com/pretty_quoting.png

Leon
-- 
Leon Brocard.http://www.astray.com/
yapc::Europehttp://yapc.org/Europe/

... Don't thank me for insulting you. It was my pleasure...



Re: Perl/MySQL based forums

2001-01-21 Thread Greg Cope

Dave Hodgkinson wrote:
 
 Michael Stevens [EMAIL PROTECTED] writes:
 
  On Sun, Jan 21, 2001 at 01:33:09PM +, Greg McCarroll wrote:
   * Dave Hodgkinson ([EMAIL PROTECTED]) wrote:
No, I'm not going to code a forum package by hand.
   go on dave, it cant be that hard 
 
  Having done it a few times, it *isn't* that hard...
 
 I'm playing with mwforum right now. Seems OK.

I've a site in production that uses this - works fine.

Greg


 
 --
 Dave Hodgkinson, http://www.hodgkinson.org
 Editor-in-chief, The Highway Star   http://www.deep-purple.com
   Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
   -



Re: Perl/MySQL based forums

2001-01-21 Thread Robin Szemeti

On Sun, 21 Jan 2001, you wrote:

 Aside from all the inline HTML.
 
 ARGH! When will people learn!

speaking of which ;)

so .. in an idle moment I'm supposed to be re jazzin' a mates website ..
uh huh, ... no inline HTML for me I says .. so instead of my normal method
[1] I think so .. everyone keeps drooling on about Template::Toolkit  best
use that. .. now heres the thing .. its really basic and I feel stoopid
asking .. yes I have read the docs but obvioulsy not the right bits...
how do you get the process() method to return the output to you instead of
printing the damn thing.??? 

I'll prolly have worked it out ... but hey feel free to jump right in

[1] me normal way ... make up a package containing all the ickle bits of
templates as subs taking a hashref  and then just return the contents.
never any code in the templates,  err like this ...

# calling routine
my (%data);
$data{text}='Hello World';
my ($result)=Template::test(\%data);

print $result;
exit 0;


package Template;

sub test{

my ($data)=shift;

return END;
table
  tr
td$data-{text}/td
  /tr
/table
END
}

-- 
Robin Szemeti

The box said "requires windows 95 or better"
So I installed Linux!



Re: Perl/MySQL based forums

2001-01-21 Thread Leon Brocard

Robin Szemeti sent the following bits through the ether:

 how do you get the process() method to return the output to you instead of
 printing the damn thing.??? 

Obviously didn't read the bit about the process method eh?

   # text reference
   $tt-process(\$text)
   || die $tt-error(), "\n";
...
   By default, the processed template output is printed to
   STDOUT.  The process() method then returns 1 to indicate
   success.  A third parameter may be passed to the process()
   method to specify a different output location.  This value
   may be one of: a plain string indicating a filename which
   will be opened (relative to OUTPUT_PATH, if defined) and
   the output written to; a file GLOB opened ready for
   output; a reference to a scalar (e.g. a text string) to
   which output/error is appended; a reference to a
   subroutine which is called, passing the output as a
   parameter; or any object reference which implements a
   'print' method (e.g. IO::Handle, Apache::Request, etc.)
   which will be called, passing the generated output as a
   parameter.

You'd be wanting the string ref as above, matie.

Leon
-- 
Leon Brocard.http://www.astray.com/
yapc::Europehttp://yapc.org/Europe/

... Don't thank me for insulting you. It was my pleasure...



Re: Perl/MySQL based forums

2001-01-21 Thread Robin Szemeti

On Sun, 21 Jan 2001, you wrote:

  how do you get the process() method to return the output to you instead of
  printing the damn thing.??? 
 
 Obviously didn't read the bit about the process method eh?

 You'd be wanting the string ref as above, matie.

ooh ta .. now where was that hiding ..???...  I hate it when that happens
:)

ohh found it .. bottom of Template.3

Thanks.


so while I'm on .. what is wisdom on this then .. my method was going to
be  write all the data extraction from the db in plain Perl, whenever I
need to do anyting html make sure thats in a template and call that from
the main proggy, so in theory all the structure is defined by the
templates .. however obvioulsy the structure will also depend on the perl
code so is it better to write subs and then call them from templates so
templates define the structure too, I REALLY want to avoid the putting
code into the templates and using the various [% FOREACH ...%] cos thats
just as bad as putting html inline innit?

-- 
Robin Szemeti

The box said "requires windows 95 or better"
So I installed Linux!



Re: Perl/MySQL based forums

2001-01-21 Thread Robin Szemeti

On Sun, 21 Jan 2001, I wrote:

 so while I'm on .. what is wisdom on this then .. my method was going to

err hold your answers .. I'm just reading the docs on (the recently
discovered) templatetoolkit.org

-- 
Robin Szemeti

The box said "requires windows 95 or better"
So I installed Linux!