Missing Itemid on url at login pages - joomla

I'm on Joomla 2.5.
I created a menu item named "Login Form" with Itemid=626 . Also I created a menu item named "Article" with access level "Registered".
The Problem
When a user click on the "Article" menu item on the frontend, he goes to login page index.php?option=com_users&view=login I need this url to contain Itemid=626 so it could be index.php?option=com_users&view=login&Itemid=626
Please advise

I think you can't override standard joomla login page just creating a menu item.
To create easily some rules and redirect the users you can use this component, Chameleon.
If you don't need complex rules you can just auto redirect all users from standard login to your page.

Related

Joomla 2.5 redirect to requested page after login

In joomla 2.5 user's are taken to predefined page after they have logged-in.
But i need to redirect users to the previous page after they have logged-in, i have tried to search for it every where but i am unable find proper solution explaining what core file i need to modify ?
All you need is an article with a little piece of javascript to browse the history of the user and call the page before the login form. Redirect the user on it on log in.
If you have a menue item (User/Login Form), there is, on the right hand side of the screen, a tab called Basic Options. The first field is called "Login Redirect". Put the article's URL there.
If you use the module: Again in the tab "Basic Options", you can redirect to Any menue item you want, so set a menue item (it has not to be actually showing up somewher) for the article

Change Joomla's 'Login to Readmore' url from login page to register page?

I have a blog page on Joomla which shows 'register to read more' link after each articles intro text.
Clicking this brings the user to a login page, with no 'register' option.
How would I change this to bring a user to the register page instead, and preferably revert the user back to the article after login? I have a login box on the register page so it allows the user to choose either login or register.
If you're using Joomla 2.5 and you don't see a link saying something like "Don't have an account?" then you have User Registration turned off.
Go to the Users menu and select User Manager and then click on the Options icon in the toolbar. Under the Component tab set the first option Allow User Registration to Yes.
Save you changes and then click on one of the "Register to read more…" links and you should now see the extra "Don't have an account?"
If you want more than the basic Joomla! options for site access then you may want to look at the Joomla! Extensions Directory (JED) and the section on Site Access

How to change the default redirect page for logged out or unregistered users?

As the title says, I would like to change the default redirect page that Joomla redirects users, when they are logged out or unregistered. I just can't find which file I should edit. I am talking about Joomla 1.5.26 version.
You don't have to edit any files.
If your users are using the mod_login module to Logout you can specify a Logout Redirection Page (i.e. a menu item) in the module itself.
If you're using a "User Menu" with a Logout menu item you can specify in the menu item a Logout Redirection URL — note this a URL not a specific menu item as with the module.

joomla: why does Registration Form menu item go to user's Profile page?

I created a new menu item: my_RegistrationForm_menu_item (type = Registration Form).
But when I click my_RegistrationForm_menu_item, it goes to "User Profile" page instead of the "Registration Form" page.
Also, if I append: index.php/component/users/?view=registration
OR index.php?option=com_users&view=registration
to my browser URL, it re-directs me to index.php/.../profile
NOTE: if I click the Create An Account button in the default LOGIN module, it will correctly take me to the "Registration Form" page.
Why does the Registration Form menu item go to the user's "User Profile" page ?
If you have selected type = Registration, then there is no reason why it should be redirecting to the User Profile page, unless you have touched any related core Joomla files.
As an alternative, you can select type = External and use the following link:
index.php?option=com_users&view=registration
Update:
You can also do the following:
Create a new menu (not menu item) called "hidden"
Create a new menu item for the "hidden" menu called "register", set the type to "external" and add the link that I provided above.
Create a new menu item for your main menu, set the type to "Menu Item Alias" and called it "Register". Then in the Required Setting section, select the hidden menu item you created before.
If this still dosn't work then there is something wrong with your Joomla site and the com_users code has been tampered with most likely

Access virtuemart cart and shop for registered user only

Can i restrict the access permission for virtuemart cart and shop. It is my client requirement to show add to cart and user cart only for registered user and whenever any visitor try to get cart it will be redirected on login page.
have any possibility in virtuemart to fix access permission for non register user OR I should to change shop module code to restrict the access.
Need your suggestion very fast...
Thanks
As far as the cart is concerned, if you have it in a module then you simply need to set the access level to registered. For the cart flypage, you will need to set up a menu item for that page and set the access level to registered. The menu item can be in a hidden menu, it does not have to be displayed anywhere for this to work. As far as the add to cart button, You just need to make a modification to the theme, look for addtocart_form.tpl.php. You can put a simple conditional statement that displays a message if the user is not logged in. Here is a good example of using the user object in Joomla -
http://docs.joomla.org/Accessing_the_current_user_object
You could easily copy the example on this page for the add to cart form.

Resources