News:

Support the VirtueMart project and become a member

Main Menu

Tooltip custom field shows HTML

Started by inu2005, May 09, 2015, 09:46:01 AM

Previous topic - Next topic

inu2005

In Virtuemart 3.0.8 / Joomla 3.4.1 the custom field Tooltip is showing HTML. How can the HTML be removed?

jenkinhill

That Joomla 3.4.1 related problem has been fixed in VM3.0.9 - available on http://dev.virtuemart.net/projects/virtuemart/files
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

inu2005

I've just updated to VM 3.0.9, but the HTML is still showing in the customfield tooltip.....

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

inu2005

Yes, cache cleared. Also tried 2 other templates (Protostar and Beez3), but also here HTML in tooltip.

Studio 42

Hi,
The HTML is added by Joomla in the php jhtml class
$result = '<strong>' . $title . '</strong><br />' . $content;
see YOURSITE\components\com_virtuemart\sublayouts\customfields.php
if ($field->custom_tip) {
echo JHtml::tooltip (vmText::_($field->custom_tip), vmText::_ ($field->custom_title), 'tooltip.png');

But Joomla 3 changed a little the code for tooltip, this mean you can have such bugs.

In Joomla 3 use JHtml::_('bootstrap.tooltip' ....)
see tutorial here : http://hwdmediashare.co.uk/blog/228-bootstrap-jhtml-library-joomla-3-0