- Posts: 4
- Thank you received: 0
Any questions about Documents Sellers, post it here .
Inability of public to view Document Category
- Herman
- Topic Author
- Offline
- New Member
Less
More
12 years 6 months ago - 12 years 6 months ago #15777
by Herman
Inability of public to view Document Category was created by Herman
Public are asked to register just to view category document. I have checked and it is not a permission issue. I discovered that it is not only for categories but also for documents view
Attachment Issues_with_documents_and_category_and_categoriew_view.jpg not found
Last edit: 12 years 6 months ago by Herman. Reason: review and add issues
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
12 years 6 months ago #15788
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Inability of public to view Document Category
Hi
I checked the code in the component and found that you or your developer customized it and added the code which require users to login before purchasing.
Please open the file components/com_dms/controller.php, find the code below and remove it. After that, it will work as expected .
Regards,
Tuan
I checked the code in the component and found that you or your developer customized it and added the code which require users to login before purchasing.
Please open the file components/com_dms/controller.php, find the code below and remove it. After that, it will work as expected .
Code:
$user =& JFactory::getUser();
if ($user->guest)
{
$msg = "Please login";
$rurl = base64_encode($_SERVER['REQUEST_URI']);
$url = JRoute::_('index.php?option=com_users&view=login&return='.$rurl);
$mainframe->redirect($url, $msg);
}
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.