Skip to main content
Recent Posts
51
Bug Reports / [1.1.9] Open Graph / Schema.org metadata bug
Last post by Acido -
If you enable the Open Graph / Schema.org metadata function added in 1.1.9, there is an issue if listing a post where a user has been deleted as they will become a guest user and no longer have a href defined and the page will generate the following error when loading:

Code: [Select]
Notice: Undefined index: href

    Undefined index: href
    PHP Fatal error: Uncaught exception 'ErrorException' with message 'Undefined index: href' in /var/www/test/sources/subs/Metadata.integrate.php:238
    Stack trace:
    #0 /var/www/test/sources/subs/Metadata.integrate.php(238): error_handler(integer, string, string, integer, array)
    #1 /var/www/test/sources/subs/Metadata.integrate.php(106): getPostSchema()
    #2 /var/www/test/sources/subs/Metadata.integrate.php(76): setContext()
    #3 /var/www/test/sources/Hooks.class.php(110): prepare_topic_metadata(integer)
    #4 /var/www/test/sources/Subs.php(1434): hook(string, array)
    #5 /var/www/test/sources/SiteDispatcher.class.php(366): call_integration_hook(string, array)
    #6 /var/www/test/index.php(136): dispatch()
    #7 /var/www/test/index.php(66): elk_main()
    #8 {main}
    thrown in /var/www/test/sources/subs/Metadata.integrate.php on line 238

I fixed it by doing this modification but something better maybe required?

Code: (from) [Select]
'url' => $this->data['member']['href']
Code: (to) [Select]
'url' => empty($this->data['member']['href']) ? null : $this->data['member']['href']
52
Feature Discussion / Re: How To Implement This My Chess Forum?
Last post by ahrasis -
Nice, I also play chess in my free time, but I am not sure whether I am into it for now, as it has been some times since I looked into ElkArte or its addons code, but may be in the future. May be somebody else might be interested to develop this addon.

Edited: Looking at its wiki, I noticed that there is a sample to be used together with SimpleMachine forum mod known as Custom BBCodes Manager Module.

https://sourceforge.net/p/pgn4web/wiki/User_Notes_simplemachines/

This the closest to ours if some one wishes to develop an addon for this in ElkArte.

Of course ElkArte addon for BBC is actually simpler and we have few addons like that already that can be used as samples.
54
Feature Discussion / Re: How To Implement This My Chess Forum?
Last post by Steeley -
OK, the way you posed the question initially seemed to imply (to me, anyway) ,that you wished to show the board (and board animation?) without displaying the actual code. 

The website page -> http://www.phpbb.com/support/docs/en/3.3/kb/article/adding-custom-bbcodes-in-phpbb3/
..explains the code implementation, so is it correct that you desire to know where in the ElkArte admin panel (or underlying php code) you would make the additions to support the chess function in order to replicate the display and animation as shown in the test board -> http://pgn4web-test.casaschi.net/phpbb/viewtopic.php?f=2&t=2  ?

If that is a "yes", then I'll step aside and defer to @Spuds or one of the other code chefs here to dish that up..
55
Addons / Re: [ADDON] ElkArte Ajax Chat
Last post by ahrasis -
Which one did you install? @Spuds shared 1.1 just a few post before yours, though I am not sure that gonna work either as I have never installed it and it seems pretty old too.
56
Feature Discussion / Re: How To Implement This My Chess Forum?
Last post by Vector -
The website https://sourceforge.net/p/pgn4web/wiki/User_Notes_phpBB/ offers an implementation of this on various forums, but there is no elkarte there.
This is what it looks like on phpbb http://pgn4web-test.casaschi.net/phpbb/viewtopic.php?f=2&t=2
phpbb3 https://www.chess.com/forum/view/general/how-phpbb3-users-can-post-chess-diagram
And the bulletin had pgn tags and the batch was displayed in the message.
pgn is taken from chessbase products and looks like this in code:

[Event "?"]
[Site "?"]
[Date "??.??.??"]
[Round "?"]
[White "player"]
[Black "?"]
[Result "*"]
[PlyCount "8"]

1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 *

57
Support / Re: embedded youtube videos
Last post by Acido -
Sorry to necro this thread, but recently found myself having to do the same thing (alignment of embedded video) the best solution i found was to change display: block; to display: inline-block; on the elk_video containers (including videoheader) and now it works with alignment bbc.
58
Addons / Re: [ADDON] ElkArte Ajax Chat
Last post by Vector -
When installing the latest version of the chat on the forum version 1.1.9, it gives an error - vsprintf(): Argument #2 ($values) must be of type array, string given
59
Feature Discussion / Re: How To Implement This My Chess Forum?
Last post by Steeley -
Hello Vector,

pgn is a format for recording chess games in ASCII. I'm a bit confused why you would post the game code if you don't want people to see the moves in the game..
{If you just want to display the board layout (without the moves that built it), that's probably best done with a screenshot image of the chess program output/display (chess202x, etc.).}

Since this is (to me) an obvious solution to the "problem" of people seeing the chess moves from a program output intended to show the chess moves , I anticipate I'm not really understanding what you're trying to do  - can you explain better?
60
Feature Discussion / How To Implement This My Chess Forum?
Last post by Vector -
Hello! I have a chess forum. but there is no way to insert the game bbcode [pgn] [/pgn] into the message and the game appears in the message, people see the moves. Please tell me how this can be implemented on my chess forum?