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

Support for IntegraMOD 140

Moderator: Integra Moderator

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

PostAuthor: jolin » Sun May 28, 2006 9:50 am

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  
Last edited by jolin on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

jolin
Newbie
Newbie
 
Posts: 17
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 8:24 am
Cash on hand: 0.00

PostAuthor: Adrian Rea » Sun May 28, 2006 12:38 pm

this should be in acp forum admin-management, select the forum and set within it, sticky to Admin etc

A
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

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

PostAuthor: jolin » Mon May 29, 2006 5:44 pm

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?
Last edited by jolin on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

jolin
Newbie
Newbie
 
Posts: 17
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 8:24 am
Cash on hand: 0.00

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

PostAuthor: found it » Tue May 30, 2006 8:03 am

[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>
Last edited by found it on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 4:29 am
Cash on hand: 0.00

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

PostAuthor: jolin » Tue May 30, 2006 8:22 am

"found it";p="7876" wrote:wow i got a pm that looks just like that....


I'm a PM whore :xo: you All.
Last edited by jolin on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

jolin
Newbie
Newbie
 
Posts: 17
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 8:24 am
Cash on hand: 0.00

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

PostAuthor: found it » Tue May 30, 2006 8:45 am

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 4:29 am
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]