Giter Site home page Giter Site logo

sama34 / ougc-announcement-bars Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 492 KB

This plugin will allow administrators and super moderators to manage announcement bars.

Home Page: https://ougc.network

License: GNU General Public License v3.0

PHP 97.50% JavaScript 2.50%

ougc-announcement-bars's Introduction

OUGC Announcement Bars

This plugin will allow administrators and super moderators to manage announcement bars.


Support

Please visit OUGC Network for more information about this project.

Thank You!

Remember this is a free release developed on free time, either for personal use or as custom requests.

Any contribution is welcome.

Thanks for downloading and using my plugins, I really appreciate it!

ougc-announcement-bars's People

Contributors

sama34 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

p00lz

ougc-announcement-bars's Issues

Start date validation error

When creating or updating an announcement bar, the script will check to make sure the start date is earlier than the end date, and throw an error preventing the bar from being saved if it is not. However, the script will erroneously fail if the start day is an earlier day in a later month of the same year (e.g. May 28, 2021 is erroneously blocked as an invalid start date when the end date is June 18, 2021, but not when it is June 29, 2021 or any date in 2022)

Conversely, it will erroneously not fail when the start date is a later day in an earlier month of the same year.

sql error with latest version

just fixed mybb plugin page slow issue and tried to update Announcement plugin to latest but nothing work, all files upload done but when i try to activate plugin mybb page gives error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1054 - Unknown column 'startdate' in 'where clause'
Query:
SELECT * FROM mybb_ougc_annbars WHERE startdate>'1486906242'

what is wrong or missing, really old version was working and i feel disappointment

Display Order

Should the plugin support an "Display Order" field?

Start Date

Should the plugin support an "Start Date" field?

update_cache() method doesn't work as expected.

The following code doesn't take into consideration deleting the last bar.

    // Update the bars cache
    function update_cache()
    {
        //...

        empty($update) or $cache->update('ougc_annbars', $update);

        //...
    }

Dismiss option for users

Users should be able to dismiss a bar after reading it. I actually started coding this but I suppose it is long lost.

Some of the announcements do not dissapear

Some of the announcements do not dissapear when they expire, even when i remove them. It's mybb 1.8.5 problem. I rebuilded caches, reinstalled plugin many times, but nothing.

Custom classes

The class selection drop-box should allow a custom input.

Allowed forums

Allow administrators to show independent bars in different forums.

Unsure if I will add this, just posting so I don't forget.

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.