Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use RPB Chessboard with bbpress? #65

Closed
drgibbon opened this issue Jun 27, 2016 · 11 comments
Closed

Ability to use RPB Chessboard with bbpress? #65

drgibbon opened this issue Jun 27, 2016 · 11 comments

Comments

@drgibbon
Copy link

I wonder if it would be easy to integrate RPB Chessboard with bbpress? I'd like to users to be able to post FENs and PGNs in bbpress threads using the [fen]/[pgn] shortcodes, and have them displayed just like they would be on a post or page.

@yo35
Copy link
Owner

yo35 commented Jun 29, 2016

Hi,
I've never tried to used RPB Chessboard with bbPress. (actually I'm not familiar with bbPress at all!) I'll have to try this plugin to see whether it is possible or not.

@drgibbon
Copy link
Author

drgibbon commented Feb 3, 2017

Did you manage to find out if this is possible at all? Would make for a great addition to our club's website :)

@yo35
Copy link
Owner

yo35 commented Feb 4, 2017

Hi,
From what I've seen, bbPress does not support shortcodes defined by third-party plugins in forum posts, but I do not master all the technical subtleties of bbPress. I've requested technical support on their forum:
https://bbpress.org/forums/topic/third-party-shortcodes-in-bbpress-posts/

@yo35
Copy link
Owner

yo35 commented Apr 23, 2017

Hi,
As of RPB Chessboard version 4.8.1 (just released), and assuming that the bbPress – Do Short Codes plugin is enabled (https://wordpress.org/plugins/bbpress-do-short-codes/), FEN diagrams should work in bbPress posts.

Unfortunately, the rendering of PGN games still does not work.

@drgibbon
Copy link
Author

Thanks for this! I will test it out.

@BrendanJNorman
Copy link

BrendanJNorman commented Nov 29, 2017

Hi,

Very interested in embedding PGNs in my bbpress posts too.

Any updates on compatibility?

EDIT: Can confirm that FENs are working, dying for PGN compatibility - even willing to pay if it works well. 💯

@yo35
Copy link
Owner

yo35 commented Dec 2, 2017

Hi,
Unfortunately, no update on this feature yet.

@BSEChess
Copy link

I realise this thread is rather old, but I figure it may be useful to keep all the related stuff together. Am I doing something wrong or does this no longer work?

You'd never said that PGNs worked, but I can't get FENs working in bbPress either. Using "inspect" reveals the javascript error:

Uncaught TypeError: $(...).removeClass(...).chessboard is not a function

Looking at other issues people have encountered this looks like it's a compatibility issue with plugins or themes, but I've put up a test version of the site and deactivated all the plugins other than bbPress, bbPress Do Short Codes and RPB Chessboard. I've also tried switching to the standard themes and I still get that error and no board. My debugging abilities are rather limited, so I don't know what else to look for.

The test site with the non-working bbPress post and replies is here

@yo35
Copy link
Owner

yo35 commented Jun 20, 2020

@BSEChess FEN rendering in bbPress has been broken because of optimizations made for #135.

As of version 5.7.0, a workaround is provided: go to the plugin compatibility settings (in admin, menu "Chess" > "Settings" > "Compatibility settings"), and disable "Lazy-loading for CSS/JavaScript files").

PGN still does not work in bbPress.

@yo35
Copy link
Owner

yo35 commented Jan 1, 2024

As of 2024, both FEN and PGN are working in bbPress, though with some restrictions. More details in #52.

@yo35
Copy link
Owner

yo35 commented Jan 1, 2024

Since the remaining problems are more related to bbPress and the bbPress – Do Short Codes plugin than to RPB Chessboard itself, I'm closing this issue.

@yo35 yo35 closed this as completed Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants