Topic-icon Disabling "Facebook profile successfully connected." message

Active Subscriptions:

None
Is there a simple way of removing the "Facebook profile successfully connected" message that appears after every Facebook login without disabling all system messages? I've found a method that works, but maybe I'm overlooking a simpler option somewhere.

I set Returning User Redirection to an item on a hidden menu that points to a single article page for an unpublished article. This throws a 404 error, which I catch using Joomla's Redirect component and redirect it to the page I really want, which is displayed without the system message.

If that's the best solution, I'm happy to continue using it.
The topic has been locked.
Support Specialist
Oh wow, yeah, that's terrible :)

You should be able to simply edit the JFBConnect language file and remove the right-hand side of the translation so that it's blank (you'll want to leave the COM_JFBCONNECT_XXX key on the left hand side). Joomla should ignore blank translations and simply not display them.

There was one user that mentioned issues with this (he was still getting a blank blue box then, which was possibly worse than the string itself). If that happens, try making the string on the right "" (two double quotes, with no inner text). If that still doesn't work for you, I can tell you where to comment out that notification in JFBConnect altogether.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
I hadn't thought about trying that. Unfortunately, I get the blank blue box, whether I use the quotes or not.

Is my method a bad idea, as a trade-off against having to comment out the notification code each time I upgrade JFBConnect? I know it's ugly, intentionally causing an error and redirect, but would there be a significant performance hit? (At least it's clever, no? ;) )
The topic has been locked.
Support Specialist
Keenmouse,
Sorry for the delay. It's perfectly fine what you're doing, but just a few more hoops to go through. Obviously, it's your choice as to what works best for you. For now, to fix in JFBConnect though, you'd need to comment out a few lines to prevent the text from showing since the 'blank' text is still showing.

To disable that text, edit the /components/com_jfbconnect/controller.php file, around line 59, you'll see the following:
if ($userMapModel->mapUser($fbUserId, $jUserEmailId))
  $app->enqueueMessage(JText::_('COM_JFBCONNECT_MAP_USER_SUCCESS'));
else
  $app->enqueueMessage(JText::_('COM_JFBCONNECT_MAP_USER_FAIL'));

$app->enqueueMessage(JText::_('COM_JFBCONNECT_MAP_USER_SUCCESS'));
Simply remove that and change it to:
$userMapModel->mapUser($fbUserId, $jUserEmailId)

There's actually 2 lines above that spit out the "MAP_USER_SUCCESS" string, and that's something we'll need to fix. Either way, the above should fix you up, but if not, let us know. There's a few other places we use the Profile successfully connected string, so that may not be the right spot to change it as you need.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Cool. Thanks very much!
The topic has been locked.
Support Specialist
No problem! Hope that got you fixed up, and let us know if there's anything else you need,
Alex
The topic has been locked.