Deleting Messages

Author Comment
User avatar

Posts: 687

Is there a way to prevent just ONE member deleting their messages?

User avatar

Admin

Posts: 11073

Yes ... but it is a bit of a cheat.

It requires 2 parts:
  1. Hide the delete button.
  2. Show it again for staff.

Part 2 also requires the use of a script, so it can identify who is staff.

Global Footer
<ifuser classnames="true"></ifuser>


Global CSS
.Rob-x-2 li.delete { display: none; }

.user-moderator .Rob-x-2 li.delete,
.user-admin .Rob-x-2 li.delete { display: inline; }


Remember that Global CSS does cache in the browser, so both you and the offender will not be affected by it until a fresh version is downloaded. In practical terms with your multiple skins, thus is the most practical method though. You may want to consider denying deletions for a week or so, to give this a chance to happen.


Incidentally, this method can also be used to prevent an individual editing.

Global CSS
.Rob-x-2 li.edit { display: none; }

.user-moderator .Rob-x-2 li.edit,
.user-admin .Rob-x-2 li.edit { display: inline; }



A word on the username class:

I used .Rob-x-2 above as the example. Capitals should be preserved. Spaces are replaced by hyphens. If it is a local account, it would end "-boardname". i.e. Gran.shugargranshack would become .Gran-shugargranshack

You can confirm this by looking at the source code of a post made by that member. The table row will have the username class entered.

You can test this by using the single line:
.Rob-x-2 li.delete { display: none; }

and confirming the delete button (or link on the ezBoard layout) disappears beside that user's posts. (The remaining parts can then be added and checked that the edit button/link shows again to staff.)

None of this will work with the beta Responsive Design.

User avatar

Posts: 687

whew... thot it would be more simple than that.. I need to study this info or risk messing up the board.
Wish you were still in Yuku you made things so easy by just doing it for me..

User avatar

Posts: 687

I cannot wrap my head around this... Will try again later..

User avatar

Admin

Posts: 11073

If I were there, I would need to know the username. If you were to PM or email me that, I could provide you with the correct CSS.

It's only 3 lines of CSS and a single line script to insert.

User avatar

Posts: 687

sent email

User avatar

Admin

Posts: 11073

I just looked in on you and see that you are just at the stage of hiding the delete button from everyone. This looks good so far. ;)

Display posts from previous:  Sort by  



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group