Editor & BB Code Manager

Editor & BB Code Manager 2.0.1 Patch Level 1

No permission to download
I refer to this option:
wwqBDfD.png



And to the "None" phrase when the image is aligned :).

How can I translate this?
 
Hello.
I installed your addon and tested it a little bit.
I tried to change the colors, but if i try to save may changes the colors are getting resetted.
What can i do?

I also found a second issue.
If i use these pre-defined font sizes 9, 10, 12, 15, 18, 22, 26 i only see 10, 12, 15, 18, 22, 26.
If i change it to 8, 9, 10, 12, 15, 18, 22, 26 i see 9, 10, 12, 15, 18, 22, 26.
The first size is always missing.
 

Attachments

  • Ashampoo_Snap_2018.09.11_11h55m36s_005_.webp
    Ashampoo_Snap_2018.09.11_11h55m36s_005_.webp
    8.8 KB · Views: 3
  • Ashampoo_Snap_2018.09.11_11h55m50s_006_.webp
    Ashampoo_Snap_2018.09.11_11h55m50s_006_.webp
    2.3 KB · Views: 4
  • Ashampoo_Snap_2018.09.11_11h57m33s_008_.webp
    Ashampoo_Snap_2018.09.11_11h57m33s_008_.webp
    26.3 KB · Views: 4
  • Ashampoo_Snap_2018.09.11_11h57m58s_009_.webp
    Ashampoo_Snap_2018.09.11_11h57m58s_009_.webp
    25.9 KB · Views: 4
Last edited:
Yep. I also have a problem with missing addon icon in admin ACP.

1536909129852.webp

This happens because it tries to load it using root path /styles/fonts/editor-manager/editor-manager.svg which works okay when forum is located on it's own domain. But this approach is not working when forum and other engine are sharing the same domain (for example, when forum is in folder called mydomain.ru/community using root path will give mydomain.ru/styles/... instead of mydomain.ru/community/styles.
 
Hi @Lukas W.,

i just finished reading through this thread to make sure someone hasn't asked about this before .... and i could only find @Ignite mentioning something similar:
@Lukas W. can u possibly make it so HIDEPOSTS is dynamic and not just hardcoded? Same for the thanks hide to so that things like this can be done.

[HIDEPOSTS=15]CONTENT[/HIDEPOSTS]

i would also be interested in an option like that .... but also in addition - would it be possible to add one more HIDE option? namely something like [HIDEPOSTSHERE=5]CONTENT[/HIDEPOSTSHERE] ... which would basically only look at the amount of posts the user made in the thread where this BBcode was used? so it would only be visible for everyone who has at least 5 posts in the thread

thanks in advance for the reply and keep up the good work! :)
 
@Lukas W. Does this server error log from your add-on?

Code:
ErrorException: Template error: Cannot call method isIgnoring on a non-object (NULL) src/XF/Template/Templater.php:926

Generated by: Ghashful pozapoti Sep 10, 2018 at 4:34 PM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/nadda/pub...', 926, Array)
#1 src/XF/Template/Templater.php(926): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s0/public/bb_code_tag_quote.php(9): XF\Template\Templater->method(NULL, 'isIgnoring', Array)
#3 src/XF/Template/Templater.php(1249): XF\Template\Templater->{closure}(Object(DBTech\UserTagging\XF\Template\Templater), Array)
#4 src/addons/AddonsLab/LinkChecker/XF/Template/Templater.php(89): XF\Template\Templater->renderTemplate('bb_code_tag_quo...', Array, true)
#5 src/XF/BbCode/Renderer/Html.php(785): AddonsLab\LinkChecker\XF\Template\Templater->renderTemplate('public:bb_code_...', Array)
#6 src/XF/BbCode/Renderer/Html.php(776): XF\BbCode\Renderer\Html->getRenderedQuote('Thanks for shar...', 'Dibakor', Array, Array)
#7 [internal function]: XF\BbCode\Renderer\Html->renderTagQuote(Array, 'Dibakor, post: ...', Array, Array, Object(XenConcept\AdvancedPermissions\XF\BbCode\Renderer\Html))
#8 src/XF/BbCode/Renderer/Html.php(246): call_user_func(Array, Array, 'Dibakor, post: ...', Array, Array, Object(XenConcept\AdvancedPermissions\XF\BbCode\Renderer\Html))
#9 src/addons/KL/EditorManager/XF/BbCode/Renderer/Html.php(302): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#10 src/XF/BbCode/Traverser.php(54): KL\EditorManager\XF\BbCode\Renderer\Html->renderTag(Array, Array)
#11 src/XF/BbCode/Traverser.php(30): XF\BbCode\Traverser->renderSubTree(Array, Array)
#12 src/XF/BbCode/Traverser.php(18): XF\BbCode\Traverser->renderAst(Array, Object(KL\EditorManager\XF\BbCode\RuleSet), Array)
#13 src/XF/SubContainer/BbCode.php(216): XF\BbCode\Traverser->render('[QUOTE="Dibakor...', Object(XF\BbCode\Parser), Object(KL\EditorManager\XF\BbCode\RuleSet), Array)
#14 src/addons/KL/EditorManager/XF/Pub/Controller/Thread.php(36): XF\SubContainer\BbCode->render('[QUOTE="Dibakor...', 'html', 'post', Object(SV\ChangePostDate\XF\Entity\Post))
#15 src/XF/Mvc/Dispatcher.php(249): KL\EditorManager\XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', 'json', Object(XF\Mvc\ParameterBag), 'forums', Object(TickTackk\ContentCopyProtection\XF\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#19 src/XF.php(328): XF\App->run()
#20 index.php(13): XF::runApp('XF\\Pub\\App')
#21 {main}

