inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Mar 29, 2020 16:34:45 GMT -8
Hello I am interested in hiding the member list from all but staff and tried to use the coding provided in this thread: support.proboards.com/thread/661021/members-listHowever I have a lot of themes, and so is there a way to add this coding to the Global Header instead or somewhere else so that I only have to add it once for all the themes? Thanks for the help.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 31, 2020 5:19:31 GMT -8
This will get you started. It's not very graceful for non-staff but it does the job.
Global header.
<style>
.container.members {
display: none;
}
</style>
<script>
$(() => (pb.data("route").name == "members" && pb.data("user").is_staff == 1)? $(".container.members").show() : null);
</script>
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Mar 31, 2020 19:16:37 GMT -8
Thank you very much, Peter. I appreciate it.
|
|