GithubHelp home page GithubHelp logo

darekrepos / myevent Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 217 KB

myEvent Wordpress plugin allow you to add events from WordPress widgets.

Home Page: https://darekrepos.github.io/myEvent/

License: GNU General Public License v2.0

PHP 97.95% Dockerfile 2.05%
event-list-view events wordpress-plugin

myevent's Introduction

Hi πŸ‘‹

Thanks for checking my repos out. I hope you find something useful. (Statistic only include main/master branches)

Metrics

Metrics

In the meantime check out my latest post: DarekRepos.github.io πŸš€

myevent's People

Contributors

darekrepos avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

myevent's Issues

User can't activate plugin

Steps:

  1. Login to WordPress as admin
  2. Click on the Plugins button
  3. Click Activate link

Expected result:
When i click Activate link the plugin is enabled

Actual result:
Plugin are not enabled

Error message
Plugin could not be activated because it triggered a fatal error

PHP 8.2 support

Wordpress require php 7.4 or higher.
Historically, when writing a property that hasn’t been declared, PHP silently creates a dynamic property instead. Objects can be a useful place to store data, so use of dynamic properties is quite common in WordPress plugins and themes. However, this behavior is deprecated in PHP 8.2, and will be removed in PHP 9.

however , please note that the β€œPHPCompatibility for PHP CodeSniffer” library/package is not an acceptable one to use for PHP 8+ compatibility checking. The official release has no PHP 8+ checks in it and you would have to use the β€œdev” release to only get maybe half of the PHP 8 issues detected. It seems as though the larger WordPress community has been oblivious to that fact and has incorrectly assumed that their plugins/themes/etc are PHP 8 compatible based on using that library when in fact they are far from compatible.

It is strongly recopmmended to test any new PHP version in another environment before changing it on your live site. If you’re comfortable with the command line, the PHPCompatibility for PHP CodeSniffer is a helpful tool for identifying some code that needs to change (it doesn’t quite find everything, yet).

TODO:
Integrate CI for php compatability check

add block editor support

the WordPress block editor (Gutenberg) create visually stunning blog posts and pages. It would be nice add block with event to posts or pages.

Plugin Does not work with latest Wordpresses 6.x

The plugin does not work with Wordpress 6.x. The following notice are displayed.

Warning: foreach() argument must be of type array|object, null given in /var/www/html/wp-content/plugins/myEvent/inc/EventManagement/PluginAPIManager.php on line 130 Notice: Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the custom-myevent-js handle. Please see [Debugging in WordPress](https://wordpress.org/documentation/article/debugging-in-wordpress/) for more information. (This message was added in version 3.3.0.) in /var/www/html/wp-includes/functions.php on line 5865

Add settings for the frame custom color of the event

Current situation:
In the page widget display frame with default color (light grey). User can not select any other color of the frame.

Suggestion:
Create input field with selecting color for the frame that user can change any time

Benefit:
Having a new setting option prevents the user from displaying a frame color other than the layout colors. The user can easily adjust the color of the frame.

Translation not working

Plugin translation shows everything only in English. I create a .pot and .po file for it with PoEdit, but it's not working.

Folder structure:

β”œβ”€β”€ plugins
β”‚   β”œβ”€β”€ myEvent.php
β”‚   β”œβ”€β”€ inc
β”‚   β”‚   └── MyEvent.php
β”‚   β”œβ”€β”€  lang
β”‚   β”‚   β”œβ”€β”€ myEvent.pot
β”‚   β”‚   β”œβ”€β”€ myEvent-pl_PL.po
β”‚   β”‚   └── myEvent-pl_PL.mo

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.