Minimum posts to vote in the polls ?

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Minimum posts to vote in the polls ?

Beitrag von mariokaz »

Hi guys and oxpus,:p

Does anyone know some MOD that do this ?

If a user want to vote in any of the polls of my forum they should have a minimum posts before do that.

I hope someone can help me in this, because I searched in a lot of forums, also here and I didn't find anything like that. ¦4

Cheers!

Mario
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hm, I don't know about such a MOD.
Maybe this can work:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
viewtopic.php

#
#-----[ FIND ]-----
#
$is_auth = array();
$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_topic_data);

#
#-----[ AFTER, ADD ]-----
#
// Replace X with the number of posts an user must have to be able to vote
if ($userdata['user_posts'] < X)
{
	$is_auth['auth_vote'] = 0;
}
This will disable the auth to vote for the current user under she/he have X posts... Okay, untested...
If you can't find the second line, search for the first line where $is_auth will becomes some contents.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Thanks oxpus for your code also I found this:

http://www.phpbbmodders.com/viewtopic.php?t=325

If somebody also need it there is the link. :D
Antworten