Mooff
11-17-2011, 01:40 AM
Hi, i tried using a descriptive thread title, i hope i didn't fail. :p
I'm currently throwing a poll widget together for our cms, everythings fine so far (pulling the poll, voting, showing results) but i'm not happy about how voting works right now.
That is what happens: When someone votes he gets redirected to the thread in which the poll is. That is not what i want. I want him staying in the cms on the site where he voted. Can someone help me and tell me what i need to change in the code to achieve that?
Current input fields in the vote view:
<input type="submit" class="button" value="'.$vbphrase['vote_now'].'" tabindex="1" />
<a class="textcontrol" href="/poll.php?amp;pollid='.$pollinfo['pollid'].'">'.$vbphrase['view_poll_results'].'</a>
<input type="hidden" name="s" value="'.$vB_Registry->session->vars['sessionhash'].'" />
<input type="hidden" name="securitytoken" value="'.$vB_Registry->userinfo['securitytoken'].'" />
<input type="hidden" name="do" value="pollvote" />
<input type="hidden" name="pollid" value="'.$pollinfo['pollid'].'" />
Help would be greatly appreciated.
Cheers
problem solved.
I'm currently throwing a poll widget together for our cms, everythings fine so far (pulling the poll, voting, showing results) but i'm not happy about how voting works right now.
That is what happens: When someone votes he gets redirected to the thread in which the poll is. That is not what i want. I want him staying in the cms on the site where he voted. Can someone help me and tell me what i need to change in the code to achieve that?
Current input fields in the vote view:
<input type="submit" class="button" value="'.$vbphrase['vote_now'].'" tabindex="1" />
<a class="textcontrol" href="/poll.php?amp;pollid='.$pollinfo['pollid'].'">'.$vbphrase['view_poll_results'].'</a>
<input type="hidden" name="s" value="'.$vB_Registry->session->vars['sessionhash'].'" />
<input type="hidden" name="securitytoken" value="'.$vB_Registry->userinfo['securitytoken'].'" />
<input type="hidden" name="do" value="pollvote" />
<input type="hidden" name="pollid" value="'.$pollinfo['pollid'].'" />
Help would be greatly appreciated.
Cheers
problem solved.