Search Results (Searched for: you do not have)
In the production system, it looks normal, meaning the button does have the icon. Otherwise, it works exactly the same in PROD as it does in TEST.
(My test system is a copy (using Akeeba) of the PROD system. -- My main focus was actually on testing the update to PHP 8.5—first in TEST, then in PROD )
Best regards
Karlheinz Bothmann
I don't know why you don't get the icon, but the translation string is missing.
I tested the poll, and besides the popup dialog nothing is happening, no entries in wysiwyg or bbcode view.
So the next point I must look for a solution.
btw. if you don't handle images in your forum,
you may try the CKEditor (see running here) , which is better coded (but haven't test the poll function yet)
(change in template settings - bbcode - 1st option)
Hello,I also included the nice undo.js plugin, which I have edit to include 2 buttons to the menu - just use and test it
(to add a plugin you must edit your template file com_kunena/templates/???/assets/js/sceditor.js (???=your template):
near the end (aurelia = line 714 + 776) you must add the plugin command like this:
sceditor.create(textarea, { = line 714 | sceditor.create(textarea_private, { = line 776
plugins: 'undo', adds undo plugin
format: 'bbcode',
toolbar: toolbar_buttons,
and of course the undo.js must be uploaded to the folder where sceditor.js (the main file) is stored
I have just tried to include the plugin undo but it doesn't want to be loaded because even putting a console.log in the code of undo.js itself and an alert i get nothing. I have tried to put the undo.js at the same place that teh sceditor.js script and even under plugins folder but it didn't hange anything. Someone has posted a change not yet inclued into sceditor to add undo/redo buttons : github.com/samclarke/SCEditor/issues/900...uecomment-1384386965 . I have tried i don't get able to get the the buttons redo/undo displayed
I have tried too with autoyoutube : www.sceditor.com/documentation/plugins/autoyoutube/ but it the same the plugin isn't laoded
(as it uses an iframe, it was a bit tricky to fetch the image properties)
EDIT:
In my euphory I was too fast.
Although the editor is working quite well, I forgot the bbcode part which is mainly needed to save the setting.
so stay quiet - I'm working on.
I also see, that sceditor ignores all Kunena config setting
(eg. left buttons if you had disabled them, no buttons for hide, spoiler or confidential)
I have edited the script, so if you have an image selected and click the image button,
the dialog pops up with the actual properties (at least url, height and width) of this image,
so you can edit them (in basic sceditor this is not possible, you must create new)
I also added 2 more properties during this work, so you now have a field for an ALT text,
and you have a select option, where you can set a float property for the image, to let the text float around.
It is only the sceditor.js file which has been changed (the bbcode is just used/edit as discussed before,
but take care if you use the new Kunena files (I think it will be included in v7.0.5), Kunena calls a sceditor.min.js,
so you must rename my file like the min version, otherwise (or in debug mode) it is just sceditor.js
this new file (based on v321) only works correctly if you use the updated Kunena files (which uses SCeditor v3.2.1)
with an edited version of bbcode.js and the little correction in libraries/src/BBCode/KunenaBBCode.php
(
I also included the nice undo.js plugin, which I have edit to include 2 buttons to the menu - just use and test it
(to add a plugin you must edit your template file com_kunena/templates/???/assets/js/sceditor.js (???=your template):
near the end (aurelia = line 714 + 776) you must add the plugin command like this:
sceditor.create(textarea, { = line 714 | sceditor.create(textarea_private, { = line 776
plugins: 'undo', adds undo plugin
format: 'bbcode',
toolbar: toolbar_buttons,
and of course the undo.js must be uploaded to the folder where sceditor.js (the main file) is stored
when deactivating a main category (but not explicite the subcategories) the forum doesn't show them all - that's fine,
BUT
you will see the newer entries of a not deactived subcategory if switching to "Recent topics".
is this as it should be??
ok, as I'm logged in as superadmin I always see the topics (also if the subcat is disabled),
but when disabled the topics are colored like "deleted" style und if only the maincategory
is disabled the topics looks normal.
now, just checked as basic user and it is what I have said:
if only the main-category is disabled the topics of an enabled subcategory are shown in recent
to hide these topics the subcategory must be disabled too
I don't understand why you want change this regex
because of the 2nd problem.
1. is the missing "translation" of image properties to bbcode
2. error when opening CKeditor if img has some attributes added within the tag using whitespace.
(disabling the bbcode does open the editor as it should be, so there must be a problem within bbcode)
for the first I'm ready with the insertation, but as there is the 2nd bug I cannot
test if the bbcode is correctly read and translated to html.
also I'm not shure if the CK bbcode plugin basicly will work with all the special addons like ebay, video etc.
In the demo it works : ckeditor.com/docs/ckeditor4/latest/examples/image.html , so it's probably the bbcode plugin which disable it when used
that's correct. the original bbcode plugin disables the properties settings of images (see "tab.remove('basic') in the screenshot,
mainly because the there is no implenentation of properties to the bbcode or
the main problem, as each addition (style= or direct width=) will be added using whitespace in the img tag, which causes problems.
In the moment I have done this:
in the ckeditor_config.js
config.removePlugins = 'bbcode'; //disable the original bbcode plugin, because included in the big minified file
config.extraPlugins = 'bbcode2'; //just renaming the standalone bbcode to bbcode2, so I can easily edit it
1st steps:
disabling the remove of properties dialog (see screenshot)
adding properties inclusion
I attach the bbcode2 plugin without any edition, (only the neccearry renaming to bbcode2 in the .add comand line 558)
- also I packed the plugin-edited.js version with my first test correction for imgsize
basicly I found this statement to the original bbcode plugin.js
The BBCode plugin is more of a showcase plugin which presents how to make your own implementation for bbcode. This is not a full bbcode implementation but more of a jump start code. This plugin doesn't support width for images and it is a user responsibility to add it.
There is a version 3.2.1 of SCeditor and i have updated it in developpement branch : github.com/Kunena/Kunena-Forum/commit/e1...2451928c95f256e08f0f
that's fine - I will look if there are important changes.
Nevertheless, as SCEditor generates a width x height property there is the need to change the lKunenaBBCode.php
to allow the 'x' letter (allow /^\d*x\d*$ line 728), otherwise Kunena would ignore it
(also the change to attribute 'size=' would be useful, so SCEditor could read old message styles)
There is a version 3.2.1 of SCeditor and i have updated it in developpement branch : github.com/Kunena/Kunena-Forum/commit/e1...2451928c95f256e08f0f
Hello,any thoughts about switching to the new CKEditor 5 ?
Yes, it's a possibility but because CKeditor 5 uses markdown and not support bbcode there should be a way to convert bbcode to markdown. I haven't looked at this actually.
In the demo it works : ckeditor.com/docs/ckeditor4/latest/examples/image.html , so it's probably the bbcode plugin which disable it when usedone step beyond:
the main problem is the very basic bbcode plugin
(somewhere I read it is just a kind of skeleton and must be edited for full/own use)
I don't understand why you want change this regex
I upload the plugin.js is someone can/wants help
as I'm not so good in RegEx Expressions: can someone check this line from the code, as my program marks an error hereCode:bbcPartsRegex: /(?:\[([^\/\]=]*?)(?:=([^\]]*?))?\])|(?:\[\/([a-z]{1,16})\])/ig
When looking the plugins/bbcode/plugin.js, there are two part where img is handled :
- github.com/ckeditor/ckeditor4/blob/maste...bcode/plugin.js#L611
- github.com/ckeditor/ckeditor4/blob/maste...bcode/plugin.js#L719
Hello,thank you,
can you explain in which file Kunena disables the image property settings ?
(in not in the ckeditor_config, may be in the image.js but Kunena has minified them, so hard to read).
I would like to experiment a bit more.
also do you know/see why CK Editor skipps if there is an attribute in the image tag (not depending on the value)?
I don't think that there are ways to disable this extra settings, in the CKeditor 4 docs they don't explain to disable these extra settings. We use the builder : ckeditor.com/cke4/builder which minify all itself. I have tried to download the version from ckeditor.com/cke4/builder i don't have neither the extra settings in image.
main aspect was to keep old messages (may be from update) in db also work.
old img tag was
so 1. edit the bbcode.js from sceditor (media/kunena/core/js/sceditor/bbcode.js)
line 566: (add 'size' attribute name) attribs = ' size=' + dom.width(element) + 'x' + dom.height(element)
to recognize the new 'size' attribute add these after line 578
//handle [img size=340x240]url[/img]
_important_ 2. in libraries/src/BBCode/KunenaBBCode.php
we must define the size connector 'x' to be allowed now (formerly only numbers \d*)
so line 728 must be edited to: allow /^\d*x\d*$/[/b]']
after this images will display in forum view and preview correctly, no matter if they come with
the new style from sceditor [img size=340x240] or from old kunena messages having [img size=340]
the big thing missing in SCEditor is, that the script has no possibility to edit img attributes
(if you activate an image and click the picture icon it does not load the properties of the selected image,
you have to delete and add new to change properties - or use the source code)
I could find out anything about CKEditor because Kunena has cut out property settings
can anyone help please ???
you can try with the attached files:
thanks again for your effort.
I tested the code changes and it still does not really fix my issue:
In your line 1616:
the most confusing thing is, that CK Editor works well on all messages #2 and up of a topic, but NOT on the first (opening) message.Could be a javascript which is corrupted or could be an issue with the language file for Ckeditor which is a javascript file
(also as written, SK Editor works on ALL)
so what I'm interested in, from the kunena insiders, if there is some db setting in this new versions 6-7 for the opening (first) message,
which I may have missed during my import (also because CK Editor works on the first message of the new created kunena 'welcome' message.
so what is the difference on calling the CK Editor on the top, first message against loading on a following message?
as there are no problems on higher messages the JS files seems to be ok, but as all are minified it is hard to read
thank you
EDIT:
I found out some more details:
it is not the first or second or somthing message, it depends on images.
(as mostly in the first message there are images, I thought just of the first as reason)
it only happens (or better does not
images included as attachment are no problems.
so CK Editor must have a problem with images included the "old way" not using attachment
any ideas ???
thanks for your fast answer and pull request.
You are right, I have a public part and just want to delete the private part of the message.
If I just change the if in line 1588 like you provided, the message automatically fallbacks to "No private message has been set, only private attachments" because of line 1612:
Also even if I would unset the $private->body there,
However if I quickly try to unset both, $private->body and $private->attachments, the private part is deleted as I would expect.
I don't have a Github account at work but I try to find the time to do some more debugging in private and will then answer your pull request.
Thanks again for your help.
I setup a new Joomla site with a fresh Kunena 7.0.2.
as this should be an update to an old J3 website I saved all Kunena db entries, updated them to the K7 schema and imported ALL
to the new installation.
everything works fine - instead of on error.
when I'm logged in as superuser I can edit or quote each message BUT NOT the first one of a topic.
(the new sample message of the kunena 7 install I can edit)
the CKeditor is opened, but no message appears and the browser console gives me this error:
Uncaught TypeError: can't access property "type", g is null
onTagClose /media/kunena/core/js/ckeditor.js?aa68f1:1298
parse /media/kunena/core/js/ckeditor.js?aa68f1:1295
fromBBCode /media/kunena/core/js/ckeditor.js?aa68f1:1299
b /media/kunena/core/js/ckeditor.js?aa68f1:1303
l /media/kunena/core/js/ckeditor.js?aa68f1:10
.....
and many, many more
I rerun the installation and during the db import I checked this after each single import,
but the import of categories, topics and messages must be present to open an old topic to check for this error.
in the moment I have not yet importet the kunena user tables, but on the installation before it was complete.
I don't know how the kunena script works on edit or reply and what rights or settings are checked during script run
may be some of you knows what is running in the background and can help me please to find if/where I must change
something. (in the db tables)
as far as I see every all other functions work.
btw. switching to private message the editor works fine
I wouldn't rule that out. In the Kunena 6.0 versions, it was very easy to trace the entries in the configuration report to the entries in the configuration. Since Kunena 7.0, this is hardly possible anymore. The entries in the configuration report are no longer in order but rather jumbled up.Hi Gindi, THX for your reply. So this means to me, that it's probably no configuration problem
.
Some entries have been added and some have been removed.
You should check the configuration settings thoroughly, as the new additions set defaults that you may not want.
In any case, I would synchronise the users and run the diagnostics in the Kunena Dashboard/Tools.
If the diagnostics show ‘Test failed’ for some entries, you can safely delete the error message.
If you click on Documentation in the menu bar at the top of the Kunena forum, you will find help for Kumema 6 and Kunena 7.Do you have an idea if there is a documentation available anywhere?
gindi
Hello,Hi rich,
I'm maybe a step further: I turned the extended php debugging on and get two error messages, that I couldn't interpret well - it seems that they are caused by the migration - how ever I wondering how this could be possible because kunena was set up completely new (now with v. 7.0.1).
Do you have a idea, what causes the following error and how to fix it?:
Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Forum\Category\KunenaCategory::$allow_ratings is deprecated in /mnt/web508/e1/97/510678697/htdocs/Update/libraries/kunena/src/Database/KunenaDatabaseObject.php on line 128 Deprecated: Creation of dynamic property
Since K6.0.0 beta3 the column allow_ratings has been renammed in allowRatings, so make an export of the table #__kunena_categories with phpmyadmin just in case. Then you can apply this query to fix the table :
Same here on table #__kunena_ranks before K6.0.0 beta3 there was a column nammed rank_id which has been renammed. so make an export of the table #__kunena_ranks with phpmyadmin just in case, then apply this query :and,
Warning: Undefined property: stdClass::$rankId in /mnt/web508/e1/97/510678697/htdocs/Update/libraries/vendor/joomla/database/src/DatabaseDriver.php on line 1309
THX