I am loading the Joomla login module in an article using {loadposition xxx}.
when cache is on it doesn't works and give the error of Invalid Token.
What I figured out is that it is taking value of hidden field of the Joomla token from the cache which is usually generated randomly differently every time login module is loaded.
Can anybody have some idea to make it works?
First you cannot remove the hidden field of the token because this way the form will never work ... It's a required parameter so you have to restore it back and follow these steps
Go to the Module manager
One the module
The first item on the parameters is called "Caching" set it to never.
EDIT
You better use the plugin Modules Anywhere by Nonumber.nl
It fix 99$ of the issues that occur because of {loadposition} in regards to module title, content, caching ... etc
Related
i need to remove the registration link inside the login view http://bartenders4hire.net/index.php/login without completely disabling the registration functionality.
We are using js Jobs on the site and the regular registration is not providing all fields, therefore i need to find the code where i simply can delete the registration link.
I looked inside the modules and plugins, but couldn't find it
Anyone has an idea where i can find that code?
You'll find the registration-link in /components/com_users/views/login/tmpl/default_login.php on the bottom of the file. You can override this file in your own template by copying it to /templates/yourtemplate/html/com_users/login/default_login.php. Then you can remove the registration-line from the file in your template,
regards Jonas
I am using mod_login for my Joomla Website. It works properly. But whenever there is a wrong username/password it's redirecting to com_user instead of mod_login. When I put wrong info it goes to the following page:
http://my_joomla_site/component/users/?view=login
How can i remove this com_user taking over of my mod_login? In case of wrong username/pass i want it to redirect to the mod_login page with an error message.
As I said in my comment, a module is not a component... The com_user takes over because Joomla can't send you to a module when the user details are wrong.
I believe you have a module in a certain menu item and you want the user to be redirected to that menu in case of wrong username/password.
I had the same problem, and found this plugin:
Core Login Redirect
It allows you to customize the destination of various cases, and doesn't require editing core files, as it would be my second suggestion (it works, but with the plugin there is no need to go this route):
http://forum.joomla.org/viewtopic.php?p=1296923#p1296923
On a Magento 1.11.1 site (Pro).
When I go to the URL [site]/customer/account/create I should get the form for creating a customer from the file /frontend/base/default/template/persistent/customer/form/register.phtml in block Mage_Customer_Block_Form_Register. Instead there is no such block included (show hints and show blocks enabled).
The customer login form works [site]/customer/account/login by displaying the form from file /frontend/base/default/template/persistent/customer/form/login.phtml in block Mage_Customer_Block_Form_Login. This works fine.
I'm using basically the modern theme with modifications (in a separate directory).
Also, customers are still able to create an account via the checkout process.
Is there an configuration parameter that might be set that could disable the standalone 'create customer account' functionality?
Could I have some issue with the templating that is getting in the way of displaying this register block?
So far I have not found the program logic that controls whether the register block is included or removed or anything? I've checked on file permissions and everything else I could think of, but there is obviously something I am overlooking or not aware of.
Any pointers on discovering the source of the problem would be appreciated.
For some reason, when I log into my joomla 1.6 backend, it is now empty, displaying only a logout button. Any Ideas?
I just went through the same problem but on J!1.7.3. There may be many, many reasons but please check using just URL if you can see for example:
[YourDomainHere]/administrator/index.php?option=com_content or
[YourDomainHere]/administrator/index.php?option=com_modules
If content is listing and you're missing just Admin-menu and sub-navigation in back-end --> this means you messed-up with access levels and viewing access.
If you can't see content listing - ignore the rest of this post :-)
...with access levels and viewing access. To check that, try entering [YourDomainHere]/administrator/index.php?option=com_users&view=levels and enter each position in the list. Joomla backend navigation module usually has Access set to Special, so focus on this one. When enter Special - manager, author and super administrator should be ticked. If everything empty in any from the list - this is your issue :)
You need to add manager, author and super administrator to your Special access level. Obviously you can't see Save button, so you need to use database. [wrrr :) sounds scary?] Not a big deal, just go there using for example phpMyAdmin and find _viewlevels table. In there just edit Special and add [6,2,8] values to set up manager, author, super.....
Update database. Try to log-in one more time (close browser and clean cache before).
I hope if this wasn't helpful for you, will be for somebody else.
p.s. There may be a way of 'saving' changes in you joomla access levels with URL. Then you don't need to go to DB .. but I don't know if this is feasible at all :)
Check the rewrite of htaccess and the $mosConfig_absolute_path variable in config.php
Apparently, the Bluestork Template (admin template) has some security issues. In my case there were some missing files in the template folder /administrator/templates/bluestork/ that caused the administrator screen to appear blank. I've copied a clean version of the template in the bluestork folder and after that I was able to see the backend admin area.
I've removed the bluestork templates entirely for now, which seems to be the best option. Joomla installs 2.5.8, 2.5.6, 2.5.2, 1.7.0, 1.6.3 are affected. The Blustork Template is a target for hacks with old Joomla.
this happening becoz of admin user lost his permissions. see below article to fix this issue
http://www.codentalk.com/joomla-admin-showing-blank-page/
I'm using Joomla 1.7.3 and Virtuemart 2.0, everything works except the registration of users, in previous virtuemart this worked by default, but now I can not register new users, some clue about the problem?
There are two things happening.
In VM 2.0 there is some XML missing that allows you to specify a link to a registration form - if you use the account maintenance option it gets a slightly different page (see this thread on the VirtueMart 2.0 forum). This is already fixed in the prerelease version 2.0.1b and hides some unwanted fields.
To link to the correct page you should use a Joomla! menu type of System Links -> External URL and set the Link field to:
/index.php?option=com_virtuemart&view=user&layout=editaddress
The "Please enter your name." means that the field is defined in VM2's configuration as Required. I believe the problem occurs because neither the Account Maintenance or the link I provided above give the user a chance to enter a user name. The work around is to point them to a standard Joomla! registration page and then when they checkout they can complete the rest of their details.
(In VM2 shoppers are standard Joomla! users so this is a perfectly acceptable way around it).
with the link you told me the problem is still happening, so I was to comment the line of user.php that making the validation in the method check()
if (trim($this->name) == '') {
$this->setError(JText::_('JLIB_DATABASE_ERROR_PLEASE_ENTER_YOUR_NAME'));
return false;
}
the value for this->name is empty, why??? with this lines comment, i can register and login on virtuemart....