1
prplpgnsarah
Can anyone tell me how to alter the friendship petition text in Yogurt?

How can I change the text that appears on the screen when someone adds a friend? Currently, it says that you either have to wait for 'him' to approve or that you've already petitioned 'him.' I'd like to change these statements to something non-gender-specific. Thanks!

sarah

2
redheadedrod
Re: Can anyone tell me how to alter the friendship petition text in Yogurt?

It should be in the language directory of your module. If you go to your sites root directory then go to "modules/yogurt/language/english"

You will find a series of language files. If you change what those files have in them you will be able to change any statements shown to the users of that module.

MOST modules should be setup this way. The trick is to find the files you need to modify as you should have a bunch of "whatever.php" files. Those files contain a bunch of lines that look like.

define("_aprovalforfriends_", "You have already petitioned him.");

They allow you to support different languages.
basically what this does is in the program there will be places where they use the _aprovalforfriends_ and it will insert whatever is in the second portion.

Easiest way to do this is to use a program such as notepad++ and do a "search" for 'him' in all the files. It will show you the files it is in then let you open up those files and edit the lines.

You will need to have the files accessible as if they were a normal folder on your computer to use a program like this. The PROPER way to do this is to copy the files to your home computer and modify them there and try them on your test server first. Assuming you don't have a test server then just copy the modified files over the top of the old files on the server after you are done editing them. (make sure you have backups of those files though in case you "oops"...)

It is a very simple modification if you understand the concept.
Good luck.
Attending College working towards Bachelors in Software Engineering and Network Security.

3
prplpgnsarah
Re: Can anyone tell me how to alter the friendship petition text in Yogurt?

Awesome! Thanks! I just neededto know where to find the file, but I appreciate your thorough reply. It's all done already thanks to you! :)

sarah

4
redheadedrod
Re: Can anyone tell me how to alter the friendship petition text in Yogurt?

Well thanks for the kind words but if you have similar issues in the future you know where to look.. ;)

As does anyone else who reads this thread.

Rodney

Login

Who's Online

382 user(s) are online (299 user(s) are browsing Support Forums)


Members: 0


Guests: 382


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits