Feature Requests

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

[Closed] registeredonly plugin and k2 integration

More
16 years 2 months ago - 12 years 4 months ago #1 by sara
hi
does this plugin work with k2?so can it limit k2 items and categories?
this is necessary for sites requiere registerations to access content and native k2 installtion doesnt allow this feature
regards
Last edit: 12 years 4 months ago by Antonio Durán.

Please Log in or Create an account to join the conversation.

More
16 years 2 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: registeredonly plugin and k2 integration
Hi. I had never heard of k2 before, so I guess it may not integrate....

Really, registeredOnly only checks to see if the user is logged before redirecting him.

Is seems what you want is something like:
- Allow guest only to this 2 categories and redirect them to login form if they try to access other conntent.

Am I right?

Please Log in or Create an account to join the conversation.

More
16 years 2 months ago #3 by sara
hi
thanks for your reply.actuall i can set categories to registered members only but it displays joomla 403 error.but actually it should display a joomla login page
Code:
403 - You are not authorised to view this resource. You may not be able to visit this page because of: 1. an out-of-date bookmark/favourite 2. a search engine that has an out-of-date listing for this site 3. a mistyped address 4. you have no access to this page 5. The requested resource was not found. 6. An error has occurred while processing your request. Please try one of the following pages: * Home Page If difficulties persist, please contact the System Administrator of this site. You are not authorised to view this resource. Call stack # Function Location 1 JSite->dispatch() D:\xampp\htdocs\lib\index.php:68 2 JComponentHelper->renderComponent() D:\xampp\htdocs\lib\includes\application.php:126 3 require_once() D:\xampp\htdocs\lib\libraries\joomla\application\component\helper.php:162 4 JController->execute() D:\xampp\htdocs\lib\components\com_k2\k2.php:28 5 K2ControllerItemlist->display() D:\xampp\htdocs\lib\libraries\joomla\application\component\controller.php:236 6 JController->display() D:\xampp\htdocs\lib\components\com_k2\controllers\itemlist.php:28 7 JCacheView->get() D:\xampp\htdocs\lib\libraries\joomla\application\component\controller.php:308 8 K2ViewItemlist->display() D:\xampp\htdocs\lib\libraries\joomla\cache\handler\view.php:98 9 JError->raiseError() D:\xampp\htdocs\lib\components\com_k2\views\itemlist\view.html.php:44 10 JError->raise() D:\xampp\htdocs\lib\libraries\joomla\error\error.php:171 11 JException->__construct() D:\xampp\htdocs\lib\libraries\joomla\error\error.php:136
this is line 44 of view.html.php:
Code:
//Access check $user = &JFactory::getUser(); if ($category->access > $user->get('aid', 0)) { JError::raiseError(403, JText::_("ALERTNOTAUTH"));
can i modify jraiseroor so it redirects to login page?
their forum is so busy
thanks a world

Please Log in or Create an account to join the conversation.