Giter Club home page Giter Club logo

phpbb-extension-codebox-plus's Introduction

phpBB Extension - Codebox Plus

Syntax highlighting extension for phpBB

Author

https://github.com/o0johntam0o/

https://www.phpbb.com/customise/db/author/o0johntam0o/

Description

Codebox Plus alows you to:

  • Syntax highlighting 200+ programming languages (using GeSHi)

  • Expand/collapse code block

  • Downloading code contents

(Previous version: https://github.com/o0johntam0o/phpBB-Codebox-Plus)

Requirement

phpbb: 3.1.x

Installation

Copy ./ext/o0johntam0o/codeboxplus/* to <phpBB root>/ext/o0johntam0o/codeboxplus/*

License

GPLv2

Task

  • Planing

phpbb-extension-codebox-plus's People

Contributors

kruczjak avatar maskinisten avatar o0johntam0o avatar tas2580 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

phpbb-extension-codebox-plus's Issues

BBcode gets disabled after editing a post

phpBB 3.1.2
With following extensions and no mods

  • Board Announcements 1.0.0
  • Board Rules 1.0.1
  • Codebox Plus 1.0.0
  • Pages 1.0.0
  • Prime Ban to Group 1.0.2
  • Referrers 3.1.0
  • Reputation System 1.0.0-dev
    Only Codebox Plus seems to affect it.

Steps to reproduce:

  1. Create a reply/quote with BBcode - post appears normal
  2. Enter post editing and submit without changing anything - bbcode is disabled but no tick is checked

To fix a broken post:

  1. Enter post editing, tick disable BBcode and submit post
  2. Enter post editing, untick disable BBcode and submit post

The issue appears at http://forum.stabyourself.net . If you would like a test account or any other information, let me know and I'll get right on it.

hate to be the ne with bad news

[phpBB Debug] PHP Warning: in file [ROOT]/ext/o0johntam0o/codeboxplus/event/main_listener.php on line 96: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

this is what i get when i activate the extension

again i am on phpbb 3.1.7pl

Exception: The file "services.yml" does not contain valid YAML.

I clone your git and upload your extension to /ext/ and when i enable your extension :
Exception: The file "/ext/o0johntam0o/codeboxplus/config/services.yml" does not contain valid YAML.

PhpBB version : PhpBB 3.2 ( git clone yesterday )

Online YAML Parser : http://yaml-online-parser.appspot.com/

ERROR:

while scanning for the next token
found character '@' that cannot start any token
in "", line 5, column 15:
- @controller.helper

Attached commit : https://tracker.phpbb.com/browse/PHPBB3-14247

Spaces in 3.2

I know this extension is for the version 3.1 of phpbb.

In version 3.2 the mod works without big complications, but if you put two lines of code of c++ language automatically insert a blank line between the lines of code, and if you put one blank line between lines of code it will insert blank three lines.

Not work for me

Hello!

I have phpbb 3.1.8 and the extension not work for me. The extension is installed and the settings is appear inc ACP, any suggestions?
Thanks!
:D

Uncaught Exception

Hello, when I try to activate this extension on my phpBB 3.1.8 forum, it shows up as blank with following error:
Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template "@o0johntam0o_codeboxplus/style.css" (looked into: ./ext/o0johntam0o/codeboxplus/styles/prosilver/template, ./ext/o0johntam0o/codeboxplus/styles/all/template, ./ext/o0johntam0o/codeboxplus/styles/all/template) in "@o0johntam0o_codeboxplus/event/overall_header_head_append.html" at line 1.' in /xxx/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:195 Stack trace: #0 /xxx/phpbb/template/twig/loader.php(107): Twig_Loader_Filesystem->findTemplate('@o0johntam0o_co...') #1 /xxx/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(138): phpbb\template\twig\loader->findTemplate('@o0johntam0o_co...') #2 /xxx/phpbb/template/twig/environment.php(202): Twig_Loader_Filesystem->getCacheKey('@o0johntam0o_co...') #3 /xxx/cache/twig/d/3/d3db33edfa99f5fdbd0e05ea2702056c367f285ce695114b5fc09d3520a81baf.php(24): phpbb\template\twig\ in /xxx/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 195

This extension would be extremely useful and I am looking forward to using it.

Compatibility to php 3.2

I test your new version on my forum and have just one probleme ...
I find it and correct it :
In routing.yml you have :

o0johntam0o_codeboxplus_base_controller:
    pattern: /codeboxplus
    defaults: { _controller: o0johntam0o.codeboxplus.controller:base }

o0johntam0o_codeboxplus_download_controller:
    pattern: /codeboxplus/download/{id}-{part}
    defaults: { _controller: o0johntam0o.codeboxplus.controller:downloader, id:0, part:0 }
    requirements:
        id: \d+
        part: \d+

And you need :

o0johntam0o_codeboxplus_base_controller:
    path: '/codeboxplus'
    defaults: { _controller: 'o0johntam0o.codeboxplus.controller:base' }

o0johntam0o_codeboxplus_download_controller:
    path: '/codeboxplus/download/{id}-{part}'
    defaults: { _controller: 'o0johntam0o.codeboxplus.controller:downloader', id:0, part:0 }
    requirements:
        id: \d+
        part: \d+

So you just need to create an other branch to apply change ....

Thanks for you for your update ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.