Registration Success Message
Permalink
How do I edit the registration success message that appears when someone has completed the C5 site registration form?
The default message is:
"You are registered but a site administrator must review your account, you will not be able to login until your account has been approved."
I just need to make it bold.
This text does not appear in the Register Single page although it is a part of it. So I guess it is dynamically generated, but there doesn't seem to be anywhere in the dashboard to edit it.
Does anyone know how to do this?
thanks in advance.
The default message is:
"You are registered but a site administrator must review your account, you will not be able to login until your account has been approved."
I just need to make it bold.
This text does not appear in the Register Single page although it is a part of it. So I guess it is dynamically generated, but there doesn't seem to be anywhere in the dashboard to edit it.
Does anyone know how to do this?
thanks in advance.
Thanks for your reply. Where exactly do I add the <strong> tags? I have tried:
And:
Neither of these seem to work.
$redirectMethod='register_pending'; $registerData['msg']=$this-><strong>getRegisterPendingMsg()</strong>; $u->logout();
And:
$redirectMethod='register_pending'; $registerData['<strong>msg</strong>']=$this->getRegisterPendingMsg(); $u->logout();
Neither of these seem to work.
You have done the changes in wrong place. Just go to the bottom of the pages & find the below code.
And replace with the below one:
Citytech
public function getRegisterPendingMsg(){ return t('You are registered but a site administrator must review your account, you will not be able to login until your account has been approved.'); }
And replace with the below one:
public function getRegisterPendingMsg(){ return t('<strong>You are registered but a site administrator must review your account, you will not be able to login until your account has been approved.</strong>'); }
Citytech
OK thanks!
Actually this didn't work. I have also tried using HTML bold tags:
I have also tried wrapping the entire PHP content of the page with an inline style:
Does anyone have any ideas how I can make this text bold?
public function getRegisterPendingMsg(){ return t('<b>You are registered but a site administrator must review your account, you will not be able to login until your account has been approved.</b>'); }
I have also tried wrapping the entire PHP content of the page with an inline style:
Does anyone have any ideas how I can make this text bold?
Try this
Or this
public function getRegisterPendingMsg(){ <p style="font-weight:bold">return t('You are registered but a site administrator must review your account, you will not be able to login until your account has been approved.')</p>; }
Or this
public function getRegisterPendingMsg(){ return t('<p style="font-weight:bold">You are registered but a site administrator must review your account, you will not be able to login until your account has been approved.</p>'); }
Thanks for your message. Unfortunately neither of these worked.
I'm still having no success in making this text bold. To test that any changes were happening at all I changed the text slightly and uploaded it. I cleared the site cache and revisited the page but the text had not changed. I'm definitely uploading the register.php file to the correct directory concrete/controllers/. Is it possible that there is a separate file that is controlling this success message? This is really baffling.
It was! For anyone else's future reference I tried uploading the register.php file to the top level directory /controllers/ instead of /concrete/controllers/ and it worked.
And put the strong tag. That's all.
Citytech