Hot answers tagged

24

The following link is for direct logout: http://example.com/index.php?option=com_users&task=user.logout But a user token is required in order to avoid an error message Invalid Token, and some PHP magic is required in order to get the token. The following code will display a Login link to guests, and a direct Logout Username link to logged in users: $...


23

Joomla: Accessing User Info - The User Object To get user information for the current user: $user = JFactory::getUser(); It will return the User Object. Here, some of the most common User Object's Properties: id ($user->id) name ($user->name) username ($user->username) groups ($user->groups) email ($user->email). You can check if the ...


14

Would one of these work? Members Only (From the JED) Keep prying eyes away from part or your whole website, while they stay anonymous. Optionally you may allow visitors to directly register to your website with or without requiring for an invitation code. registeredOnly (From the JED) registeredOnly plugin restrict access to Joomla site to registered ...


11

The Good Folks at OSTraining just published this nice Tutorial: Step #1. Create the Login link Go to Menus > your menu > Add New Menu Item Enter a Menu Title. Select the Menu Item Type. Choose Users > Login Form. Set "Access" to "Guest" Click "Save & New". Guest access will make it so that it only appears to non-logged-in users. If for some reason ...


10

As an extension to Brian Peat's answer: If you go to the url domain.com/index.php?option=com_users&view=login you can login without having a menu item set or any kind of publish/unpublish problem. This could be termed as somewhat of a problem in Joomla as knowing your way around you can still register/login if you know the url structure. There are ...


8

You can make a menu that isn't published, and put a link to the user login page there, and name the alias whatever you want. As long as you turn off the allow registrations function in the user manager options, you should be good. Then just give your client the url. So the steps are: Create a new menu, name it Hidden Don't publish a module of the new menu ...


8

I've personally been using Saxum IP logger for a couple of years now. It's a great (FREE) extension that provides information such as: Number of logins for each user (date, IP, etc) Number of different IP addresses each user has used to login Ability to block IP's And other nice features The first screenshot below is a snippet of all the users that have ...


7

@Lodder is correct. If you want just some basic fields, then you can use Joomla User Profile plugin, which comes with Joomla itself. If you want to create some customized fields, then there are various options available like, Community Builder, JomSocial, EasySocial and other socila networking solution. But if don't want the full community solution then you ...


7

There is already a plugin which works great for logout button. You should check this extension logout button


6

First of all: Why on earth are you using Joomla 3.1.5? Current version is 3.3.0 and there are several security issues fixed since your version. You should update as soon as possible, which means you should do it yesterday. No excuses. As for the message. It's coming from the remember me plugin. Joomla tries to load that plugin and fails for whatever reason. ...


6

Rather than delete this functionality, the best thing to do would be to disable it. To do this, in your backend go to: http://YOURSITE.com/index.php?option=com_config&view=component&component=com_users In the first option which appears, set "Allow User Registration" to No Once you've done this, you need to create an override in your Joomla ...


6

As a final answer, Joomla has a builtin "Logout" menu item, added to core I think around 3.4* maybe 3.5. So now you don't need any additional plugins. The logout menu item also allows for a redirect on logout. Also if you set your Login menu item to 'Guest' access and your Logout menu item to 'Registered' access, the menu change depending on your status. ...


6

I've used Nomad in the past - instead of redirecting, it's a system plugin that actually overrides the default home page and replaces it with your choice of locations based on User Groups.


6

You need to create a template override for the article view - default.php template file. Layout Overrides in Joomla. How to override the output of Joomla core Understanding Output Overrides So there you can create a "modal button" for the register link, to open the registration view inside a modal window. This blog post explains how to create modals ...


6

