Topic-icon Themes - need to fix some issues

Support Specialist
5 years 4 months ago #64959 by mel
I see the double tooltip on your site.

The problem is that there is a tooltip coming from Bootstrap and there's a second tooltip coming from the title option on the anchor tag. I'll have to investigate how to best fix this in SCLogin, as not all sites use bootstrap, so I simply can't remove the second from the code. I'll add an issue to our tracker to address this in the next release. However, if you'd like a workaround in the meantime, you can edit /modules/mod_sclogin/helper.php. This change will take out the title for the input and just use the bootstrap tooltip

Around Line 526, replace this block of code
if ($registerType == "communitybuilder" && file_exists(JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php'))
{
   $forgotButton = '<a href="' . $forgotSharedLink . '" class="forgot btn width-auto hasTooltip" tabindex="-1" data-placement="right" data-original-title="' . $forgotSharedText . '"><i class="icon-question-sign' . $buttonImageColor . '" title="' . $forgotSharedText . '"></i></a>';
}
else
{
   $forgotButton = '<a href="' . $forgotButtonLink . '" class="forgot btn width-auto hasTooltip" tabindex="-1" data-placement="right" data-original-title="' . $forgotButtonText . '"><i class="icon-question-sign' . $buttonImageColor . '" title="' . $forgotButtonText . '"></i></a>';
}

with
if ($registerType == "communitybuilder" && file_exists(JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php'))
{
   $forgotButton = '<a href="' . $forgotSharedLink . '" class="forgot btn width-auto hasTooltip" tabindex="-1" data-placement="right" data-original-title="' . $forgotSharedText . '"><i class="icon-question-sign' . $buttonImageColor . '"></i></a>';
}
else
{
   $forgotButton = '<a href="' . $forgotButtonLink . '" class="forgot btn width-auto hasTooltip" tabindex="-1" data-placement="right" data-original-title="' . $forgotButtonText . '"><i class="icon-question-sign' . $buttonImageColor . '"></i></a>';
}

-Melissa
The topic has been locked.
Active Subscriptions:

None
5 years 4 months ago #64961 by joomleb
Hi Melissa,
thanks for that, I'll stay tuned to know how the issue will be fixed...
The topic has been locked.
Support Specialist
5 years 4 months ago #64969 by alzander
We're implementing a fix for the double tooltip in the next release (coming out soon). If you'd like to try to implement it now, please edit the /modules/mod_sclogin/helper.php file. Around Line 526 (the same code Melissa had you update before), replace this block of code
if ($registerType == "communitybuilder" && file_exists(JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php')) 
{ 
   $forgotButton = '<a href="' . $forgotSharedLink . '" class="forgot btn width-auto hasTooltip" tabindex="-1" data-placement="right" data-original-title="' . $forgotSharedText . '"><i class="icon-question-sign' . $buttonImageColor . '" title="' . $forgotSharedText . '"></i></a>'; 
} 
else 
{ 
   $forgotButton = '<a href="' . $forgotButtonLink . '" class="forgot btn width-auto hasTooltip" tabindex="-1" data-placement="right" data-original-title="' . $forgotButtonText . '"><i class="icon-question-sign' . $buttonImageColor . '" title="' . $forgotButtonText . '"></i></a>'; 
}
With:
Around Line 526, replace this block of code 

Code:
if ($registerType == "communitybuilder" && file_exists(JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php')) 
{ 
   $forgotButton = '<a href="' . $forgotSharedLink . '" class="forgot btn width-auto hasTooltip" tabindex="-1" data-placement="right" title="' . $forgotSharedText . '"><i class="icon-question-sign' . $buttonImageColor . '></i></a>'; 
} 
else 
{ 
   $forgotButton = '<a href="' . $forgotButtonLink . '" class="forgot btn width-auto hasTooltip" tabindex="-1" data-placement="right" title="' . $forgotButtonText . '"><i class="icon-question-sign' . $buttonImageColor . '></i></a>'; 
}
That is removing the title tag from the <i> element and update the title name in the <a> tag from data-title-original to just title.

We'd love to hear your feedback if that works for you, but for us, it's doing what we expect.

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

None
5 years 4 months ago #64978 by joomleb
Hi Alex,
tested and I had back some issue. May be I made some mistakes.
So, Please, Can you send me the new helper.php file to replace it directly ?
The topic has been locked.
Support Specialist
5 years 4 months ago #64984 by mel
I put up a new release of JFBConnect/SCLogin yesterday. The double tooltip change is in the release, so please test it out and let us know if you continue to have any issues.

-Melissa
The topic has been locked.
Active Subscriptions:

None
5 years 4 months ago #64990 by joomleb
Hi Melissa,
I have installed the new SCLogin 8.0.5 release and seem to run as expected.

You can test it on the same test site test.egulp.net
The topic has been locked.
Support Specialist
5 years 3 months ago #64998 by mel
Thanks for letting us know. Looks good to me. Let us know if you run into any further issues.

-Melissa
The topic has been locked.