rainlab / userplus-plugin Goto Github PK
View Code? Open in Web Editor NEWExtends the User plugin with extra profile fields and features.
License: Other
Extends the User plugin with extra profile fields and features.
License: Other
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',
],
]);
});
The complete plugin functions are missing in my installation with October v3.1 and User 1.6.2.
In October v2 i have all the additional fields at the user Details and the Menu with Import Export functions.
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?
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
... 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.
Hi Team,
Wouldn't it be great if you could set in the user group to which page the person who logged in is routed
;-)
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?
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
Hi . How can i create field for user that he/she can change or upload his avatar ?
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.
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:
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
.
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
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).
This is a follow up of issue #5 and I’ve recreated the steps using the Test plugin.
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.
If you do not have the Location plugin installed the install will fail but indicates as successful. Highly confusing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.