1
Jack404
XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/7/11 13:34

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Firstly, find this line in your newbb_thread.html template:

Quote:

<{if $xoops_isadmin == true}>

<td class="even" align="right">
<a href="edit.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$order_current}>"><img src="<{$xoops_url}>/images/icons/edit.gif" alt="<{$lang_edit}>" /></a><a href='delete.php?forum=<{$forum_id}>&topic_id=<{$topic_id}>&post_id=<{$topic_post.post_id}>&viewmode=<{$topic_viewmode}>&order=<{$order_current}>'><img src="<{$xoops_url}>/images/icons/delete.gif" alt="<{$lang_delete}>" /></a><a href='reply.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$order_current}>'><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a></right></td>


Replace <{if $xoops_isadmin == true}> with <{if $viewer_is_admin == true}>.

Voila! Moderators can now delete and edit individual posts!

2
YourHelp
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/7/11 14:24

  • YourHelp

  • Friend of XOOPS

  • Posts: 479

  • Since: 2003/6/9 6


very intelligent .. but i come up with a more easier way .. make another group called moderator in "groups" in admin and give them admin rights to newbb module but nothing else.. and whallla you have moderators that have admin capability on the forum boards but no other part of the site .. this includes edit , delete ect and you dont have to do the above.

Kindest Regards
Nathan

3
Jack404
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/7/11 14:26

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


In your plan, however, the Moderators have complete NewBB admin privs, which means they can add and delete forums. I really don't want to give that power out to all my moderators, so my template edit works much better for me

4
chapi
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/7/11 14:28

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


Yes, this little "hack" is a very good submission. Thx!

5
YourHelp
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/7/11 14:30

  • YourHelp

  • Friend of XOOPS

  • Posts: 479

  • Since: 2003/6/9 6


whats the point of having a moderator if you cant trust them with admin capabilitys ? im a sysop op cm _ for msn chat rooms and i give my host admin capabiltys over the whole chat room and the participants... even people of my own status have admin capabilitys .. i mean if you have a moderator you should pick the correct person in the first place someone with lots of posts and possibly someone you know.

Kindest Regards
Nathan

6
YourHelp
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/7/11 14:31

  • YourHelp

  • Friend of XOOPS

  • Posts: 479

  • Since: 2003/6/9 6


mind you there is nothing wrong with your hack its great but for new XOOPS users its diffuclt to do that sort of thing .. thats why i thought id suggest my idea

HEY HUGHG we where talking about this the other day mate .. you can now fix it hehehe

GOOD HACK

7
Jack404
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/7/11 14:36

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Err, how do I say it...

Not all my Moderators are computer savvy, so I like to keep their interfaces as simple as possible. I completely trust my Moderators, but they could get overwhelmed with the Administration menu followed by all the options for Forum Admin; I don't want them to go through all there and end up deleting the entire forum when they are trying to lock a thread.

Maybe that better explains it.

Another reasons is that I was foolish once and one of my Moderators became upset and started to delete forums like crazy; I don't trust people nearly as much as I used to, so you'll have to forgive me for not granting them sitewide admin privs to the forums.

8
YourHelp
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/7/11 14:41

  • YourHelp

  • Friend of XOOPS

  • Posts: 479

  • Since: 2003/6/9 6


LOL you know what they say power is the root of all evil .. pays to know who you give privilages to in the first place

anyway because i understand how to use your hack ill be using it .. its a great tool and many thankyou's

although for a new xooper this would be hard to do .. if your new and reading this buzz me an email on nathan@ultima7.com and ill help you install this hack.

Kindest Regards
NATHAN

once again great job

9
Hostile
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/8/12 14:05

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


Great hack, I just made the change and it works beautifully!

Like you I don't want to give Moderators full admin access. That is why there is a difference between moderators and administrators.

Cheers!
Iain

10
Dep04
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2004/1/19 3:52

  • Dep04

  • Just popping in

  • Posts: 17

  • Since: 2004/1/11


if there is someone who can help me install this i would greatly appreciate it, i found the file and changed what it said to change, but i dont think it is working
you can email me at chris@raverzonly.com
thanx

Login

Who's Online

245 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 245


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits