Success

Anonymous
How can i do to make that only logged users could vote in the poll?

Sorry for my bad english

Success

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
[QUOTE config.php]
$_CONF['pollsloginrequired'] = 1;
[/QUOTE]

Success

Anonymous
Yes, i have:

$_CONF['loginrequired'] = 1; // all of them, if set to 1 will override all else
$_CONF['submitloginrequired'] = 1;
$_CONF['commentsloginrequired'] = 1;
$_CONF['pollsloginrequired'] = 1;

But non-logged users could still vote in the poll.

If anyone can helpme...

Thanks LWC

Success

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Make sure the Poll block is not visible for anonymous visitors, ie. uncheck the "Anonymous R" checkbox for that block.

bye, Dirk

Success

Anonymous
Ohhhh Perfect

Thanks for all

Suck

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Wait a minute Dirk, how is it possible his specific poll's permissions bypassed config.php?

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
The $_CONF['pollsloginrequired'] setting actually only refers to the list of past polls. Sort of silly, now that I think about it, but that's how it's implemented at the moment.

bye, Dirk

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Don't you actually mean "The $_CONF['pollsloginrequired'] setting actually only refers to the list of future polls" (that is, every poll that is created in a moment when $_CONF['pollsloginrequired']=1)?

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by LWC: Don't you actually mean [...]

No.

bye, Dirk

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818

Quote by: LWC] Don't you actually mean [...]
No.


Then I don't get it...

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
It affects the Poll list, not the Poll Blocks. You have to specify that the Block is not seen by anonymous too.

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
I see, so that setting doesn't affect the frontpage's polls, but just pollbooth.php itself?

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Ok, I did a search, trust me

I couldn't find it, and I know there is a thread somewhere outhere, that covers my question, but maybe not the answer.

Anyway, anyome made a mod so that a vote would be linked to the member and not just storing the IP for a certain time ?

I would like to use the poll so that our members can vote just once, just like in a democracy
Vanrillaer.com - our Family Portal

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
I probably wouldn't take much to fix this. Just need to swap these ifs (sorta) in public_htmlpolls/index.php (in v1.4):
Text Formatted Code
if (empty($qid)) {
    $display .= COM_siteHeader ('menu', $LANG_POLLS['pollstitle']);
    if (empty ($_USER['username']) && (($_CONF['loginrequired'] == 1) ||
            ($_PO_CONF['pollsloginrequired'] == 1))) {
...
    else { ...}
}

 
Like this:
Text Formatted Code
if (empty ($_USER['username']) && (($_CONF['loginrequired'] == 1) ||
        ($_PO_CONF['pollsloginrequired'] == 1)))
{ ...
} else if (empty($qid) { ...
} else ....

 
There are probably a few cases where some testing would be needed. Also some attention to the COM_siteHeader calls would be required.