Page 1 of 1

How do I disable Sticky, Announce and Calendar in users post

PostPosted: Sun May 28, 2006 9:50 am
Author: jolin
This is driving me crazy! <img>

How do I disable the ability for users to Post topics as Sticky, Announcement, Global Announcement and create Calendar events???

(Basiclly the same settings as here on Intergramod2.com - posting.php)

Is there a control through the ACP I'm missing?

I tried deploying a switch_admin_only mod but for some reason it didn't work?

Code: Select all
############################################### ##   Hack Title]http://www.phpbbhacks.com/forums[/url] for support. ############################################### ## ############################################### ##   This hack is released under the GPL License. ##   This hack can be freely used, but not distributed, without permission. ##   Intellectual Property is retained by the hack author(s) listed above. ###############################################  # #-----[ OPEN ]------------------------------------------ #    includes/page_header.php # #-----[ FIND ]------------------------------------------ # // // Login box? // if ( !$userdata['session_logged_in'] ) {    $template->assign_block_vars('switch_user_logged_out', array()); } else {    $template->assign_block_vars('switch_user_logged_in', array());      if ( !empty($userdata['user_popup_pm']) )    {       $template->assign_block_vars('switch_enable_pm_popup', array());    } } # #-----[ AFTER - ADD ]------------------------------------------ # if ( $userdata['user_level'] == MOD ) {    $template->assign_block_vars('moderators_only', array()); } else if ( $userdata['user_level'] == ADMIN ) {    $template->assign_block_vars('admins_only', array()); } else if ( $userdata['user_level'] == MOD || $userdata['user_level'] == ADMIN ) {    $template->assign_block_vars('admins_and_moderators_only', array()); } # #-----[ STOP ]------------------------------------------ # This is where you need to determine which switches you want to add.  Below is the code for ADMINS ONLY, MODERATORS ONLY and for both MODS AND ADMINS.  Find the proper content that you want to hide and add the BEGIN switch just before and add the END switch just after your content.  -------   ADMIN ONLY SWITCHES --------  # #-----[ OPEN ]------------------------------------------ #    templates/subSilver/* # #-----[ BEFORE - ADD ]------------------------------------------ #    <BEGIN> # #-----[ AFTER - ADD ]------------------------------------------ #    <END> # #----------------------------------------------- #  -------   MODERATOR ONLY SWITCHES --------  # #-----[ OPEN ]------------------------------------------ #    templates/subSilver/* # #-----[ BEFORE - ADD ]------------------------------------------ #    <BEGIN> # #-----[ AFTER - ADD ]------------------------------------------ #    <END> # #----------------------------------------------- #  -------   MODERATOR & ADMINS ONLY SWITCHES --------  # #-----[ OPEN ]------------------------------------------ #    templates/subSilver/* # #-----[ BEFORE - ADD ]------------------------------------------ #    <BEGIN> # #-----[ AFTER - ADD ]------------------------------------------ #    <END> # #-----[ SAVE & CLOSE ALL FILES ]-------------------------- # #End  

PostPosted: Sun May 28, 2006 12:38 pm
Author: Adrian Rea
this should be in acp forum admin-management, select the forum and set within it, sticky to Admin etc

A

Re: How do I disable Sticky, Announce and Calendar in users

PostPosted: Mon May 29, 2006 5:44 pm
Author: jolin
Thanks Adrian,

I can't belive I missed it :roll:

It hiddes the components but also from the Admin?
(It works well for me when I'm hidding the shoutbox and calender on index_body.tpl for instance but not on posting_body.php <img> )

Any Ideas?

Re: How do I disable Sticky, Announce and Calendar in users

PostPosted: Tue May 30, 2006 8:03 am
Author: found it
[quote=""jolin";p="7815""]Thanks Adrian,

I can't belive I missed it :roll:

It hiddes the components but also from the Admin?
(It works well for me when I'm hidding the shoutbox and calender on index_body.tpl for instance but not on posting_body.php :mrgreen: <img>

Re: How do I disable Sticky, Announce and Calendar in users

PostPosted: Tue May 30, 2006 8:22 am
Author: jolin
"found it";p="7876" wrote:wow i got a pm that looks just like that....


I'm a PM whore :xo: you All.

Re: How do I disable Sticky, Announce and Calendar in users

PostPosted: Tue May 30, 2006 8:45 am
Author: found it
:mrgreen: