Welcome, Guest
Username: Password: Remember me
Ask your queries or discuss about Community Surveys component in this forum.

TOPIC: Public Survey Results not working

Public Survey Results not working 1 year 2 months ago #9842

  • Carsten
  • Carsten's Avatar
  • OFFLINE
  • User
  • Posts: 7
  • Karma: 0
When having a public survey and álso a public report, then the script still requires a login to see the outcome of a survey. Is there a way to overcome this ?
The administrator has disabled public write access.

Re: Public Survey Results not working 1 year 2 months ago #9846

  • Maverick
  • Maverick's Avatar
  • OFFLINE
  • Developer
  • Posts: 6221
  • Thank you received: 495
  • Karma: 116
Check permission settings in components->community surveys->configuration->options button on toolbar. You need to give component access permission to public.
If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory (direct links are given below).
Community PollsCommunity AnswersCommunity QuizCommunity QuotesCommunity Surveys
Community CrosswordsGPS ToolsArticle SuggestionsCjBlog
The administrator has disabled public write access.

Re: Public Survey Results not working 1 year 2 months ago #9852

  • Carsten
  • Carsten's Avatar
  • OFFLINE
  • User
  • Posts: 7
  • Karma: 0
I have marked everything under "Permission Settings", also enabled Public User Access. Also I went into surveys switched on "Public Report Access" and switched off private survey. Any further ideas ?

This is the problem:

Part of the message is hidden for the guests. Please log in or register to see it.
The administrator has disabled public write access.

Re: Public Survey Results not working 1 year 2 months ago #9854

  • Maverick
  • Maverick's Avatar
  • OFFLINE
  • Developer
  • Posts: 6221
  • Thank you received: 495
  • Karma: 116
I see I am able access the survey from url
http://www.edupinion.nl/index.php?option=com_communitysurveys&view=survey&task=take_survey&id=21:check
. So most probably your menu item has not set to public access.
If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory (direct links are given below).
Community PollsCommunity AnswersCommunity QuizCommunity QuotesCommunity Surveys
Community CrosswordsGPS ToolsArticle SuggestionsCjBlog
The administrator has disabled public write access.

Re: Public Survey Results not working 1 year 2 months ago #9855

  • Carsten
  • Carsten's Avatar
  • OFFLINE
  • User
  • Posts: 7
  • Karma: 0
The problem is the report of the survey, I am not able to see them in public:

www.edupinion.nl/index.php?option=com_co...1%3Acheck&Itemid=102

If there is no option for it in the backend, I would probably have to change the php code and if so, where would I find it ?
The administrator has disabled public write access.

Re: Public Survey Results not working 1 year 2 months ago #9856

  • Maverick
  • Maverick's Avatar
  • OFFLINE
  • Developer
  • Posts: 6221
  • Thank you received: 495
  • Karma: 116
Public users cannot see the reports unless they take the survey and go to end of the survey. You can force the app to allow reports seen by the public by modifying the code a little.

Line 484 of components/com_communitysurveys/controllers/survey.php
if($user->guest) {
			$itemid = SurveyHelper::getItemId();
			$sid = JRequest::getVar('id',0,'','int');
			$redirectUrl = base64_encode(JRoute::_('index.php?option='.S_APP_NAME.'&view=survey&task=reports&id='.$sid.$itemid));
			$link = APP_VERSION == '1.5' 
				? JRoute::_("index.php?option=com_user&view=login".$itemid."&return=".$redirectUrl) 
				: JRoute::_("index.php?option=com_users&view=login".$itemid."&return=".$redirectUrl);
			$this->setRedirect($link, JText::_('MSG_NOT_LOGGED_IN'));
		}else {
			$view = &$this->getView('survey', 'html');
			$model = &$this->getModel('survey');
			$view->setModel($model, true);
			$action = 'survey_reports';
			$view->assignRef('action',$action);
			$view->display();
		}
