Forums

YOP Poll
[resolved] Missing View Poll Archive link (5 posts)

  1. ercanrua
    Member
    Posted 3 months ago #

    I seem to be missing the View Poll Archive link, assuming there should be one in my widget along with the Vote button and the View Results link.

    http://www.musicunited.ca

    I've added a Poll Archive menu item so folk can see the archive page, but assume there should be a link in the poll widget as it's a series of settings in YOP Poll | YOP Poll Options | Archive Options.

    Am I wrong in this? or do I have something wrong in my site, I wonder?...

    Thanks!

    http://wordpress.org/extend/plugins/yop-poll/

  2. YourOwnProgrammer
    Member
    Plugin Author

    Posted 3 months ago #

    Hello

    By default, there is no link for Poll Archive in YOP Poll Widget.
    If you want to have the link appear, you will need to edit the templates to add the link.

    Please let us know if you need more help with this.

    Best Regards,
    YOP Team

  3. ercanrua
    Member
    Posted 3 months ago #

    But I should expect to see Poll Archive on the Polls page, then?

    I guess my problem is that of understanding at the moment. I don't see the archive anywhere, unless I create a page for it and link directly to that.

    If there are settings for View Poll Archive Link and View Poll Archive Link Label, I figure I should be expecting to see the link show up somewhere! Shouldn't I?

    I'm okay, I think, with making a change to the template php if I need to, though. I presume that would be yop_poll.php, right? Any tips or suggestions?

    Thanks!

  4. YourOwnProgrammer
    Member
    Plugin Author

    Posted 3 months ago #

    If you want to show a link to the polls archive, you can edit the template(s) you are using for your polls to add the following code

    %POLL-VIEW-ARCHIVE-LINK%

    For example:

    <div id="yop-poll-results-%POLL-ID%">%POLL-VIEW-RESULT-LINK%</div>
            <div>%POLL-VIEW-ARCHIVE-LINK%</div>

    Also, you will need to have View Poll Archive Link set to Yes.

    Please let us know if you have further questions.

    Best Regards,
    YOP Team

  5. ercanrua
    Member
    Posted 3 months ago #

    Absolutely perfect. Just what I was looking for, thanks!

    For anyone else interested, I made the following changes:

    To "Template Before Vote"

    <div id="yop-poll-results-%POLL-ID%">%POLL-VIEW-RESULT-LINK%</br>
              %POLL-VIEW-ARCHIVE-LINK%</div>

    To "Template After Vote"

    <div id="yop-poll-back-%POLL-ID%">%POLL-BACK-TO-VOTE-LINK%
              <span style="float:right;">%POLL-VIEW-ARCHIVE-LINK%</span></div>

    And in the CSS

    #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
        float: right;
        margin-bottom: 0px; /*** was 20px ***/
        margin-top: -20px;
        width: auto;
    }

    Thanks, YOP!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.