User actions after login - joomla

is it possible to manage actions after user login ? For example after login I wanna check(get some data from DB and check) has user filled special member form. If not, then redirect it to the form page. Maybe some plugin should help ? Is it possible to do it with user type plugin ?
Your help would be appreciated.

Sounds exactly like a use for a plugin. - onUserLogin http://docs.joomla.org/Reference:User_Events_for_Plugin_System

Related

How to add user custom fields to the edit profile form?

I had to add a series of custom fields to the joomla registration form. Thanks to the guide I managed to do it, both for the registration form and for the administrator form.
The process I followed for this are the following:
Added the fields to the users table
Added the fields in joomla user entity /library/src/user/user.php
Added the fields and definition to /components/com_users/model/forms/registration.xml file to update the registration form
Added the fields and definition to administrator/components/com_users/model/forms/user.xml file to update the user edition form for user with administrator role
Now I require the user to be able to change their profile data with the inthe fields that were created manually. To do this I added a link to the menu
form to edit profile, here I expected to see all user fields, both native and custom created, but instead I obtain only the native fields, although upon inspecting the object (user) I can access all the user fields.
I created the fields by hand and then I expected that when they were saved they would persist, but it is not, when sending the form only the native data is updated and not the custom fields.
When I inspect, I see that a component named k2 is the one that facilitates this profile editing form, I am new to joomla and its ecosystem
Could you please give me guidance on how to implement this task?
Greetings and thanks in advance
Do not edit core components.
There is a way to do the same using Profile plugin.
https://docs.joomla.org/Creating_a_profile_plugin
Go through above link and create a new profile plugin.
This is not the way to add extra user fields. What will you do if you need to update Joomla. Joomla releases security updates at regular intervals. First you need to create a user plugin and then you add whatever user fields you need. I found a detailed description here, you also can have a look. if still you get any doubts you can ask me here in comments.
https://smartyblog.com/adding-custom-fields-to-joomla-registration-using-profile-plugin/

Joomla : How to set access permission from a custom component?

Currently I am creating a custom component for Joomla 2.5.
In this component I need to create users that are assigned to particular user group, say 'Test'.
If any user assigned to 'Test' is loggined from the back-end (i.e. admin login), then I need to hide all admin menus and redirect the user to a particular page inside my component.
In other words that user is restricted from other admin areas.
The problem is that I have to perform all of these actions from my custom component. Is there any way to achieve this? Any help will be much appreciated.
Thanks in advance.
You can use this Joomla - ACL and download source code from bottom of the page.

add field to a modelform in django

I have displayed UserCreationForm and user profile form displayed on user registration page.
I want to add a I agree check box on registration page.
When I try to add a field that is not in model django gives error that I agree is not in model.
Any solution ??
Here is asked something similar, try to put
agree = forms.BooleanField()
in your model form. This should work. If not works for you, i need more details

joomla integrating external php signup form

I have a joomla website.here is the link
link for siteI want to integrate a external php signup and login form.I create a php signup form.It works perfecly.
signup linkBut the problem is i dont know how to integrate that form to my joomla web pages...I want to secure my web pages..Only registered users can view my page....please help me..
Why have you create your own register form? Joomla already has the one. To see it follow the link index.php?option=com_user&task=register, Login for there index.php?option=com_user&task=login. If you need more fields to be filled out during registation you may you Community Builder. This extention allows to add to user profie as many fields as you want
It is also possible to use Chronoforms to allow for registration that brings in multiple fields as well without having to bring in an external file for registration/login.
Using the tools Joomla has to stay within Joomla is really the best way to go about it. It will allow you to keep your sanity and keep things as uniformed as possible.

show specific content for each registered user in joomla 1.6

I am looking for a module/extension, or something that can help me to
make a page/item that only one specific user registered can see.
I would like also create a space dedicated to this user, where i can publish there pages and aticles.
Maybe using php and the variable that contains the username and an iframe, but I dont know how to doit.
Thank for the help
GMAccess is a Joomla! component that makes managing groups and access permissions easy, you will be able to create a special group and add your user (via Joomla's user management) to it and manage which pages can be viewed by that group.

Resources