[Typo3] quickpoll - view only results

Wietse van Bruggen w.van.bruggen at gmail.com
Fri Feb 25 11:44:45 CET 2005


Hi David				

Sorry for bringing up this old question on the mailinglist, but i think this is something people might find useful. And it's actually quite easy to do.

in class.tx_quickpoll_pi1. php add a case to the switch :
		switch ($this->go) {
			case 'savevote':
				$content = $this->savevote();
				break;
			case 'viewresults':
				$content = $this->showresults();
				break;
			default:
				$content = $this->showpoll();
		};

In this case i've added the case 'viewresults' which is used when i have viewresults in my querystring. Now, the next thing is quite dirty to do because its hardcoded, but you'll get an idea on how you can achieve this.

Add the following in the part where your form is being created (in my case i've added it so its to the right of my submitbutton) :

<a href="index.php?id=468&type=1&tx_quickpoll_pi1[go]=viewresults"><img src="fileadmin/img/votebutton.gif" border="0"></a>

This should do the trick with quickpoll

Greets,
- Wietse van Bruggen (wvanbruggen)

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110109129/
					
> Hello everybody!
> 
> I've just installed the quickpoll extension. It works fine but I have
> one question: Is it possible to view only the results, without voting
> (e.g. link to results)?
> 
> Greetings
> David
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 



More information about the TYPO3-english mailing list