Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[NEW PLUGINS] PollManager

Quote Reply
[NEW PLUGINS] PollManager
Hi,

I've very pleased to announce the release of PollManager, v1.0

Details can be found here: http://www.ultranerds.com/...on/PollManager_L258/

NB: This is part of the ULTRA and ULTRA Pro packages too =)

Price: $50

Features / Screenshots etc can be found at: http://www.ultranerds.com/...on/PollManager_L258/

If you have any questions, please don't hesitate to ask.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Hi,

I've had some feedback from a couple of people who have this setup on their site now. The main thing,was the wanted to allow people to vote for a poll, even if it wasn't the "main" one. I've overcome this by adding this feature into the poll_stats.html and poll.cgi stuff - so they can vote on "old" polls.

The new version is 1.1, and available from our Members Area Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Hi Andy,
clicking on "edit poll" shows only
Your search returned no results.

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [NEW PLUGINS] PollManager In reply to
Mmm.. really? Is this on gpaed, on the unterricht install?

I tested it on my install - and that link works fine - it lets you edit the poll fine Unsure

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Hm, at the moment I have only a poll with the ID3
But the edit link is searching for a poll with the ID6???

I try to delete all polls, and start again!

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [NEW PLUGINS] PollManager In reply to
Hi,

Whoops, I see the problem - the "6" was hard-coded, instead of $hit->{PollID} Tongue

Please download the latest version (same version number, 1.1) - and this will be fixed.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Now it's working fine Cool
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [NEW PLUGINS] PollManager In reply to
Hi Andy,
there is another thing Blush
When unlogged users try to vote, they are redirected to gcommunity login page, but their vote is counted?
Is there a way to allow votes only for logged in users?

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [NEW PLUGINS] PollManager In reply to
Hi,

Mmm.. really?

The code shouldn't allow that Unsure

Try editing (in poll.cgi):

Code:
sub check_login {
if (!$USER) {
print $IN->redirect( Links::redirect_login_url ('add') );
}
}

..to:

Code:
sub check_login {
if (!$USER) {
print $IN->redirect( Links::redirect_login_url ('add') );
exit;
}
}

Does that make a difference? (shouldn't even get the exit; , cos it redirects to the $IN->redirect should actually be like doing a print "Location: http:/www.bal \n\n";)

Chers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Andy wrote:
Does that make a difference? (shouldn't even get the exit; , cos it redirects to the $IN->redirect should actually be like doing a print "Location: http:/www.bal \n\n";)

Yes, that seems to be better. No votes for unlogged users...
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Quote:
shouldn't even get the exit

Huh?...you are only doing a "print" so of course the execution willl continue to the "exit".
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Hi Andy,
what about a poll pop up on home.html for logged in users.
The pop disappears, when the user has voted.

I know a pop up is easy to realize with java script, but I don't know how to integrate, that there is no pup up, when the user has voted.

Thanks

Matthias
gpaed.de

Last edited by:

Matthias70: May 6, 2008, 8:42 AM
Quote Reply
Re: [Matthias70] [NEW PLUGINS] PollManager In reply to
Hi,

So a pop-up BOX (i.e new window), with the poll - but *only* for users who haven't voted yet?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Andy wrote:
Hi,

So a pop-up BOX (i.e new window), with the poll - but *only* for users who haven't voted yet?

Yes, I have lots of user ignoring the rightsidebar ;-))

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Is there an option somewhere to allow unlogged in users (visitors) to vote?
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] [NEW PLUGINS] PollManager In reply to
Hi,

I'm afraid not (otherwise, people could vote more than once =))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Hi Andy, is it possible to show the link to the results only if a user has already voted?

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [NEW PLUGINS] PollManager In reply to
Untested, but try this:

check_if_they_have_voted
Code:
sub {

my $poll_id = $_[0];
my $username = $USER->{Username};

my $count = $DB->table('PollResults')->count( { PollID => $poll_id, Username => $username } );

return { if_they_have_voted => $count }

}

Code:
<%check_if_they_have_voted($PollID)%>
<%if if_they_have_voted > 0%>
..they HAVE voted, so show the results link...
<%endif%>

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGINS] PollManager In reply to
Thanks works like a charm :-)

Matthias
gpaed.de