Show a "View Full result" within a survey
Permalink
I've searched the site, documentation, developers how to's and the forums but couldn't obtain/find the needed information.
Within the survey block in the view.php file at around line 60 there's a code that mentions the View full results:
I tried to add that line (without the if($_GET['dontGraphPoll'])...) to the else statement, so that IF the user didn't submit a vote he/she could see the full results. But will not work.
I searched the cms for an option and it's no where to be found.
So now I ask; Is there a way to write it so even if the user didn't submit a vote they can view the full results?
I have good knowledge of Concrete5 and PHP, you don't need to explain every steps :)
Thank you for your time and patience.
Within the survey block in the view.php file at around line 60 there's a code that mentions the View full results:
I tried to add that line (without the if($_GET['dontGraphPoll'])...) to the else statement, so that IF the user didn't submit a vote he/she could see the full results. But will not work.
I searched the cms for an option and it's no where to be found.
So now I ask; Is there a way to write it so even if the user didn't submit a vote they can view the full results?
I have good knowledge of Concrete5 and PHP, you don't need to explain every steps :)
Thank you for your time and patience.
The following statement:
was moved below:
This way, I was able to add the background-color options, pie-chart and total views for the user who didn't place a vote. I also modify the number of received views so that if views = to 0, echo "No votes".
It might be a good idea to create a template folder!
This method currently works for me and PHP didn't issue errors.