Request state

array(4) {
  ["url"] => string(121) "/threads/videos-collection-19-small-sized.826/add-reply"
  ["referrer"] => string(134) "https://nirjonmela.com/threads/videos-collection-19-small-sized.826/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(8) {
    ["message_html"] => string(62) "<p>it's my first time to see it, i don't know how it open.</p>"
    ["last_date"] => string(10) "1522504912"
    ["last_known_date"] => string(10) "1535869819"
    ["klPage"] => string(0) ""
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(112) "/threads/videos-collection-19-small-sized.826/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
How can I translate this?
Those phrases are currently not translatable.


BTW, this add-on should have an icon...

View attachment 183105
Yep. I also have a problem with missing addon icon in admin ACP.

View attachment 183515

This happens because it tries to load it using root path /styles/fonts/editor-manager/editor-manager.svg which works okay when forum is located on it's own domain. But this approach is not working when forum and other engine are sharing the same domain (for example, when forum is in folder called mydomain.ru/community using root path will give mydomain.ru/styles/... instead of mydomain.ru/community/styles.
Fixed that for the next version, thanks!

Does Editor & BB Code Manager 1.1.0 support XF 2.0.10 (Froala editor updated to 2.8.4)?
I haven't noticed or heard of any incompatibility yet.

@Lukas W. Does this server error log from your add-on?
Not entirely certain, but I don't think so, no. At least not directly.

Hello.
I installed your addon and tested it a little bit.
I tried to change the colors, but if i try to save may changes the colors are getting resetted.

I'll have that fixed for the next update, thanks.

I also found a second issue.
If i use these pre-defined font sizes 9, 10, 12, 15, 18, 22, 26 i only see 10, 12, 15, 18, 22, 26.
If i change it to 8, 9, 10, 12, 15, 18, 22, 26 i see 9, 10, 12, 15, 18, 22, 26.
The first size is always missing.
I can't reproduce that, it seems to work just fine for me.
 
Can't read the page without registering. Either way, that template is from XenForo and the Editor Manager is not touching it.
 
I like the permission based bb codes, however there is a problem. They correctly restrict hiding the corresponding editor button and even prevent manual codes, however they also restrict bbcodes in quotes.

So if moderators have permission for the SIZE bb code, then someone quotes their post, you end up with seeing:
[SIZE=5]their post[/SIZE]
Is it possible to ignore the bbcode permissions in quotes? If this is not possible, can you at least hide the bb codes that aren't rendered?
 
Is it possible to ignore the bbcode permissions in quotes? If this is not possible, can you at least hide the bb codes that aren't rendered?

If I'd just render them all in the quote, people would gain access to the parsehtml bb code without having the correct permission. If I disable them as I do atm, they're not picked up by the parser anymore, so I can't remove them either.

Ability to paste tables into the editor. This would be perfect with this add-on.
We can play this game forever, but it's not gonna lead us anywhere. I don't know what I'd be missing, so all I can do is pass the ball off.
 
We can play this game forever, but it's not gonna lead us anywhere. I don't know what I'd be missing, so all I can do is pass the ball off.

Exactly, it is getting to be old listening to the same thing over and over and over and over again.
 
Sorry, must've missed that when I did the big chunk. It's not something I'm gonna look into this for this add-on, but it could be fairly easily done with a custom BB code.
 
If I'd just render them all in the quote, people would gain access to the parsehtml bb code without having the correct permission. If I disable them as I do atm, they're not picked up by the parser anymore, so I can't remove them either.
Is it possible to strip out the tags the user doesn't have permissions for the time they click Post Reply versus at the time they are rendered? Functionally, I just care about disabling the editor buttons (e.g. for font, size) based on user group, and as a much lower priority preventing someone from manually entering bbcodes (I say much lower, since 99.9% of my users would never edit bb code so I'm happy with a solution that only prevents 99.9%), but would be preferable to render the bbcodes that already exist versus leave them as plain text.
We can play this game forever, but it's not gonna lead us anywhere. I don't know what I'd be missing, so all I can do is pass the ball off.
I know this was a reply to someone else, but I'm actually interested - are you saying you don't understand the request?
 
Top Bottom