Author | Comment |
---|---|
Posts: 687 |
Is there a way to prevent just ONE member deleting their messages?
|
Posts: 11073 |
Yes ... but it is a bit of a cheat.
It requires 2 parts:
Part 2 also requires the use of a script, so it can identify who is staff. Global Footer Code: Select all <ifuser classnames="true"></ifuser> Global CSS Code: Select all .Rob-x-2 li.delete { display: none; } 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 Code: Select all .Rob-x-2 li.edit { display: none; } 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: Code: Select all .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. |
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.. |
Posts: 687 |
I cannot wrap my head around this... Will try again later..
|
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. |
Posts: 687 |
sent email
|
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.
|
Users browsing this forum: No registered users and 2 guests