Skip to main content
Recent Posts
21
Addons / Re: TinyPortal for Elkarte
Last post by Vague Whiner -
Quote from: tino – It's only on postgre, MySQL install's fine.

Development version cannot be installed on PostgreSQL apparently and the version that can be downloaded from the addons seems to have some issue :(

After I install the one from the addons I get this:

2023-01-26_04-48.png

And index seems to get whole page stuffed into the left column. When clicking the TinyPortal settings it seems again duplicate the whole page in the place I suppose those settings should be. TP admin menu is showing on the left column though.
22
Support / Re: Markdown in posts
Last post by Spuds -
Almost forgot ... those inline code tags, like code tags themselves, are complicated.  There are two other areas to look for edits.

The first is in Codes.php  (which holds all the BBC definitions) in that file you will see a new BBC code called [ icode] for inline code.  You will need to grab that new definition

Next there are edits in PreparseCode.php which works to prevent rendering tags inside of code blocks (or icode blocks)  Search around in there for icode, there will be a new function _validateICodeBlocks(); and updates in the tokenizeCodeBlocks which is used to hide code blocks from the BBC parser and later restore them.

I'm sure there are some other areas I've forgotten about, but that should be enough to get one started.
23
Support / Re: Markdown in posts
Last post by Spuds -
Its quite a bit different than that old post, however I don't see any reason why it could not be backported to 1.1 as the BBC parsing engine is mostly the same.

In 2.0 the specific parser is in the BBC directory, called MarkdownParser.php  and if you look at that it only supports a handful of tags (more could be added).

~~strike~~ strike
**bold** bold
__bold__ bold
*italic* italic
_italic_ italic
> quote this --> must be at start of a line
Quotequote this
--- for a hr/rule --> must be start of line 

And the last one supported is 
Code: [Select]
`` place your inline code between tic makrs
for code tags  these can occur anywhere you like

You would use the above file, and then make several edits to BBCParser.php so it makes the calls in the right spots.  You could start by trying these edits https://github.com/elkarte/Elkarte/commit/2a09f1f3a886d2e72d5c67d3d75890fe01d3c7ef#diff-468eb79dae407e0d904a413cf5c6de1b7eb09caefb103591c754c67dd97d4702 plus the above file and see where that gets you ;)
24
Support / Markdown in posts
Last post by NetFlag -
I have noticed that the 2.0 dev supports markdown in posts. So I started to search if there is a simple solution to make this available for the 1.1.8 as well. Found this Markdown support  Reply #3, but no luck. Well, it's been 9 years, so things must have changed a lot. I am grateful for the right hint. :)
25
Bug Reports / Re: Last post on board index
Last post by Steeley -
Quote from: Burke_Knight – It does appear that it misses only when it cuts off a word in the middle.
Is it set to a certain character count?
I'm not sure if it's possible to force it to cut off before the next word if the word would go over the character count.

It's bad enough being compelled to construct html pages server side based on what client browser is being used and its features and limitations , but then also having to know what font and font size, window size, etc.  the client browser is set to is crazy. At some point the server is just going to send the template to the client and say "here is the content,  YOU make it look right". :rofl::rofl:
26
Bug Reports / Re: Last post on board index
Last post by Burke_Knight -
It does appear that it misses only when it cuts off a word in the middle.
Is it set to a certain character count?
I'm not sure if it's possible to force it to cut off before the next word if the word would go over the character count.
27
Bug Reports / Re: Last post on board index
Last post by Steeley -
Quote from: Spuds – It is supposed to cut/break , as opposed to line wrapping.  Wrapping the text would make a real mess of the layout.

That said it should show the ... (ellipsis) when it has to break that line (unless the short subject would overflow, in which case its just clipped).  Not sure what is going on there, something to more to look at !

I noticed that the presence (or not) of the elipsis depends on the width of the viewing window..  if I make the viewing window wider (or narrower) it comes and goes  (i.e., make it wider they appear, or disappear, continuing making it wider and they reappear or disappear again. It's like the window size changes in pixel increments but the "elipsis display" calculation is in, oh, say, 10 pixel increments.
28
Bug Reports / Re: Last post on board index
Last post by Spuds -
It is supposed to cut/break , as opposed to line wrapping.  Wrapping the text would make a real mess of the layout.

That said it should show the ... (ellipsis) when it has to break that line (unless the short subject would overflow, in which case its just clipped).  Not sure what is going on there, something to more to look at !
29
Bug Reports / Last post on board index
Last post by Burke_Knight -
I had just noticed this and was not sure if would be system bug, or theme bug.
When viewing the board index, the last post for the boards gets cut off.
Now, that's normal, unless it's supposed to go to another line and finish, but when do cut off, I notice it has the typical the ...'s.
However, if a word is cut off, it won't do the ... but cuts off at the end.
If look at the screenshot, you'll see what I mean.

Non_Wrap.png