Life In 19x19
http://lifein19x19.com/

Diagrams
http://lifein19x19.com/viewtopic.php?f=14&t=47
Page 1 of 1

Author:  Jordus [ Sun Apr 18, 2010 1:11 pm ]
Post subject:  Diagrams

In case you missed the section in introductions and guidelines,

Diagrams do not work yet.

If anyone thinks they can contribute to helping this issue I am all ears. For i have been trying different things to no avail...
I have attempted to contact Ross and Hikaru79 to see if they had any luck in their project.

*As a temp solution suggested by one member, We can create a diagram on sensei's library and then copy it. As long as it doesnt violate any of Sensei's Library rules and regulations it could temporarily let us post diagrams*

Author:  Kirby [ Sun Apr 18, 2010 2:33 pm ]
Post subject:  Re: Diagrams

I think that there are three advantages that GD has over this site right now:

1.) When people only want to use a forum, the front page of lifein19x19.com might be distracting to them. I think that the stuff on the front page is pretty cool, but it might be distracting to somebody that's only interested in the forum. I'm not sure about the best solution to this, since the features on the front page are kind of cool (particularly the pro game database)... Maybe you could show the most recent posts on the front page as well...? I'm not sure what the best option is with this. Maybe other people have different opinions about it.

2.) The diagram issue that you've brought up. I'm kind of busy these days, but you can PM me if you'd like with details of what needs to be done. If it seems like a feasible amount of work, maybe I could help you with this.

3.) Popularity - This one will probably fix itself in time, if people enjoy all of the other aspects of the site.

Author:  Jordus [ Sun Apr 18, 2010 2:49 pm ]
Post subject:  Re: Diagrams

I agree with the thing about the main page. The chat window is a test. The recent postings is displayed further down the page. i will be ending the main page a bit in the next day or so.

As far as the diagrams go, its not the amount of work that is preventing the diagrams from working. It is the fact that I am not sure how to get it to work. I had started with more superficial ideas and have recently graduated to trying to mess with the hard coding of the forum(in a test forum first of course).

Author:  fwiffo [ Tue Apr 20, 2010 6:35 am ]
Post subject:  Re: Diagrams

Looking at the PHPBB docs, it seems like bbcode is kinda limited in terms of how it works. One roundabout way is to have the bbcode substitute the diagram code with some javascript that calls a separate script on the server which calls sltxt2png and returns the appropriate <img> tag to insert. It's kinda a hack though. I'm gonna install phpbb on my own web space and see if I can get something working. Assuming I get some time...

Author:  Joaz Banbeck [ Tue Apr 20, 2010 8:34 am ]
Post subject:  Re: Diagrams

Here is an attempt. I don't think that it is practical.


|---------|---------|---------|---------|---------|---------|---------|---------|
|............|............|............|............|............|............|............|............|
|---------|---------|---------|---------|---------|---------|---------|---------|
|............|............|............|............|............|............|............|............|
|---------|------- :mrgreen: ----- :) -------|---------|---------|---------|---------|
|............|............|............|............|............|............|............|............|
|---------|------- :mrgreen: ----- :) -------|---------|---------|---------|---------|
|............|............|............|............|............|............|............|............|
|---------|------- :) -------|---------|---------|---------|---------|---------|
|............|............|............|............|............|............|............|............|
|---------|---------|---------|---------|---------|---------|---------|---------|
|............|............|............|............|............|............|............|............|
|---------|---------|---------|---------|---------|---------|---------|---------|
|............|............|............|............|............|............|............|............|
|---------|---------|---------|---------|---------|---------|---------|---------|
|............|............|............|............|............|............|............|............|
|---------|---------|---------|---------|---------|---------|---------|---------|

Author:  Chew Terr [ Tue Apr 20, 2010 8:37 am ]
Post subject:  Re: Diagrams

Once diagrams work, I request the addition of a Malkovich forum. =D

Author:  xed_over [ Tue Apr 20, 2010 8:40 am ]
Post subject:  Re: Diagrams

what about using the [ code ] tags with the ascii text diagrams?

