Git Product home page Git Product logo

userplus-plugin's People

Contributors

acasar avatar blazorazem avatar briddle avatar chvuagniaux avatar daftspunk avatar firemankurt avatar gergo85 avatar ideepblue avatar leocantthinkofaname avatar luketowers avatar m49n avatar mahony0 avatar meysammahfouzi avatar najbo avatar nathan-van-der-werf avatar ribsousa avatar rieonke avatar theservat avatar tomaszstrojny avatar vojtasvoboda avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

userplus-plugin's Issues

User plus injects fields into any pop-up user related form

User plus injects it's fields into any pop-up form with relation to user.

Similar to a problem listed here: https://octobercms.com/forum/post/tabs-in-backend-popup-form?page=1

I am not sure how to prevent this because userplus extends user directly instead of a relationship such as one to one. This was found when related kurt.jensen.cellphone plugin cellphone form was opened.

The cellphone plugin uses this code to extend form:

if (!post('_relation_field')) {
        UsersController::extendFormFields(function ($form, $model, $context) {

            if (!$model instanceof UserModel) {
                return;
            }

            if (!$model->exists) {
                return;
            }

            if ($form->getContext() != 'update' && $form->getContext() != 'preview') {
                return;
            }
            $form->addTabFields([
                'cellphones' => [
                    'label' => '',
                    'tab' => 'Mobile Phones',
                    'type' => 'partial',
                    'path' => '~/plugins/kurtjensen/cellphone/partials/_std_form.htm',
                ],
            ]);
        });

doing october:down fails: Method hasColumn does not exist.

When I do cotober:down i get an error

Rolled back: October.Demo
Rolled back: October.Drivers
Rolled back: PlanetaDelEste.Swal
Rolled back: RainLab.Builder
Rolled back: RainLab.Location
Rolled back: RainLab.Notify
Rolled back: RainLab.Translate
Rolled back: RainLab.User
Rolled back: RainLab.UserPlus

In Macroable.php line 96:

  Method hasColumn does not exist.

Why it could be so?

Add addressfinder widget on profile tab

The user+ plugin rely on the excellent location plugin in order to manage user address. That's great.

However, it's a shame to not use the addressfinder widget provided by the plugin in order to provide a convenient way to search an address and automatically populate related fields.

In addition, that addressfinder widget can also populate latitude and longitude fields that would allow to display a map of all your users, it would be a great addition too.

To resume, I suggest that user+ plugin would use the full potential of location plugin by adding addressfinder, latitude and longitude fields. You could answer that I can write a plugin to extend user+, but creating a plugin to extend a plugin that already extend another one is a little cumbersome to me.

I could create a PR if the idea is accepted.

Best regards,

Alex

Update to 1.0.3 does not work

... while reporting no errors. It gives a green flash notification but it's not updated. It does not shows as available updates on the dashboard but if one checks manually for an update - there it is again.
And again you can update it, the system notifies you as everything is OK but on plugin list it's still listed as version 1.0.1.

Cheers.

"plugins" folder inside the rainlab\userplus plugin folder with copies of both User and Location plugins?

This is a question...

I installed the UserPlus plugin yesterday so to check it out, and at first the installation didn't work, but once I installed the Location plugin and tried installing UserPlus once again, it eventually worked. But now one thing strikes me as kind of weird. Inside the rainlab\userplus plugin folder, there's another plugin folder with what apparently seems to be full copies of both the Location and the User plugins. Is it supposed to be like that? If so, why?

Installed successfuly but not working

Hello,
i installed User plus+ plugin successfully.
I go check to user table and nothing new

And fields in backend missing too
ll7tul5i

how to fix it?

I use actual versions of User rainlab and User plus+

Experience point

Hey,

Can we get more information about this feature please?
How to set up some predefined activities for the user to earn points? such as viewing pages...

Many thanks

Edit user avatar

Hi . How can i create field for user that he/she can change or upload his avatar ?

Extending the front-end components

I was hoping to find out how to extend the User Plugin's components by looking at the code of this plugin, but realized this plugin has only extended the back-end form fields. It would be great to have a tutorial to address the questions raised about extending front-end components, like this one:

https://octobercms.com/forum/post/extend-user-component
http://stackoverflow.com/q/34681748/69537
https://octobercms.com/forum/post/how-to-create-custom-user-registration-form-with-fields-from-plugin-extension

This old tutorial explains how to extend the user plugin, but does not say anything about extending the front-end components of that plugin (e.g. how to add new fields to the registeration form?)
Many users may be currently ending up copy pasting and duplicating stuff which can lead to maintenance headaches in future.

When I try to extend the User form in my Plugin.php with a repeater widget using addFields() or addTabFields() this includes all fields of the User Plus form.

When I try to extend the User form in my Plugin.php with a repeater widget using addFields() or addTabFields() this includes all fields of the User Plus form.

Inside Plugin.php on row 73 (in the extendUsersController() function) wrap

$widget->addTabFields($config);

inside:

if($widget->isNested === false) {}

Please see my post in the forum for details:

https://octobercms.com/forum/post/extending-a-form-with-a-repeater-widget-using-addfields-or-addtabfields-includes-all-fields-of-the-parent-form?page=1#post-26331

RainLab.Notify isn't automatically installed when installing from marketplace

When installing through the updates and plugins section in the CMS, not all the required plugins are installed. The RainLab.Location Plugin is installed, but the Notify plugin is not.

Steps:
1: Install RainLab.User
2: Install RainLab.UserPlus

The dependency manager within October now installs the Location plugin, but does not install Notify. This is not a problem neccesarily, but it's weird UX. October does not give any form of error, and does not show the UserPlus plugin in the list of installed plugins.

Only when installing the Notify plugin the UserPlus plugin appears in the list.

This bug is somewhat related to already closed issues #7 and #9 , only this has to do with the Notify plugin instead of Location.

Location not updating from frontend form

Hi,
I have user plus installed everythings works great the only thing that was causing me trouble was updating country and state from frontend user profile page.

After I've put this part of code for country
$model->addFillable(['country_id']);
into the Plugin.php in the extendUserModel() function after implement declaration $model->implement[] = 'RainLab.Location.Behaviors.LocationModel'; it starts working. Not quite sure if this is a bug with this plugin or with the Location, or if I am doing something wrong here

Composer issues with 1.2.0

Hello.
Looks like you published 1.2 today. Change log
in my composer...

"rainlab/user-plugin": "^2.0",
 "rainlab/userplus-plugin": "^1.1",

Running composer update. Not sure what to tweak. Any suggestions? Thank-you.

Your requirements could not be resolved to an installable set of packages.

composer update...
  Problem 1
    - Root composer.json requires rainlab/userplus-plugin ^1.1 -> satisfiable by rainlab/userplus-plugin[v1.2.0].
    - rainlab/userplus-plugin v1.2.0 requires rainlab/user-plugin ~1.0 -> found rainlab/user-plugin[v1.5.0, ..., 1.x-dev] but it conflicts with your root composer.json require (^2.0).

User plus injects fields into any pop-up user related form

This is a follow up of issue #5 and I’ve recreated the steps using the Test plugin.

  1. Install the necessary plugins for User Plus to work and add oc-test-plugin.
  2. Make the changes of this fork commit.
  3. Goto Users controller, Extras tab, click Add comment and add one comment. Now click on the comment which you added, this should come as a pop-up but instead I get this:

screen shot 2016-11-30 at 12 18 03

I tried removing the country and state fields from the UserPlus plugin code and to my surprise, the profile tab with it’s fields get added to the original relation’s fields which should appear in the popup i.e. the comments appear and also the extra Profile tab which the UserPlus adds (screenshot). This isn’t the right behaviour as it should not inject it’s fields to this relation.

P.S. In the fork’s commit, I removed type: partial from error_button field because that gave a missing partial error. That’s probably a different bug and I think you may have forgotten to add the error_button partial file to the test plugin. So, I just removed it to show this issue’s error instead.

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.