Ok, need some help with the Polls Plugin. I have it set up just th way I need except for one thing. I need Just the site admin to see results.....how should I go about accomplishing that?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- costakisc@costakisc
costakisc - 0 likes
- bliggitty@bliggitty
bliggitty - 0 likes
- bliggitty@bliggitty
bliggitty - 0 likes
- bliggitty@bliggitty
bliggitty - 0 likes
- Mark@Zander1983
Mark - 0 likes
- bliggitty@bliggitty
bliggitty - 0 likes
- bliggitty@bliggitty
bliggitty - 0 likes
- bliggitty@bliggitty
bliggitty - 0 likes
- bliggitty@bliggitty
bliggitty - 0 likes
You must log in to post replies.would help to either post a link to the plugin, or ask this question in the comment section of the plugin
http://community.elgg.org/plugins/733057/1.8/polls-elgg-18
I did ask in the plugin comments but havnt hear anything, its been a while now. So im posting here. Any help would be AWESOME!
BUMP
/sigh
Just had a look at the plugin @bliggity
in the file mod/polls/view/default/object/poll.php, on line 106 there is:
echo elgg_view('polls/results', array('entity' => $vars['entity']));
wrap it in the elgg_is admin_logged_in() so it looks like:
if(elgg_is_admin_logged_in()){
echo elgg_view('polls/results', array('entity' => $vars['entity']));
}
That should do it:)
i tried it but it made it so the user could no longer see even the questions for the poll. im tryin again
thats putting me on the right track. just beleive that could be the wrong page for it. I have edited and it makes it so the response check boxes are not visisble and you cannot vote while you can see total results. I need the results to only be shown to admins. im huntin :P
im using the plugin from github. that page is different. having trouble finding the page with the results query
got it under widget_results.php page. working great! thanks for your helP!