InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Suppression of "Delete" Button for... Expand / Collapse
Author
Message
Posted 30/03/2007 06:11:24
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 08/08/2008 15:35:09
Posts: 5, Visits: 17
I'm looking to hide the Delete Post button for users that are non moderators.

I'm not concerned at all with which forums the users are moderators of (all the moderators have rights over all forums.)

Anyone able to point me in the right direction?

Cheers

Justin

Post #12524
Posted 03/04/2007 12:00:49


Support Supremo

Support SupremoSupport SupremoSupport SupremoSupport SupremoSupport SupremoSupport SupremoSupport SupremoSupport Supremo

Group: Customers
Last Login: 13/11/2008 12:44:07
Posts: 568, Visits: 2,507
Justin Crabtree (3/30/2007)
I'm looking to hide the Delete Post button for users that are non moderators.

I'm not concerned at all with which forums the users are moderators of (all the moderators have rights over all forums.)

Anyone able to point me in the right direction?

Cheers

Justin

Dear Justin,

In the ctlTopicsRepeater_ItemDataBound method of InstantASP.InstantForum.UI.Controls. ViewTopic around line 1136 you can add the code:

imgButDeletePost.Visible = MyBase .CurrentContext.CurrentUser.IsModerator

 

Post #12538
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 1:20pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.094. 8 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.