Welcome, Guest. Please Login or Register.
July 13, 2025, 10:19:52 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Announcement board help « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Announcement board help  (Read 412 times)
lordy123
Jr. Member
**
Posts: 65


I'm a llama!

Announcement board help
« on: May 03, 2003, 01:12:23 PM »
Reply with quote

Hi,
I'd like to have a board where one of my users can start news topics and anyone can answer. So I set her up an announcement board and made her a mod on that board only.

So now she can start topics and anyone can reply. Great!  ;D

But she can't start Polls!? Why is that and what can I do without making her a G/mod or admin..

Any ideas ppl?!
Thanx!
Logged
Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!

ICQ - 172862020nonya69rs@hotmail.com WWW
Re:Announcement board help
« Reply #1 on: May 03, 2003, 03:03:50 PM »
Reply with quote

Make sure that you allow users to start polls
Logged

lordy123
Jr. Member
**
Posts: 65


I'm a llama!

Re:Announcement board help
« Reply #2 on: May 04, 2003, 02:05:15 PM »
Reply with quote

I've done that already. It seems that a normal mod can only create posts on an announcement board that they are modding. They cannot create new polls. It comes back with:

You are not allowed to create a new topic here - this is an announcement board.

Only Global Mods and Admins can start polls on any announcement board.  :-\

Is that how it should be or not?  ::)

Thanx.
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Announcement board help
« Reply #3 on: May 04, 2003, 02:19:42 PM »
Reply with quote

Try creating a new member group for that moderator.

Search Poll.php for:

&& $settings[7] != 'Administrator' && $settings[7] != 'Global Moderator'
And add the new member group to the two existing ones (Administrator and Global Moderator) in the same way for all three instances found:

&& $settings[7] != 'Administrator' && $settings[7] != 'Global Moderator' && $settings[7] != 'My New Member Group'
« Last Edit: May 04, 2003, 02:43:50 PM by Peter Duggan » Logged

lordy123
Jr. Member
**
Posts: 65


I'm a llama!

Re:Announcement board help
« Reply #4 on: May 04, 2003, 02:51:52 PM »
Reply with quote

Thanx Peter, you've got me looking in the right place..  I owe you a beer! ;D

I did this (hope this isn't a bad thing  :o , but it now does what I originally needed)
In Poll.php

line 43 change:


   if ($isAnnouncement && $settings[7] != 'Administrator' && $settings[7] != 'Global Moderator' )

to:


   if ($isAnnouncement && $settings[7] != 'Administrator' && $settings[7] != 'Global Moderator' && !in_array($username, $moderators))


line 190 change:


if ($isAnnouncement && $settings[7] != 'Administrator' && $settings[7] != 'Global Moderator')


to

if ($isAnnouncement && $settings[7] != 'Administrator' && $settings[7] != 'Global Moderator' && !in_array($username, $moderators))
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Announcement board help
« Reply #5 on: May 04, 2003, 02:59:08 PM »
Reply with quote

Sorry I was a bit careless in posting the solution (now edited) without checking for every instance of the required changes.

<edit>Erroneous statement removed by author!</edit>
« Last Edit: May 04, 2003, 09:09:28 PM by Peter Duggan » Logged

lordy123
Jr. Member
**
Posts: 65


I'm a llama!

Re:Announcement board help
« Reply #6 on: May 04, 2003, 06:05:52 PM »
Reply with quote

Doh!  :o I hope not! I did test it by creating two announcement board. One one, I made a user a mod and on another I didn't. Where that user is a mod, they can now start polls and posts. On the other, the new post and new poll buttons don't show at all. Can anyone confirm if that is ok? :-\

Thanx!
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Announcement board help
« Reply #7 on: May 04, 2003, 09:34:28 PM »
Reply with quote

Sure, it's OK, so perhaps I should be grovelling for messing up again!

What I did was to change the permissions so you had to assign the moderator to a special member group to allow them to post polls in announcement boards, whereas you've automatically given them that right if they're a moderator for that board (which is probably tidier in most circumstances).

!in_array($username, $moderators) denies the necessary permission if the user isn't a moderator for that board, so it's absolutely sound unless (for some strange reason concocted solely to justify my original solution), you want to appoint more than one moderator to that board but specify which of them can or can't start polls! ::)
Logged

lordy123
Jr. Member
**
Posts: 65


I'm a llama!

Re:Announcement board help
« Reply #8 on: May 06, 2003, 10:19:34 AM »
Reply with quote

Thanks for the confirmation Peter  ;D
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Announcement board help « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.086 seconds with 21 queries.