Giter Site home page Giter Site logo

frostschutz / mybb-pluginlibrary Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 25.0 166 KB

PluginLibrary for MyBB. A collection of useful functions used by other plugins.

Home Page: https://github.com/frostschutz/PluginLibrary

License: GNU General Public License v3.0

PHP 100.00%

mybb-pluginlibrary's People

Contributors

euantorano avatar frostschutz avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mybb-pluginlibrary's Issues

PHP 7 Compabilty

I get a blank page on php 7 with this error log

File: inc/plugins/phptpl.php (Line no. 92)
Message
preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

task system

Consider adding task support.

It'd have to support creation / updating of tasks (on activate), as well as suspension (on deactivate), and removal (on uninstall). And it should probably do some sanity checks, such as is the task file actually present or not.

Shoutbox Notice: Something went wrong...

I just installed the shoutbox, it's not working!
when i reload the page it shows me the shoutbox with this error message:
"Shoutbox Notice: Something went wrong..."

Stylesheet generation - image paths not all corrected

For some reason, only the first path to an image in the CSS file is corrected when using the stylesheet() method. This means users have to go in via the ACP and re-save the stylesheet to have the paths corrected.

template versioning

Add support for optional template versioning.

Requires a code change in MyBB to do fully (theme import wise).

Alternatively by restricting plugin authors to a version range that does not clash with MyBB versions, like maybe 1-1000. Might work since plugin authors will hardly release 1000 distinct updates in a plugins lifetime? Still sucks though.

generate language files

Should PluginLibrary offer a function to generate language files?

Pro:

  • plugins providing custom fields/contents could need it (uncertain, similar to how settings translation works?)

Neutral:

  • language files are dead simple so it's trivial to do yourself

Cons:

  • bad if developers get the wrong idea and start generating static language files dynamically for no reason (should be shipped as static files)

Sometimes templates cannot be edited?

This issue seems to occur seemingly randomly but sometimes when PluginLibrary adds templates. When a user modifies a template then saves it, the edit doesn't appear to get saved at all and it just goes back to exactly how it was.

I just ran into this issue when I updated MyAlerts with a minor template edit then helped WWEForums update to the latest version and tried to mody one of their MyAlerts templates to fit in with their theme.

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.