2012-12-11, 04:25 AM
If you need help with MentionMe click here!
This was the initial alpha thread-- this is not the support thread.
I have seen a lot of people saying that they would like to have a mention plugin integrated with MyAlerts and I totally agree. It took a little time, but I have a working version as we speak.
I am using someone else's mention plugin, http://mods.mybb.com/view/mention and have made the appropriate customizations to allow it to create alerts when the name is first mentioned (in a reply or new thread).
However I have had one stumbling block:
To have my user setting display its custom text I had to directly modify myalerts.lang.php . . . how can I separate my plugin's language and still have it work?
Here is the code I have edited from Euanator's Integration Wiki to add the setting:
I tried defining that lang variable in the function like:
but it did nothing. So to make it work I have just modified the lang file included with MyAlerts (and again for my parse_alert hook, but I know how to separate it)
I would really feel much better if I could do this without modifying the original language file.
Any help would be appreciated.
This was the initial alpha thread-- this is not the support thread.
I have seen a lot of people saying that they would like to have a mention plugin integrated with MyAlerts and I totally agree. It took a little time, but I have a working version as we speak.
I am using someone else's mention plugin, http://mods.mybb.com/view/mention and have made the appropriate customizations to allow it to create alerts when the name is first mentioned (in a reply or new thread).
However I have had one stumbling block:
To have my user setting display its custom text I had to directly modify myalerts.lang.php . . . how can I separate my plugin's language and still have it work?
Here is the code I have edited from Euanator's Integration Wiki to add the setting:
$plugins->add_hook('myalerts_possible_settings', 'mention_alerts_setting');
function mention_alerts_setting(&$possible_settings)
{
$possible_settings[] = 'mention';
// And we should add a language variable $lang->myalerts_setting_fictionalAward
}
Euanator Wrote:// And we should add a language variable $lang->myalerts_setting_fictionalAward
I tried defining that lang variable in the function like:
$l['myalerts_setting_mention']='Receive an alert when someone mentions your username?';
but it did nothing. So to make it work I have just modified the lang file included with MyAlerts (and again for my parse_alert hook, but I know how to separate it)
I would really feel much better if I could do this without modifying the original language file.
Any help would be appreciated.