I am not talking about the browser cache. I am talking about the elgg cache. The buttons that are available in your admin page.
The language strings are cached by Elgg if you have the caching options enabled on the advanced settings page in the admin area of your site. If you keep the caching options enabled while making changes you have to flush the cache (via correponding button on the admin dashboard page in the admin area of your site). Clicking the "Upgrade" button (or calling the upgrade.php script via address bar of the browser) when not having a new version of Elgg installed does not hurt as it would also only flush the cache in this case.
You should make your changes in the language strings by modifying in language files in any case. Otherwise you will have major problems when upgrading to a newer Elgg version! You wouldn't have to make the changes in every single language file of Elgg and plugins. Instead of making the changes in the original language files you can add all language strings you want to change (and only these) in a new language file in a separate plugin. You can use the "Rename the wire" plugin (https://elgg.org/plugins/1497293) as a starting point. This plugin will contain everything you need to have a working plugin. And then you can just alter the en.php language file it contains by adding the lines of language strings from other plugins' language file and then change the text to be displayed according to your needs. Just delete the lines already present (as an example) that you don't want to be changed. In the same way you can also add/delete language files for other languages (like de.php as an example for a German language file).
Wow big thanks iionly and Rohit Gupta!
I have learnt the necessity of "Flushing the caches"!
A great success!
Regards,
Striver
Firstly, which Elgg version are you using? The Suggested Friends Extended plugin has been released back in the days when Elgg 1.8 was the current version of Elgg. If you have no other more recent version of the plugin it might not fully work on Elgg 2.x without some code updates.
As I see it in the code, the profile field names to be used for finding matching other users are hardcoded in the code of the Suggested Friends Extended plugin in several places starting in the plugin settings view and then also in the function where the DB queries are done to actually find suitable matches. If I'm not mistaken, it should be possible to use also profile fields added with the Profile Manager plugin when looking for suggestions. But you would have to customize the code of the Suggested Friends Extended plugin accordingly to also include the profile fields you have added in the search. To get it fully working I can only suggest to go over the whole code of the plugin. Firstly, to understand what the code even does, then maybe to make necessary changes for the plugin to work flawless on Elgg 2 and then to customize it for the profile fields you use.
A possible other approach might be to look into the code of the Group Tools plugin. One feature of this plugin is to suggest groups for joining based on profile field information. Maybe you can extract the relevant code from this plugin to make a new plugin that adds a widget for suggesting other members for friending based on the same criteria instead of suggestion possible relevant groups. The code used might already take all profile fields into account without the need to customize it for the specific profile fields added with Profile Manager.
Thanks for taking the time to reply iionly.
I'm using Elgg 2.3.10 so maybe Suggested Friends Extended is having problems!
I really think that the only way I'm going to have success with my plan is to read my "Learning PHP, MySQL & Javascript"! In the past I've been quite successful in modifying code I don't fully understand, but feel now I have to go out of my depth to understand quite a complex sequence of interlinked files... and I can't do this without learning more.
Basically I need to understand how these plugins work (the interaction of the files) then modify the relevant parts... but I need to have developed greater understanding of the languages.
Anyway, thanks again,
Striver
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.