Giter VIP home page Giter VIP logo

user-management's Introduction

User Management by ReFlar [Deprecated as of Flarum Beta 8]

user-management's People

Contributors

angellitox avatar ralkage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

user-management's Issues

Show User's Groups

Show a user's group (and maybe ranks from Gamification) on the user list

Dashboard displaying raw attributes

Image
I'm receiving this when using the dashboard for user-management. I've installed the extension as mentioned and tried using chmod in case the file wasn't loading correctly. Apache has been restarted after these steps.

Birthday

Have users input a birthday that will change their age as the years go on.

Compatibility with Beta 8

Will be this upgraded for work with Beta 8?
I need to have a list of registered users.

Thank you for this extension.

Split the extension

This extension is nice and integrated but some communities might only need a subset of the features. For this reason, I propose that the extension were split into following packages:

  • User list
  • Strikes
  • Gender setting
  • Age setting
  • Removing user registration

Additionally, there could be a User management meta-package including all of these.

Each extension would provide hooks and should use hooks of other installed extensions, for example, strikes would hook into user list to add button for displaying all user’s strikes.

Age can be negative

You need to set minimum age to 0 to prevent users set their age to negative values.

Translation missing for english?

From what I can tell the extension works fine.
Just that some text translations are missing.
In both the admin menu and component page.

reflar-usermanagement.admin.page.about_text

reflar-usermanagement.admin.modal.email_switch
reflar-usermanagement.admin.modal.gender_label
reflar-usermanagement.admin.modal.age_label
reflar-usermanagement.admin.modal.recaptcha
reflar-usermanagement.admin.modal.spam
reflar-usermanagement.admin.modal.amount_label

Here is how the actual text is showing.

Hope this helps!

Kind regards,
Rafael

SignUpModal can't be extended by other extensions with user-management active

This extension overrides the prototype methods of SignUpModal, making it impossible to extend by any other extension. In particular this breaks compatibility with Flagrow Terms.

The faulty code is around here in the main.js file

SignUpModal.prototype.body = function() {

If an extension like Flagrow Terms is loaded before User Management and extending the init, body or onsubmit methods the changes will be wiped out.

I suggest you use similar hacking to what I did in Terms https://github.com/flagrow/terms/blob/master/js/forum/src/addFieldsToRegister.js so you don't break extensibility for other extensions.

Of course once merged there will be a prettier way to do it in beta8 as already discussed on the forum flarum/framework#1420

I can submit a pull request if you want.

Error parsing YAML, invalid file "/vendor/reflar/user-management/src/Listeners/../../locale/en.yml"

Instructions (MUST READ FIRST)

Before we can address your issues and concerns with the behavior of our work, we require every bit of detail from you to the fullest extent of this form. If this form is not properly filled out to it's entirity, we, ReFlar, reserve the right to close your issue due to lack of information thereof as well as not following instructions.

  • By agreeing to these terms, you can simply leave this checkbox checked.

Please Mentally Go Over the Following Items Before Filling Out this Form:

  • Can you reproduce this problem in debug mode? Yes
  • Are you running the latest version of this extension? Yes
  • Is your Flarum up-to-date? Yes. Beta 8

Description

When I enable this extension in beta 8, I got the error:
Error parsing YAML, invalid file "/vendor/reflar/user-management/src/Listeners/../../locale/en.yml"

Steps to Reproduce

  1. Update Flarum to beta 8
  2. Do some modifications to make beta 8 work
  3. Check the extensions that do not work
  4. Enable reflar/user-management
  5. Big issue shown above that makes Flarum stuck

Expected Behavior:
user-management should work

Actual Behavior:
user-management breaks Flarum

Flarum/Server/Client Information

Technical Details

  • Version of Flarum (x.y.z): beta 8, master
  • Version of extension (x.y.z): master
  • The webserver you are running (Apache, Nginx, etc): Nginx
  • PHP version (x.y.z): 7.2.6
  • Hosted environment (Shared, VPS, etc): Dedicated
  • Hosting provider (https://some-amazing-provider.com): Online.net

Flarum Info

Flarum core 0.1.0-beta.7
PHP 7.2.6
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, ctype, dom, fileinfo, filter, hash, json, mbstring, pcntl, SPL, PDO, bz2, posix, readline, Reflection, session, SimpleXML, standard, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, bcmath, Phar, curl, exif, ftp, gd, gettext, iconv, imap, intl, mysqli, pdo_mysql, pdo_sqlite, pspell, sockets, sqlite3, tidy, xmlrpc, zip, geoip, redis, Zend OPcache
EXT flarum-approval dev-master
EXT flarum-bbcode dev-master
EXT vingle-configure-smtp dev-master
EXT cbmainz-de dev-master
EXT flarum-emoji dev-master
EXT clarkwinkelmann-emojionearea dev-master
EXT flarum-english dev-master
EXT flagrow-byobu dev-master
EXT flagrow-split dev-master
EXT flarum-flags dev-master
EXT milescellar-french dev-master
EXT flarum-likes dev-master
EXT flarum-lock dev-master
EXT flarum-markdown dev-master
EXT xengine-markdown-editor dev-master
EXT flarum-mentions dev-master
EXT flarum-statistics dev-master
EXT flarum-sticky dev-master
EXT flarum-subscriptions dev-master
EXT flarum-suspend dev-master
EXT flarum-tags dev-master
EXT avatar4eg-transliterator dev-master
Base URL: https://forum.mydomain.com
Installation path: /srv/http/mydomain.com/forum
Debug mode ON

Log Files

No relevant logs

User Profile Customization

  1. Allow users to change their profile header background by letting them chose their preferred flat color or upload a cover image.

  2. Possibly, change the way Male/Female is displayed, and instead use FontAwesome Icons that when hovered it shows a small popup of the "Male/Female" word.

ReflectionException

PHP 7.1.12
Nginx 1.13.7
Flarum last
My stack trace:
Fatal error: Uncaught ReflectionException: Class Reflar\UserManagement\Listeners\AddApiAttributes does not exist in /home/site/forum/vendor/illuminate/container/Container.php:741 Stack trace: #0 /home/site/forum/vendor/illuminate/container/Container.php(741): ReflectionClass->__construct('Reflar\\UserMana...') #1 /home/site/forum/vendor/illuminate/container/Container.php(631): Illuminate\Container\Container->build('Reflar\\UserMana...', Array) #2 /home/site/forum/vendor/flarum/core/src/Foundation/Application.php(514): Illuminate\Container\Container->make('Reflar\\UserMana...', Array) #3 /home/site/forum/vendor/illuminate/events/Dispatcher.php(149): Flarum\Foundation\Application->make('Reflar\\UserMana...') #4 /home/site/forum/vendor/illuminate/events/Dispatcher.php(135): Illuminate\Events\Dispatcher->resolveSubscriber('Reflar\\UserMana...') #5 /home/site/forum/vendor/reflar/user-management/bootstrap.php(20): Illuminate\Events\Dispatcher->subscribe('Reflar\\UserMana...') #6 [internal function]: Flarum\Extension\ExtensionSe in /home/site/forum/vendor/illuminate/container/Container.php on line 741

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.