Thanks that helped!
1 2006-09-02 12:17
Re: Easy Poll - 1.1.3 (224 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2006-08-31 02:40
Re: Easy Poll - 1.1.3 (224 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I'll ban all Malicious users that try to use this trick
Unless you show me a better way hehe
I also found out that moderatepoll.php is needed if for example you want to make a poll a sticky. Basically, it's the same as moderate.php but just for polls. I think you don't have to do anything special to use it.
3 2006-08-31 02:25
Re: Easy Poll - 1.1.3 (224 replies, posted in PunBB 1.2 modifications, plugins and integrations)
How do I set that only moderators+admin can post a new poll?
I know nothing about php (i'm a C coder) but I somehow managed to allow only admins to create polls.
In viewforum.php: (line 64 for me)
// Can we or can we not post new topics?
if ($is_admmod)
$post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a><BR /> <a href="poll.php?fid='.$id.'">'.$lang_polls['New poll'].'</a></p>'."\n";
else if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1')
$post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a></p>'."\n";
else
$post_link = '';
Not sure yet how to allow a certain group of users to post polls in certain forums, need to study the punbb code