MyBB Community Forums
I want to change User CP text on forum - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: I want to change User CP text on forum (/thread-217376.html)



I want to change User CP text on forum - newbietuesday - 05-06-2018

My new users are always having problems identifying where to access their profile.

I want to change the text to "User Profile and Control Panel".

Can someone point me to the file where the text is located.

Thanks - John.


RE: I want to change User CP text on forum - .m. - 05-06-2018

open header_welcomeblock_member_user template of your theme in forum admin panel
and change {$lang->welcome_usercp} with required "User Profile and Control Panel"


RE: I want to change User CP text on forum - newbietuesday - 05-06-2018

Thanks - I'm in the template - how don't see how changing >welcome_usercp changes the display on the board the text "User CP" - or do I change the actual displayed text in the usercp.php file?

I think it would be changed in the php file.

I'm still not figuring this..


RE: I want to change User CP text on forum - .m. - 05-06-2018

"User CP" value is used for welcome_usercp language variable.
so changing as suggested in previous post works.

or you can change it in global.lang.php file in inc/languages/english folder
[Assumed that you are using regular English language]
$l['welcome_usercp'] = "User CP";



RE: I want to change User CP text on forum - newbietuesday - 05-06-2018

Your error is assuming I'm familiar with the myBB software.

I just started using the software 10 days ago and have been busy moderating the site, helping new users figure how things work, working full time, fixing the brakes on my truck, sleeping, eating, out socializing, watching TV, attending to the missus - in that order.

No need to be snarky.

*shakes head*


RE: I want to change User CP text on forum - .m. - 05-06-2018

well, header_welcomeblock_member_user template contains code like below
<li><a href="{$mybb->settings['bburl']}/usercp.php" class="usercp">{$lang->welcome_usercp}</a></li>

suggestion is to replace {$lang->welcome_usercp} with required phrase

OR

if you want to modify related php file for your requirement then
please edit global.lang.php file (in inc/languages/english folder)
and replace User CP with required phrase
$l['welcome_usercp'] = "User CP"; 
change to
$l['welcome_usercp'] = "required phrase"; 

below note could be a bit scary ..
Note: php files should be saved with utf-8 encoding without Byte Order Mark.
in general, we use editor like Notepad++ or file editor at web host panel to edit the files.


RE: I want to change User CP text on forum - newbietuesday - 05-06-2018

Thanks - I'll look into this later - but for now it's back to removing seized bolts on my truck brake calipers now it's stopped raining.