Support » Plugin: TS Poll » How to show results in theme and give option to vote?

  • Resolved just0nequestion

    (@just0nequestion)


    I’m trying to show the results within my theme. I found out about the shortcode but this doesn’t do the trick.

    And are we able to give the visitors the ability to vote while viewing the results somehow?

    In short I just a need a switched version that shows user the results and invites them to vote by a button

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter just0nequestion

    (@just0nequestion)

    By the way:

    It is awesome that people can use a href=”” in the answer fields. Beeing able to use links there makes the poll really much more useful in some cases. Please don’t get rid of this feature. I really like the idea behind!

    What I really dislike: Please get rid of using google fonts and facebook sdk. In europe it’s not legal to use these US based services without opt in from the user.

    Please add an option to get rid of third party downloads and implement the code necessary within your plugin itself. It would suit millions of users more if the user at least has the choice to disable these includes!

    Looking forward to your answer.

    Best regards!

    Thread Starter just0nequestion

    (@just0nequestion)

    If you want to get rid of 3rd party integrations like facebook, google fonts and fontawesome within the Responsive Poll plugin just change the files accordingly:

    File /poll-maker/public/class-poll-maker-ays-public.php

    Find line
    wp_enqueue_style('ays_poll_font_awesome', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', array(), '5.6.3', 'all');

    replace with:
    wp_enqueue_style('ays_poll_font_awesome', '//', array(), '5.6.3', 'all');

    Find line
    wp_enqueue_style('ays_poll_font_awesome', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', array(), '5.6.3', 'all');

    replace with:
    wp_enqueue_style('ays_poll_font_awesome', '//', array(), '5.6.3', 'all');

    File /poll-maker/public/js/poll-maker-ays-public.js

    Find line

    window.fbAsyncInit = function() {	
    	        FB.init({	
    	            appId: '1204514392893219',	
    	            xfbml: true,	
    	            version: 'v3.0'	
    	        });	
    	    };	
    	    (function(d, s, id) {	
    	        var js, fjs = d.getElementsByTagName(s)[0];	
    	        if (d.getElementById(id)) return;	
    	        js = d.createElement(s);	
    	        js.id = id;	
    	        js.src = 'connect.facebook.net/en_US/sdk.js';

    replace with:

    window.fbAsyncInit = function() {
    	        FB.init({
    	            appId: '',
    	            xfbml: true,
    	            version: 'v3.0'
    	        });
    	    };
    	    (function(d, s, id) {
    	        var js, fjs = d.getElementsByTagName(s)[0];
    	        if (d.getElementById(id)) return;
    	        js = d.createElement(s);
    	        js.id = id;
    	        js.src = '//';

    File: /poll-maker/public/css/poll-maker-ays-public.css

    Find line
    @import url('https://fonts.googleapis.com/css?family=Roboto');
    Delete it!

    Find line (appears 2x times)
    font-family: 'Roboto', sans-serif;

    and delete em!

    @font-face {	
    	    font-family: 'share-buttons';	
    	    src: url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.eot?gpra60');	
    	    src: url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.eot?#iefixgpra60') format('embedded-opentype'), url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.woff?gpra60') format('woff'), url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.ttf?gpra60') format('truetype'), url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.svg?gpra60#share-buttons') format('svg');	
    	    font-weight: normal;	
    	    font-style: normal;	
    	}

    replace with:

    @font-face {
    	    font-weight: normal;
    	    font-style: normal;
    	}
    • This reply was modified 1 year, 5 months ago by just0nequestion.
    • This reply was modified 1 year, 5 months ago by Yui.
    Plugin Author totalsoft

    (@totalsoft)

    Hello, dear just0nequestion.

    If you want to show the result before voting, you need to make settings from the options. In Settings, find the “Button Option” menu. There is a “Results Button”. There you can choose to show the “Results” button or not.

    Thank You.

    Plugin Author totalsoft

    (@totalsoft)

    Dear just0nequestion.

    Excuse me. But this “poll-maker” plugin is not ours. Please can you explain to us what can we do for you? So that we can understand you. Thanks in advance.

    Thread Starter just0nequestion

    (@just0nequestion)

    lol

    The reason why I uninstalled your plugin was the missing ability to use html code within the answers. I tried using links as answers since I wanted to make a poll about some websites. The links got removed. If you can think about adding this feature, give me a shout 🙂

    I think it’s best to close / or delete this topic. I tried many plugins and just messed up here. All I’ve said in my previous posts is related to the https://wordpress.org/support/plugin/poll-maker/ plugin.

    Sorry dude for wasting your time. Well maybe you will consider my suggested feature, then all of this hasn’t been for nothing then 🙂

    Best regards!

    Plugin Author totalsoft

    (@totalsoft)

    Dear just0nequestion.

    Thank you for your good suggestion. We will try to add it on the next version.

    Thank You.

    Thread Starter just0nequestion

    (@just0nequestion)

    I’m glad to hear that.

    Thank you for your fast and very kind response!

    May the force be with you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to show results in theme and give option to vote?’ is closed to new replies.