Gossamer Forum
Quote Reply
LPoll
HI there, first of all i would like to say that i really like the poll MOD. I would like to see one feature added to it. Is it possible to have hyper links that people click on to vote instead of option boxes and a submit button.

Any one help with how to hack code to include this.

For example:

What is your fav game?

<a href="http://www.gamesnstuff.com/cgi-bin/voting/survey.pl?id=2&response=1">Tomb Raider</a>


This would be a really cool feature.

Quote Reply
Re: LPoll In reply to
Yeah that can be done just put something like this:

<a href="<db_cgi_url>/lpoll.cgi?choice=1">Tomdraider</a>
<a href="<db_cgi_url>/lpoll.cgi?choice=2">Tomdraider 2</a>
etc......

If your using the voting links in somewhere other than your templates change <db_cgi_url> to your actual url.

Glad you like it!


Good Luck!

Glenn

http://mir.spaceports.com/~glennu/
Quote Reply
Re: LPoll In reply to
Cool. Thanksa lot. One more thing. Is it possible to have more than one voting subject. For example have a for on what you fav game is and what you fav console is.



Quote Reply
Re: LPoll In reply to
In theory you could have as many subjects as you like, however using the current code it is would get quite large.

(Improving it and looking at ways to do that is on my 'to do' list) However you could do it now with the current code by just repeating the sections and having another option in LPoll.cgi ie. have 'choice' and 'choice2'

In a week or 2's time I should have some spare time so I'll a few more options then.

Good Luck!

Glenn

http://mir.spaceports.com/~glennu/
Quote Reply
Re: LPoll In reply to
I would be cool if you could include this option in the code.

Quote Reply
Re: LPoll In reply to
Yep no problem. I've already improved some of the code used. (I just haven't got round to posting yet). I'll probably look into it and update the whole lot at the same time.

Good Luck!

Glenn

http://mir.spaceports.com/~glennu/
Quote Reply
Re: LPoll In reply to
When you post the code let me know. I'll wait until the new code comes out before i install it.