inherit
248886
0
Jan 7, 2019 7:47:31 GMT -8
BusyMother
When nothing goes right, turn left!
537
September 2017
delete1234z
|
Post by BusyMother on Sept 23, 2017 1:00:51 GMT -8
Hello,
Is it possible to change the Error Message that a Guests sees when trying to go to a page that is Members Only?
Currently they see "You do not have permission to access this board."
Thanks in advance
|
|
inherit
(?)?
188910
0
Jan 26, 2013 13:30:48 GMT -8
♥ ℒʊ√ ♥
Clouds float into my life no longer to carry rain or usher storm but to add color to my sunset sky.
10,458
January 2013
luv
|
Post by ♥ ℒʊ√ ♥ on Sept 23, 2017 2:27:23 GMT -8
Hi, BusyMother ~
Adding this to the Global Header should do the trick. Just change the wording to one of your choosing.
<script type="text/javascript"> $(document).ready(function(){ if(/\/board\//i.test(location.href) && $('.container.error').length && !pb.data('user').is_logged_in) $('.container.error > .content').html('Guests do not have permission to access this board. Please login or register to continue.'); }); </script>
|
|
inherit
248886
0
Jan 7, 2019 7:47:31 GMT -8
BusyMother
When nothing goes right, turn left!
537
September 2017
delete1234z
|
Post by BusyMother on Sept 23, 2017 2:33:12 GMT -8
Thank you, that worked great!
|
|
inherit
248886
0
Jan 7, 2019 7:47:31 GMT -8
BusyMother
When nothing goes right, turn left!
537
September 2017
delete1234z
|
Post by BusyMother on May 9, 2021 7:16:55 GMT -8
I am resurrecting this to ask a question ...
How can I bold and make the wording larger?
Currently it is...
<script type="text/javascript"> $(document).ready(function(){ if(/\/board\//i.test(location.href) && $('.container.error').length && !pb.data('user').is_logged_in) $('.container.error > .content').html ('We are sorry, Guests do not have permission to access this board. Please login or register to continue. Thank you!'); }); </script>
Thank you
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,521
August 2015
socalso
|
Post by Scott on May 9, 2021 14:30:48 GMT -8
BusyMother , This revised code should give you what you want: <script type="text/javascript"> $(document).ready(function(){ if(/\/board\//i.test(location.href) && $('.container.error').length && !pb.data('user').is_logged_in) $('.container.error > .content').html('Guests do not have permission to access this board. Please login or register to continue.').css('font-size','18px').css('font-weight','bold'); }); </script> Change the 18 to the desired size.
|
|
inherit
223590
0
May 17, 2023 9:13:21 GMT -8
Kitty Katt
My Username is @kittykatt (with 2 t's in katt)
821
July 2015
kittykatt
|
Post by Kitty Katt on May 9, 2021 16:35:24 GMT -8
I would like to point out that resurrecting an old thread, even your own thread, is against the rules. This thread is three and a half years old. The proper course of action would have been to create a new thread and link back to this thread for your reference.
|
|
inherit
248886
0
Jan 7, 2019 7:47:31 GMT -8
BusyMother
When nothing goes right, turn left!
537
September 2017
delete1234z
|
Post by BusyMother on May 10, 2021 5:54:43 GMT -8
Scott Thank you very much
|
|