Deactivate Wall for users (by GUID for now) Download 1.9

German Dominik L 2 months ago

Imagine:

you have a user on your website who is not following the rules, you don't want to ban them instantly, but what are you doing now???

Correct, you use my component to block them from posting.

They can still like and read stuff, but they cannot post or comment anything.

In this first release the block is achieved by GUID.

To find out the GUID, you can use my second Component Search User by GUID

enter image description here

This alert appears, if you click on "post" or on the comment box

ChangeLog:

see "changelog.md" for every version

Version 1.9: Fixed autopagination issue, comment-boxes are now replaced with a text (translatable in locale) and button "comment" is hidden, when user is disabled

Comments
German Dominik L Replied 4 weeks ago

What do you mean with

your component fails if Ossn cache is enabled

?

I activated the cache and the console log shows me the correct guid, even with cache disabled

I even tried on a complete fresh installation with free version

German Michael Zülsdorff Replied 1 month ago

He Dominik!
A little work for the weekend. ;)

  1. the tabIndex = -1; doesn't really help
    The clever Botox simply clicked 'Comment' [Like Comment Share Link] to work around your code
  2. your component fails if Ossn cache is enabled
    Add a console.log('currentUserGUID', currentUserGUID); at line #4 of your script
    Then use one browser to turn cache on/off
    and another browser to log in as your restricted member and watch the log...
Catalan Yanick beaulieu Replied 1 month ago

In fact, more and more we see applications for children, I would like them to be able to use their profile page, but that they just can't publish on the wall and that everything they publishes doesn't go on the wall, if it's not possible right now I'll look at what I can do afterwards

German Dominik L Replied 1 month ago

How?!

German Michael Zülsdorff Replied 1 month ago

enter image description here

German Dominik L Replied 1 month ago

If you do not want users under 14 see or post anything, why not just restrict registration to users who are minimum 14 years old?

Catalan Yanick beaulieu Replied 1 month ago

would it be possible to make an option to activate the fact that the user is 13 and under and it prevents him from seeing and publishing on the wall

Component

Developer: Dominik
License GPL v2
Type: Site admin
Requires Ossn Version : 7.6
Latest Version: 1.9
Last Updated 3 weeks ago
Repository Url View Repository

Versions