There are two ways you can do for that (both are safe from Joomla update / you won't loose the changes when updating your Joomla) 1. By using template override Copy the file /components/com_users/views/registration/tmpl/default.php to /templates/your_template_name/html/com_users/registration/default.php then open it with your favorite php editor. ...


5

Finally found out what the issue was. It turned out that upon migrating Joomla 2.5 to 3.3, a lot of the most recent registrants has not been assigned to the "Registered" user group, therefore they had no permissions at all. I ended up running the following MySQL query in PhpMyAdmin: SELECT `id` FROM `jos_users` WHERE `id` NOT IN (SELECT `user_id` FROM `...


5

You should really do some research before asking a question like this. 2 seconds on Google and you would have all the information you needed. There is a in User Profile plugin that comes with Joomla. In the Joomla backend, go to Extensions (top menu) >> Plugin Manager >> User Profile. You will see the following custom fields: Address 1 Address 2 ...


5

You should upgrade to latest version of Joomla 3.2 or to Joomla 3.3 As per this link Joomla 3.2.1+ , doesn't have this issue. If you can't upgrade then you need to change Joomla code (I won't recommend this), and the details are mentioned in the above link.


5

1) Use Joomla!'s Built-In ACL I recommend defaulting your visitors to a login page and using Joomla!'s built-in ACL using Registered users. Set a Top-Level Menu item with permissions to Registered users - and then each Menu item on that tree will be only visible and available to Registered users. There is an excellent tutorial on ACL in the Joomla! Docs. ...


5

I would override Joomla! login view. Copy contents of components/com_users/views/login/tmpl/default_login.php and create new .php file in YOUR_TEMPLATE_NAME/html/com_users/login/default_login.php and paste copied contents there. See Joomla! docs for How to override the output from the Joomla! core. And then add javascript file or inline ...


4

You should be able to accomplish this by overriding the layout for the front-end login form. Add some PHP code near the top of the layout file. This added code checks for a custom parameter in the URL and for a particular value. If someone tries to access the login page through any URL but does not include the custom parameter and particular value (such ...


4

I think you should be able to do that using a custom authentication plugin. You can have a look at the gmail or ldap plugin which do similar things. Gmail plugin: https://github.com/joomla/joomla-cms/tree/staging/plugins/authentication/gmail LDAP plugin: https://github.com/joomla/joomla-cms/tree/staging/plugins/authentication/ldap


4

I can confirm it returns an error message ("Username and password do not match or you do not have an account yet") in Android+Chrome. The only difference I see between both sites is Widgetkit's lightbox (enabled in live site). Try disabling it. You may also want to test if error persists with default Joomla template (to discard a template issue). Finally, ...


4

There was a similar question a couple of months ago, and the user ended up starting over with a fresh installation of Joomla. However, this might not be an option depending on how much work you've put into the site. Although it's hard to give a definite solution, here's a couple of things you can try: If you're using .htaccess, try renaming it temporarily....


4

index.php file of joomla does not get executed when you access any media. So Joomla does not get control when direct media(images etc) link is provided. So if you are expecting that joomla will trigger something or give control before serving the content then this will not happen. What you can do in this case is rather then providing a direct link of the ...


4

Try: $url = base64_encode(JUri::current()); $returnurl = JRoute::_('index.php?option=com_users&view=login&return='.$url, false); //false will make the URL non-xhtml $mainframe->redirect($returnurl,JText::_('Please Login'));


4

As a third option, there is a Quick Logout component which adds a direct logout menu item in Joomla and will logout the users without the confirmation. It also provides the option to set redirection to a desired page after logout.


4

You can always use extension like this to redirect users on login: http://extensions.joomla.org/extensions/extension/access-a-security/site-access/redirect-on-login


4

You need to trigger submit on form for login user. edit: did not see You don't have a login id in your div. so try this: jQuery('.loginbtn').trigger('click'); and if this not work for you try this: jQuery('.loginbtn').parents('form').submit();


4

Joomla only stores the last login. You'd have to write a very simple user plugin that writes the login event somewhere, which is what that plugin seems to do.


Only top voted, non community-wiki answers of a minimum length are eligible