It is currently Thu Apr 18, 2024 2:08 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 18 posts ] 
Author Message
Offline
 Post subject: Diagrams
Post #1 Posted: Sun Apr 18, 2010 1:11 pm 
Site Admin
User avatar

Posts: 1125
Location: Allegan, MI, USA
Liked others: 18
Was liked: 121
Rank: KGS 9k
Universal go server handle: Jordus
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*

_________________
I'm thinking...

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #2 Posted: Sun Apr 18, 2010 2:33 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
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.

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #3 Posted: Sun Apr 18, 2010 2:49 pm 
Site Admin
User avatar

Posts: 1125
Location: Allegan, MI, USA
Liked others: 18
Was liked: 121
Rank: KGS 9k
Universal go server handle: Jordus
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).

_________________
I'm thinking...

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #4 Posted: Tue Apr 20, 2010 6:35 am 
Gosei
User avatar

Posts: 1435
Location: California
Liked others: 53
Was liked: 171
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
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...

_________________
KGS 4 kyu - Game Archive - Keyboard Otaku

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #5 Posted: Tue Apr 20, 2010 8:34 am 
Judan
User avatar

Posts: 5539
Location: Banbeck Vale
Liked others: 1103
Was liked: 1456
Rank: 1D AGA
GD Posts: 1512
Kaya handle: Test
Here is an attempt. I don't think that it is practical.


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

_________________
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #6 Posted: Tue Apr 20, 2010 8:37 am 
Gosei
User avatar

Posts: 2060
Location: Texas
Liked others: 546
Was liked: 173
Rank: KGS 3k
GD Posts: 264
KGS: Chew
Once diagrams work, I request the addition of a Malkovich forum. =D

_________________
Someday I want to be strong enough to earn KGS[-].

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #7 Posted: Tue Apr 20, 2010 8:40 am 
Oza

Posts: 2264
Liked others: 1180
Was liked: 552
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]

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #8 Posted: Tue Apr 20, 2010 8:41 am 
Judan
User avatar

Posts: 5539
Location: Banbeck Vale
Liked others: 1103
Was liked: 1456
Rank: 1D AGA
GD Posts: 1512
Kaya handle: Test
Anyone know how to print extended ascii?

_________________
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #9 Posted: Tue Apr 20, 2010 8:55 am 
Oza

Posts: 2264
Liked others: 1180
Was liked: 552
Joaz Banbeck wrote:
Anyone know how to print extended ascii?

which encoding? Its different depending on the encoding.

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #10 Posted: Tue Apr 20, 2010 9:11 am 
Judan
User avatar

Posts: 5539
Location: Banbeck Vale
Liked others: 1103
Was liked: 1456
Rank: 1D AGA
GD Posts: 1512
Kaya handle: Test
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.

_________________
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207


Last edited by Joaz Banbeck on Tue Apr 20, 2010 9:14 am, edited 1 time in total.
Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #11 Posted: Tue Apr 20, 2010 9:12 am 
Gosei
User avatar

Posts: 1435
Location: California
Liked others: 53
Was liked: 171
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
The forum seems to be using UTF-8. If you have the appropriate fonts, you should be able to see some fancy symbols:

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

_________________
KGS 4 kyu - Game Archive - Keyboard Otaku

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #12 Posted: Tue Apr 20, 2010 9:20 am 
Lives in gote
User avatar

Posts: 399
Location: Shanghai, China
Liked others: 5
Was liked: 35
Rank: EGF 2d KGS 3d
GD Posts: 353
KGS: freegame
whaaa those are chess pieces

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

_________________
Laurens
Go school: freegame's Teaching School
Author of: The Next Move a book for 15-3kyu players.

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #13 Posted: Tue Apr 20, 2010 10:05 am 
Gosei
User avatar

Posts: 1435
Location: California
Liked others: 53
Was liked: 171
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
But they are chess pieces preceeded by a skull and crossbones, biohazard symbol and radiation symbol (and a telephone and a snowman...)

_________________
KGS 4 kyu - Game Archive - Keyboard Otaku

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #14 Posted: Wed Apr 21, 2010 4:00 pm 
Lives with ko
User avatar

Posts: 251
Location: Waterloo, Ontario (Canada)
Liked others: 110
Was liked: 155
Rank: AGA 1k
GD Posts: 1190
KGS: apetresc
IGS: apetresc
OGS: apetresc
Universal go server handle: apetresc
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.

_________________
The road to wisdom? Well, it's plain, and simple to express: Err, and err, and err again; but less, and less, and less!
Image Image Image Image

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #15 Posted: Wed Apr 21, 2010 4:04 pm 
Gosei
User avatar

Posts: 1435
Location: California
Liked others: 53
Was liked: 171
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
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]

_________________
KGS 4 kyu - Game Archive - Keyboard Otaku

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #16 Posted: Wed Apr 21, 2010 4:08 pm 
Lives with ko
User avatar

Posts: 251
Location: Waterloo, Ontario (Canada)
Liked others: 110
Was liked: 155
Rank: AGA 1k
GD Posts: 1190
KGS: apetresc
IGS: apetresc
OGS: apetresc
Universal go server handle: apetresc
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!

_________________
The road to wisdom? Well, it's plain, and simple to express: Err, and err, and err again; but less, and less, and less!
Image Image Image Image

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #17 Posted: Wed Apr 21, 2010 5:06 pm 
Gosei
User avatar

Posts: 1435
Location: California
Liked others: 53
Was liked: 171
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
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.

_________________
KGS 4 kyu - Game Archive - Keyboard Otaku

Top
 Profile  
 
Offline
 Post subject: Re: Diagrams
Post #18 Posted: Wed Apr 21, 2010 7:31 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
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.

_________________
be immersed

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group