inherit
257607
0
May 2, 2024 15:10:35 GMT -8
Geraint
6
January 2019
geraintw1
|
Post by Geraint on Apr 8, 2019 14:38:33 GMT -8
|
|
Former Member
inherit
guest@proboards.com
256583
0
May 2, 2024 15:48:42 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Apr 8, 2019 15:09:20 GMT -8
Hello Geraint, Can you provide a link to the forum you are applying this code to? Is the name of the theme called "shadow theme"?
|
|
inherit
257607
0
May 2, 2024 15:10:35 GMT -8
Geraint
6
January 2019
geraintw1
|
Post by Geraint on Apr 8, 2019 15:20:40 GMT -8
sky-community.boards.net/Yes the theme is called Shadow from the theme library the code is on the forum but only works on the standard them but not the shadow theme
|
|
Former Member
inherit
guest@proboards.com
256583
0
May 2, 2024 15:48:42 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Apr 8, 2019 15:56:24 GMT -8
Geraint , I've downloaded the theme and tested out the code from the linked support thread. After copying and pasting the code on the Shadow theme, I got the expected results where only admins can see emails in the member list. When you copy and pasted the code, are you applying it to the Shadow theme in the layout template and not just the standard theme? Each theme has their own respected layout template which means you'll need to apply the changes to all themes you want to change one at a time.
|
|
inherit
257607
0
May 2, 2024 15:10:35 GMT -8
Geraint
6
January 2019
geraintw1
|
Post by Geraint on Apr 8, 2019 16:06:10 GMT -8
No i did not apply it to the other theme as i started using it on the default theme, will do that tomorrow and let you know if i have any problems which im sure i wont now i know what ive done wrong.
Thanks for your help
|
|
Sav
Junior Member
Posts: 266
inherit
115211
0
Apr 1, 2024 5:32:45 GMT -8
Sav
266
December 2007
sav
|
Post by Sav on Apr 11, 2019 0:22:07 GMT -8
Been playing with this for my forum as well as we prefer to control one account per user and you can only do this by email address.
I could not get it to work on our one and only theme until I changed
{if $[current_user.id] == 1}
to the boolean
{if $[current_user.is_staff]}
in both places, it seemed logical as I presume the relevance user-id being "1" meant it only worked on the owner's account, rather than mods in general.
Thanks for the pointer, shame you cannot sort on an added column though.
|
|
inherit
223590
0
May 17, 2023 9:13:21 GMT -8
Kitty Katt
My Username is @kittykatt (with 2 t's in katt)
819
July 2015
kittykatt
|
Post by Kitty Katt on Apr 11, 2019 3:48:19 GMT -8
Been playing with this for my forum as well as we prefer to control one account per user and you can only do this by email address. I could not get it to work on our one and only theme until I changed {if $[current_user.id] == 1} to the boolean {if $[current_user.is_staff]} in both places, it seemed logical as I presume the relevance user-id being "1" meant it only worked on the owner's account, rather than mods in general. Thanks for the pointer, shame you cannot sort on an added column though. Your first snippet is checking to see if the current user is the root admin, whereas your second snippet is checking if the current user belongs to any Staff group. If you were looking to have that available only to the root admin, then the first snippet would be the correct one. If it did not work, then perhaps there was an error (perhaps a syntax error) somewhere else in your code that made it look like it was not working.
|
|
#e61919
Support Staff
224482
0
Member is Online
1
May 2, 2024 15:48:24 GMT -8
Scott
23,331
August 2015
socalso
|
Post by Scott on Apr 11, 2019 6:33:24 GMT -8
Sav, the variable used was intentional to only display the email addresses to the forum owner (main admin / user-1) within the context of the original thread. FYI - unique email is not a guarantee that the member has only one account. A member may use a different email address to create an additional account on the forum.
|
|
Sav
Junior Member
Posts: 266
inherit
115211
0
Apr 1, 2024 5:32:45 GMT -8
Sav
266
December 2007
sav
|
Post by Sav on Apr 15, 2019 6:23:45 GMT -8
True on both counts thanks
We run dual ownership on our forum and the admin account is only used in emergency or group maintenance, so user == staff is better for us.
Never going to stop a totally fictitious application but almost all of the ones we have spotted have the same email address and could not be bothered to follow the lost password route.
Thanks
|
|
inherit
223590
0
May 17, 2023 9:13:21 GMT -8
Kitty Katt
My Username is @kittykatt (with 2 t's in katt)
819
July 2015
kittykatt
|
Post by Kitty Katt on Apr 15, 2019 7:20:57 GMT -8
True on both counts thanks We run dual ownership on our forum and the admin account is only used in emergency or group maintenance, so user == staff is better for us. Never going to stop a totally fictitious application but almost all of the ones we have spotted have the same email address and could not be bothered to follow the lost password route. Thanks I do hope the highlighted part does not imply that login credentials are being shared. If they are, that would be a violation of ProBoards Terms of Service.
|
|
Sav
Junior Member
Posts: 266
inherit
115211
0
Apr 1, 2024 5:32:45 GMT -8
Sav
266
December 2007
sav
|
Post by Sav on Apr 16, 2019 0:30:20 GMT -8
Kitty Katt this is not relevant to the thread topic However, please justify the assertion that this will be a breach of TOS .
|
|
inherit
140147
0
Apr 30, 2024 0:07:08 GMT -8
Nscalerr 🐺
Throw me to the wolves and I'll return leading the pack!
3,007
May 2009
nscalerr
|
Post by Nscalerr 🐺 on Apr 16, 2019 2:07:24 GMT -8
We run dual ownership on our forum and the admin account is only used in emergency or group maintenance. This statement implies that more than one user is accessing the primary admin account, (user id =1) which is, (as Kitty Katt stated) a violation of the Proboards Terms of Service. If this is NOT the case, then disregard the above, otherwise the original owner of the primary admin account needs to change the login password for the account, (and very probaly their email account as well).
|
|
Sav
Junior Member
Posts: 266
inherit
115211
0
Apr 1, 2024 5:32:45 GMT -8
Sav
266
December 2007
sav
|
Post by Sav on Apr 16, 2019 2:20:34 GMT -8
Another uninformative, speculative post!
I repeat myself,
Please quote exactly which TOS this breaches and I will deal with it
|
|
inherit
140147
0
Apr 30, 2024 0:07:08 GMT -8
Nscalerr 🐺
Throw me to the wolves and I'll return leading the pack!
3,007
May 2009
nscalerr
|
Post by Nscalerr 🐺 on Apr 16, 2019 2:42:35 GMT -8
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,014
January 2018
retread
|
Post by Retread on Apr 16, 2019 2:52:56 GMT -8
Kitty Katt this is not relevant to the thread topic However, please justify the assertion that this will be a breach of TOS . Sav, this became relevant because of information you revealed in your reply. I've highlighted the pertinent section of the ToS.
|
|