You can remove the first if block so it should be
$view = &$this->getView('survey', 'html');
			$model = &$this->getModel('survey');
			$view->setModel($model, true);
			$action = 'survey_reports';
			$view->assignRef('action',$action);
			$view->display();
If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory (direct links are given below).
Community PollsCommunity AnswersCommunity QuizCommunity QuotesCommunity Surveys
Community CrosswordsGPS ToolsArticle SuggestionsCjBlog
The administrator has disabled public write access.

Re: Public Survey Results not working 1 year 2 months ago #9858

  • Carsten
  • Carsten's Avatar
  • OFFLINE
  • User
  • Posts: 7
  • Karma: 0
I now edited the code and get an error message.

"Error occured while processing your request. Please try again later."

If I login and try to access it, then however it works.
The administrator has disabled public write access.

Re: Public Survey Results not working 1 year 2 months ago #9860

  • Maverick
  • Maverick's Avatar
  • OFFLINE
  • Developer
  • Posts: 6221
  • Thank you received: 495
  • Karma: 116
You need to do one more change..

in components/com_communitysurveys/models/survey.php line 1307
if(($survey->created_by != $user->id) && !SurveyAuth::authorise('surveys.manage')) {
change to
if(($survey->created_by != $user->id) && !SurveyAuth::authorise('surveys.manage') && !$survey->public_permissions){
If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory (direct links are given below).
Community PollsCommunity AnswersCommunity QuizCommunity QuotesCommunity Surveys
Community CrosswordsGPS ToolsArticle SuggestionsCjBlog
The administrator has disabled public write access.

Re: Public Survey Results not working 1 year 2 months ago #9863

  • Carsten
  • Carsten's Avatar
  • OFFLINE
  • User
  • Posts: 7
  • Karma: 0
thanks once again, but it seems there is something else that blocks it. Shall I give you access to the server ?

Once again thanks already!
The administrator has disabled public write access.

Re: Public Survey Results not working 1 year 2 months ago #9864

  • Maverick
  • Maverick's Avatar
  • OFFLINE
  • Developer
  • Posts: 6221
  • Thank you received: 495
  • Karma: 116
Please send me through contact us form. I will fix this issue.
If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory (direct links are given below).
Community PollsCommunity AnswersCommunity QuizCommunity QuotesCommunity Surveys
Community CrosswordsGPS ToolsArticle SuggestionsCjBlog
The administrator has disabled public write access.

Re: Public Survey Results not working 11 months 5 days ago #11107

My survey also does not show the results. we have voted 4 times, and it should show after 3 votes, but I only get the message that I alread voted. I would expect the results.

How do I show results to the public?
The administrator has disabled public write access.

Re: Public Survey Results not working 11 months 4 days ago #11108

  • Maverick
  • Maverick's Avatar
  • OFFLINE
  • Developer
  • Posts: 6221
  • Thank you received: 495
  • Karma: 116
Did you enabled Public Permissions option while creating the survey? If not, edit and enable the option.
If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory (direct links are given below).
Community PollsCommunity AnswersCommunity QuizCommunity QuotesCommunity Surveys
Community CrosswordsGPS ToolsArticle SuggestionsCjBlog
The administrator has disabled public write access.

Re: Public Survey Results not working 11 months 4 days ago #11109

The administrator has disabled public write access.

Re: Public Survey Results not working 11 months 4 days ago #11110

  • Maverick
  • Maverick's Avatar
  • OFFLINE
  • Developer
  • Posts: 6221
  • Thank you received: 495
  • Karma: 116
Thats a bug. Please update to v1.7.8.
If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory (direct links are given below).
Community PollsCommunity AnswersCommunity QuizCommunity QuotesCommunity Surveys
Community CrosswordsGPS ToolsArticle SuggestionsCjBlog
The administrator has disabled public write access.
Time to create page: 0.175 seconds
Powered by Kunena Forum