Code

Code 2.2.0

No permission to download
ErrorException: [E_NOTICE] Undefined index: lang src/addons/CMTV/Code/XF/BbCode/Renderer/Html.php:36

I'm getting hundreds of these errors a day, thoughts?
 
I would love to upgrade from the old version to the new version but I'm afraid of having problems, I have zero problems with the old one and it is still working fine on my board.
 
I'm using 1.1.3 still because the new version doesn't have dark theme. And yes I'm aware you have to uninstall this version before installing the new one :)
 
Hi. I need this Add-on and your Math Add-on for xenforo 1.5.1. your add-ons are very useful. please port these two for xenforo 1.5.1 if it is possible, or give me a clue to use of these two Add-ons on xenforo 1.5.
Thank You
 
I still get a dozen of these errors a day
  • ErrorException: [E_NOTICE] Undefined index: lang
  • src/addons/CMTV/Code/XF/BbCode/Renderer/Html.php:36
 
Couple of questions about this add-on.

Firstly, someone mentioned earlier that there might not be a dark theme available. Since my forum uses the default Xenforo theme and Shades of Grey dark theme, is it possible for me to modify the colours myself, so I have one set for the light theme and another for the dark theme?

Secondly, if you install this plugin, but then remove it later on, will that have implications? e.g. does it add extra code somewhere and so reverting back to the normal code functionality provided by Xenforo will has issues?
 
Couple of questions about this add-on.

Firstly, someone mentioned earlier that there might not be a dark theme available. Since my forum uses the default Xenforo theme and Shades of Grey dark theme, is it possible for me to modify the colours myself, so I have one set for the light theme and another for the dark theme?

Secondly, if you install this plugin, but then remove it later on, will that have implications? e.g. does it add extra code somewhere and so reverting back to the normal code functionality provided by Xenforo will has issues?

I am still using the old version 1.1.3 of this addon because it works fine, has dark theme and I'm afraid the new one will have problems.

I added this to extra.less to make the dark theme better, maybe it will be helpful for you:
CSS:
//Xonokai dark syntax
.bbCodeCode code
{
    .prism-token
    {
        &.prism-namespace
        {
            opacity: .7;
        }
        
        &.prism-constant
        {
            color: #e6d06c;
        }
        
        &.prism-comment,
        &.prism-prolog,
        &.prism-doctype,
        &.prism-cdata
        {
            color: #6f705e;
        }
        
        &.prism-operator,
        &.prism-boolean
        {
            color: #a77afe;
        }
        
        &.prism-attr-name,
        &.prism-string,
        &.prism-number
        {
            color: #e6d06c;
        }
        
        &.prism-entity,
        &.prism-url,
        .language-css &.prism-string,
        .style &.prism-string
        {
            color: #e6d06c;
        }
        
        &.prism-class-name
        {
            color: #2196f3;
        }
        
        &.prism-selector,
        &.prism-inserted
        {
            color: #a6e22d;
        }
        
        &.prism-function
        {
            color: #a6e22d;
        }
        
        &.prism-atrule,
        &.prism-attr-value,
        &.prism-keyword,
        &.prism-important,
        &.prism-deleted
        {
            color: #ef3b7d;
        }
        
        &.prism-regex,
        &.prism-statement
        {
            color: #76d9e6;
        }
        
        &.prism-placeholder,
        &.prism-variable
        {
            color: #fff;
        }
        
        &.prism-important,
        &.prism-statement,
        &.prism-bold
        {
            font-weight: bold;
        }
        
        &.prism-punctuation
        {
            color: #bebec5;
        }
        
        &.prism-entity
        {
            cursor: help;
        }
        
        &.prism-italic
        {
            font-style: italic;
        }
    }
}

.bbCodeBlock--code .bbCodeBlock-content
{
    background-color: #2a2a2a;
    color: #f5f5f5;
}

looks like this
1580758833462.webp

FYI I'm using UI.X 2 Dark
 
I tried to install this addon, which the blurb says is compatible with 2.0 and 2.1. But when I go to install, it says, Code requires Xenforo 2.1.
 
Code 2.1.0 was rewritten from scratch. It is not compatible with previous addon version and XF below 2.1 but it can handle code block titles from previous addon versions! There is no way to upgrade existing addon!
 
I get many of these errors
Code:
ErrorException: [E_NOTICE] Undefined index: lang src/addons/CMTV/Code/XF/BbCode/Renderer/Html.php:36
Any idea what is causing them?
 
Top Bottom