Code

Code 2.2.0

No permission to download

nicodak

Well-known member
Hello,
Is it possible to get only the lines numbers and lines highlightning displayed in the code window ? Not the Title field ?
Thanks !
 
Last edited:

nicodak

Well-known member
Hello, expand button and drag-drop button are displayed even they are not necessary, but randomly.
Can you check this ? :)
Capture d’écran 2021-02-18 114518.png
 

rdn

Well-known member
Line highlighting feature has a bug that can cause the editor to not display.

Example using this BBCode:

[CODE lang="html" title="Sample" highlight=""2-3""]
<div class="menu-content">
<h3 class="menu-header">Alerts</h3>
<div class="js-alertsMenuBody">
[/CODE]
 

nicodak

Well-known member
It works without double quotes on highlight settings : ""2-3"" instead of "2-3"
Do you manually add "" in the highlight lines field ?

try this
[CODE lang="html" title="Sample" highlight="2-3"]
<div class="menu-content">
<h3 class="menu-header">Alerts</h3>
<div class="js-alertsMenuBody">
[/CODE]
 

rdn

Well-known member
PHP 8.0.2 incompatible?
Receiving lots of this error:

Code:
Server error log
Error: Template email:activity_summary_latest_posts error: Call to undefined method CMTV\Code\XF\BbCode\Renderer\EmailHtml::getRenderedHide() src/addons/XenConcept/HideBBCode/XF/BbCode/Renderer/EmailHtml.php:30
Generated by: User Feb 24, 2021 at 10:20 PM
Stack trace
#0 src/addons/XenConcept/HideBBCode/BbCode/HideBbCodeTrait.php(133): XenConcept\HideBBCode\XF\BbCode\Renderer\EmailHtml->getRenderedHide('hidereact', Object(XF\Phrase), 'hidden')
#1 [internal function]: XenConcept\HideBBCode\XF\BbCode\Renderer\EmailHtml->renderTagHideReact(Array, '1,2,4', Array, Array, Object(XenConcept\HideBBCode\XF\BbCode\Renderer\EmailHtml))
#2 src/XF/BbCode/Renderer/Html.php(308): call_user_func(Array, Array, '1,2,4', Array, Array, Object(XenConcept\HideBBCode\XF\BbCode\Renderer\EmailHtml))
#3 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(CMTV\Code\XF\BbCode\RuleSet), Array)
#6 src/XF/SubContainer/BbCode.php(220): XF\BbCode\Traverser->render('[HEADING=1][CEN...', Object(XF\BbCode\Parser), Object(CMTV\Code\XF\BbCode\RuleSet), Array)
#7 src/XF/Template/Templater.php(2343): XF\SubContainer\BbCode->render('[HEADING=1][CEN...', 'emailHtml', 'post', Object(XFMG\XF\Entity\Post), Array)
#8 src/XF/Template/Templater.php(2358): XF\Template\Templater->fnBbCode(Object(XF\Mail\Templater), false, '[HEADING=1][CEN...', 'post', Object(XFMG\XF\Entity\Post), Array, 'emailHtml')
#9 src/XF/Template/Templater.php(2368): XF\Template\Templater->fnBbCodeSnippet(Object(XF\Mail\Templater), false, '[HEADING=1][CEN...', 'post', Object(XFMG\XF\Entity\Post), 300, Array, 'emailHtml')
#10 [internal function]: XF\Template\Templater->fnBbCodeTypeSnippet(Object(XF\Mail\Templater), false, 'emailHtml', '[HEADING=1][CEN...', 'post', Object(XFMG\XF\Entity\Post), 300)
#11 src/XF/Template/Templater.php(1103): call_user_func_array(Array, Array)
#12 internal_data/code_cache/templates/l1/s13/email/activity_summary_latest_posts.php(35): XF\Template\Templater->func('bb_code_type_sn...', Array, false)
#13 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(XF\Mail\Templater), Array, NULL)
#14 src/XF/Mail/Mailer.php(216): XF\Template\Templater->renderTemplate('activity_summar...', Array)
#15 src/XF/ActivitySummary/AbstractSection.php(172): XF\Mail\Mailer->renderPartialMailTemplate('activity_summar...', Array, Object(XF\Language), Object(OzzModz\EmailWhitelist\XF\Entity\User))
#16 src/XF/ActivitySummary/LatestPosts.php(124): XF\ActivitySummary\AbstractSection->renderSectionTemplate(Object(XF\ActivitySummary\Instance), 'activity_summar...', Array)
#17 src/XF/ActivitySummary/AbstractSection.php(46): XF\ActivitySummary\LatestPosts->renderInternal(Object(XF\ActivitySummary\Instance))
#18 src/XF.php(589): XF\ActivitySummary\AbstractSection->XF\ActivitySummary\{closure}()
#19 src/XF/ActivitySummary/AbstractSection.php(47): XF::asVisitor(Object(OzzModz\EmailWhitelist\XF\Entity\User), Object(Closure))
#20 src/XF/Job/ActivitySummaryEmail.php(144): XF\ActivitySummary\AbstractSection->render(Object(XF\ActivitySummary\Instance))
#21 src/XF/Job/ActivitySummaryEmail.php(111): XF\Job\ActivitySummaryEmail->generateEmailData(Object(OzzModz\EmailWhitelist\XF\Entity\User))
#22 src/XF/Job/ActivitySummaryEmail.php(67): XF\Job\ActivitySummaryEmail->generateAndSendEmail(Object(OzzModz\EmailWhitelist\XF\Entity\User))
#23 src/XF/Job/Manager.php(258): XF\Job\ActivitySummaryEmail->run(30)
#24 src/XF/Job/Manager.php(200): XF\Job\Manager->runJobInternal(Array, 30)
#25 src/XF/Job/Manager.php(84): XF\Job\Manager->runJobEntry(Array, 30)
#26 src/XF/Cli/Command/RunJobs.php(59): XF\Job\Manager->runQueue(false, 30)
#27 src/vendor/symfony/console/Command/Command.php(255): XF\Cli\Command\RunJobs->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#28 src/vendor/symfony/console/Application.php(992): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#29 src/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\RunJobs), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#30 src/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#31 src/XF/Cli/Runner.php(109): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#32 cmd.php(15): XF\Cli\Runner->run()
#33 {main}
Request state
array(1) {
  ["cli"] => string(59) "/home/nginx/domains/domain.com/public/cmd.php xf:run-jobs"
}
 

nicodak

Well-known member
Is this add-on still maintained ??

 

nicodak

Well-known member
@CMTV hello ! Can you please provide support for this add-on ?
 

nicodak

Well-known member
THIS ADD-ON IS UNMAINTAINED !!

And it is a very big problem to uninstall it because any codes that were displayed using either line coloring or a specific title will no longer be considered code blocks and all affected messages lose all readability. Thank you @CMTV !

Capture d’écran 2021-03-12 141313.png

🤬
 

NealC

Well-known member
I'd also suggest a review of the icon used on the toolbar as there seems to be confusion with the button for this add-on and the XF inline code icon. I run two developer communities as people are seemingly confused by this.
 

Kruzya

Well-known member
Copy function doesn't work with XF 2.2.7 anymore.
Because add-on used previously clipboard.js library, and XF devs removed it from XF 2.2.7 (looks like it).
Later maybe i fork this add-on.
 
Last edited:
Top