Kunena 6.3.8 Released

The Kunena team has announce the arrival of Kunena 6.3.8 [K 6.3.8] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.

Question Emoticons in posts are not displayed

More
1 year 3 months ago #21 by Gindi
So that I don't get bored, I did a bit of research.
I think I found that Kunena loads the emoticons via the setting in "/components/com_kunena/template/aurelia/layouts/bbcode/image/default.php" and displays the path as img.

If Kunena would load the emoticons via the setting in "/components/com_kunena/template/system/layouts/bbcode/attachment/image.php", the codes for displaying the emoticons would have to be used.

Since I am a layman in programming, I don't know which screw I would have to turn to test this.

Gindi
 

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #22 by rich
If I remember correctly, we already had this with other symbols, so that they did not work with the relative paths (without prefixed folder names) if the installation was in a subfolder.
But this could be corrected, so I think there is a solution for smilies as well.

Important! Always create a backup before you make any changes to your website!
The following user(s) said Thank You: Gindi

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago - 1 year 2 months ago #23 by Gindi

Now I see the cause. If you copy the test page back to the live page, the smilies work again. It seems that the live page is installed on root, and locally in a subfolder. This changes the path from:
/media/kunena/emoticons/00003127.gif
to
/BFB434test/media/kunena/emoticons/00003127.gif


 
The error exists not only from root to subfolder but also from subfolder to subfolder.
I have created two test versions, Test1 and Test2.
In Test1 I installed a backup of the livesite and created a post in which I installed a row with seven emoticons from the editor menu bar.
Below that I created the same emoticons with smileyCode.
Then I created a backup of Test1 and installed it in Test2.
I opened the newly created post from Test1 in Test2 and to my surprise both rows of test emoticons were displayed.
Then I right-clicked/explored (Q) the emoticons and found that the top row displayed the address Test1 as the URL, while the emoticons in the bottom row displayed the address Test2 as the URL.
After I deleted the test version Test 1, these emoticons of the upper row were only displayed as image-symbol.
The emoticons of row 2 with smileyCode were still displayed.

I also tested the same with Joomla 3.10.12, with the same result.

Addition:
In the file /libraries/kunena/External/Nbbc/src/BBCode.php everything about smileys is explained. From row 673 onwards, the "Smiley Management" begins, the explanations of which could certainly help the Kunena team to solve the "SmileyCode" problem.
The explanations from the beginning on class BBCode, instance variables and public functions are also very helpful.

Gindi
Last edit: 1 year 2 months ago by Gindi.

Please Log in or Create an account to join the conversation.

Time to create page: 0.422 seconds