Code:
[go]$$B The ear-reddening move
$$ ---------------------------------------
$$ | . . . . . . . . . X O O . . . . . . . |
$$ | . . . X . . . . . X O . O . O O X . . |
$$ | . . O O . X . . O X X O O . O X . . . |
$$ | . . . , . . . . . , . X X X . , X . . |
$$ | . . . . . X . . . . X . . . . X X . . |
$$ | . . O . . . . . . . . . . . . X O O . |
$$ | . . . . . . . . . . . . . O O O X X X |
$$ | . . . . . . . . . . . . . . X O O O X |
$$ | . . . . . 2 . . . 1 . . X O O X X X . |
$$ | . . . , . . . . . , . . O O X , X O . |
$$ | . . O . . . . . . . . . . . O X X O . |
$$ | . . . . . . . . . . . . . . O X O X . |
$$ | . . . . . . . . . . . . O . O X O O . |
$$ | . . O . . . . . . X . X O . O X . . . |
$$ | . . . . . . X . W . . X O X O X O . . |
$$ | . . X , X . . X . , . X O O X O O . . |
$$ | . . . . . X O X O . O O X X X X O O . |
$$ | . . . . . . X O . O O . O X X . X O . |
$$ | . . . . . . . . O . . O . X . X . X . |
$$ ---------------------------------------
$$ [1|http://senseis.xmp.net/?EarReddeningMove][/go]

Author:  Joaz Banbeck [ Tue Apr 20, 2010 8:41 am ]
Post subject:  Re: Diagrams

Anyone know how to print extended ascii?

Author:  xed_over [ Tue Apr 20, 2010 8:55 am ]
Post subject:  Re: Diagrams

Joaz Banbeck wrote:
Anyone know how to print extended ascii?

which encoding? Its different depending on the encoding.

Author:  Joaz Banbeck [ Tue Apr 20, 2010 9:11 am ]
Post subject:  Re: Diagrams

xed_over wrote:
Joaz Banbeck wrote:
Anyone know how to print extended ascii?

which encoding? Its different depending on the encoding.


Any encoding will do for experimenting. I just need a character that fills the whole character block, then using different colors, a board should be easy.

Author:  fwiffo [ Tue Apr 20, 2010 9:12 am ]
Post subject:  Re: Diagrams

The forum seems to be using UTF-8. If you have the appropriate fonts, you should be able to see some fancy symbols:

☎☠☣☢☃♔♕♖♗♘♙♚♛♜♝♞♟

Author:  freegame [ Tue Apr 20, 2010 9:20 am ]
Post subject:  Re: Diagrams

whaaa those are chess pieces

quick delete them or I have to remove my font's :twisted:

Author:  fwiffo [ Tue Apr 20, 2010 10:05 am ]
Post subject:  Re: Diagrams

But they are chess pieces preceeded by a skull and crossbones, biohazard symbol and radiation symbol (and a telephone and a snowman...)

Author:  apetresc [ Wed Apr 21, 2010 4:00 pm ]
Post subject:  Re: Diagrams

Hey guys, so here's the story about diagram embedding.

The reason why the default BBCode is not really good enough is because the default BBCode replacement engine only makes one pass through the text, doing a straight string substitution. That's all it's good for. The Sensei's Library diagram generator, however, is a PHP call that operates on the diagram string, so we need two passes.

I've got the code for doing these two passes written. Half of the code is in this GitHub repository. However, it's written for what appears to be a newer version of phpBB than what Jordus seems to have chosen. I'm not sure how straightforward it'll be to port my commits over to this one, but it shouldn't be too hard. You can see the diffs of the commits themselves here.

The second half of the code necessary for the updated engine still hasn't been committed even though Ross has reminded me, like, twice. I'll get on that :oops:

Once the changes there are ported over to this phpBB, the admin can actually use the BBCode panel in the admin center to add the diagrams. It's kind of a cool improvement to the BBCode engine that might even have a chance of being merged into the phpBB codebase properly. Maybe this can be a pilot project for that, for whichever admin wants to take it up.

Anyway, I think this is the way to go for diagram integration. I'll be glad to help further however I can.

Author:  fwiffo [ Wed Apr 21, 2010 4:04 pm ]
Post subject:  Re: Diagrams

Well, it's a good idea to upgrade to the latest phpbb regardless, but aren't diagrams working fine now?

Click Here To Show Diagram Code
[go]$$B Fwiffo wins a game for once!
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . O . O O . . O . O . |
$$ | . . . . . O . . O X . . X O O X O . . |
$$ | . O O , . O . . O X X X X X . X X O . |
$$ | . . X O O X . . O O O . . . X . . . . |
$$ | . . X . . X . 6 X 1 2 . O X O O O . . |
$$ | . X X O O X . X . 4 3 . X . X X . . . |
$$ | . O X X X X X O O . . . . X . . X . . |
$$ | . O X X O O X X O . . . . . . . . . . |
$$ | . O O X . . O O 5 , . . . . . , . . . |
$$ | . . . O . O . . . . . . . . . . X . . |
$$ | . O O O O . . X X . . . . . . . . . . |
$$ | . X . X . O . X O . . . . . . . . . . |
$$ | . . X . X O X X X O . . . . . X . . . |
$$ | . . . X . O X . X O . . . O X . . . . |
$$ | . X X O . O X X O O . . . O . , . . . |
$$ | . X O O . . X O X . . . . O X X . . . |
$$ | X . X O . . X O O . . . . . O X . . . |
$$ | . X . . . . . . . . . . . . . . . . . |
$$ ---------------------------------------[/go]

Author:  apetresc [ Wed Apr 21, 2010 4:08 pm ]
Post subject:  Re: Diagrams

Oh cool, yeah. I just registered ten minutes ago and saw this thread and figured it was still relevant, being used to the glacial pace of improvement at GD and all ;) I guess Kirby must have handrolled something similar all by himself :) Sweet!

Author:  fwiffo [ Wed Apr 21, 2010 5:06 pm ]
Post subject:  Re: Diagrams

Yeah, Kirby used a clever javascript hack to do the job. I had suggested the idea of using javascript elsewhere, but I don't know if he got the idea from me or came up with it himself.

Author:  Kirby [ Wed Apr 21, 2010 7:31 pm ]
Post subject:  Re: Diagrams

fwiffo wrote:
Yeah, Kirby used a clever javascript hack to do the job. I had suggested the idea of using javascript elsewhere, but I don't know if he got the idea from me or came up with it himself.


Well, mostly the idea came from trial and error. :-p First I just made a basic html file to see how sltxt2png worked. I thought it would be straightforward to use the bbcode, but it didn't seem to work right. After that, I played with it a bit.

There's still a bug in the caption code, which unkx80 brought up. I'm going to fix that now.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/