Warning: The author of this contribution does not provide support for it anymore.

PM Search

how to change wording of UCP tab (label says UCP_PM_SEARCH) - PM Search

how to change wording of UCP tab (label says UCP_PM_SEARCH)

by techman41973 » Tue May 28, 2013 10:00 am

I installed UCP PM Search MOD. Works great, but their is an error in the wording
of the TAB created in the UCP. I'd like to change it.

FireShot Screen Capture.png
FireShot Screen Capture.png (5.99 KiB) Viewed 343 times


I've searched through UCP.php and other files and can't seem to find the code where I can change this.
techman41973
Registered User
Posts: 410
Joined: Thu Mar 28, 2013 10:27 pm

Re: how to change wording of UCP tab (label says UCP_PM_SEAR

by Jessica » Tue May 28, 2013 2:06 pm

techman41973 wrote:but their is an error


there* (sorry, Grammar nazi :D )

It's in language/en/common.php.

EDIT: Please ignore my post. I installed this and have the same issue...

EDIT #2: Check to see if you have the UCP_PM_SEARCH edit in common.php. If you do, then I don't really know how else to fix this issue.
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica

Re: how to change wording of UCP tab (label says UCP_PM_SEAR

by Peter77sx » Tue May 28, 2013 7:13 pm

You can name it to whatever you want if you like... right there from ACP.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: how to change wording of UCP tab (label says UCP_PM_SEAR

by techman41973 » Fri May 31, 2013 9:56 pm

Peter, where specifically is this setting in the ACP?
Thank you
techman41973
Registered User
Posts: 410
Joined: Thu Mar 28, 2013 10:27 pm

Re: how to change wording of UCP tab (label says UCP_PM_SEAR

by techman41973 » Fri May 31, 2013 10:09 pm

OK, the problem and fix are simple
the constant UCP_PM_SEARCH was never defined - as brought up by Jessica.
So I just added this constant in the common.php file.

Still, I'd like to remove the tab entirely from the UCP. There already is a searchbox in the Inbox folder.

Thanks for the great MOD
techman41973
Registered User
Posts: 410
Joined: Thu Mar 28, 2013 10:27 pm

Re: how to change wording of UCP tab (label says UCP_PM_SEAR

by Peter77sx » Sat Jun 01, 2013 1:20 pm

In ACP under System tab>Module management>User Control panel

If you disable a module (or sub module), it will not show up in UCP. Editing any module, you can enter any text to re-name it.

Thats just my personal preference, I don't particularly like editing common.php to rename something too simple. :)
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm