i am using YooTooltip joomla plugin on chornoform.. elements are added dynamically using loop. yootooltip tag is included inside loop but its fetching the form code with yootooltip plugin instead completely rendered form..
to make it clear i have included a short example
and the parsing text in plugin shows the whole code block above instead of rendered one.. i tried to set the RunOrder in form but nothing works.. it still is passing whole code even after making Order of Plugins block to 3.
please help :?
to make it clear i have included a short example
for ($i = 0, $n = count($rows); $i < $n; $i++) {
$row = &$rows[$i];
echo '<input type="checkbox" class="radio" name="q'.$value1->i.'" value="'.$value1->id.'" />'. $value1->question;
// joomla plugin code
echo '{yootooltip title=[Tooltip$i] width=[250] mode=[cursor] sticky=[1]}'. $row->instruction; .'{/yootooltip}';
}
and the parsing text in plugin shows the whole code block above instead of rendered one.. i tried to set the RunOrder in form but nothing works.. it still is passing whole code even after making Order of Plugins block to 3.
please help :?
Hi locatenil,
Joomla Plugins and ChronoForms Plugins are two completely different things (confusing I know, sorry). The Plugins tab in the form manager will have no effect on the YooToolTip plugin.
I assume that you are putting this code into the Form HTML box? If so then it must be inside <?php . . . ?> tags - that might explain why you are seeing the code block.
I hae no idea if YooToolTip will then run . . . turn on 'Enable Mambots' in the form General Tab and see what happens.
Bob
Joomla Plugins and ChronoForms Plugins are two completely different things (confusing I know, sorry). The Plugins tab in the form manager will have no effect on the YooToolTip plugin.
I assume that you are putting this code into the Form HTML box? If so then it must be inside <?php . . . ?> tags - that might explain why you are seeing the code block.
I hae no idea if YooToolTip will then run . . . turn on 'Enable Mambots' in the form General Tab and see what happens.
Bob
thankyou for reply.
well, it works but as the code is getting parsed instead of rendered form so its printing yooTooltip only 1 time. because tooltip tag is included in code itself 1 time.. it will actually add tooltip multiple times only if form is rendered completely before applying joomla plugin.. as i can understand, onPrepareContent of joomla plugin takes whatever inside the textbox and replaces tags with the code.. i was expecting a way so joomla plugin appled only after form in rendered.
well, it works but as the code is getting parsed instead of rendered form so its printing yooTooltip only 1 time. because tooltip tag is included in code itself 1 time.. it will actually add tooltip multiple times only if form is rendered completely before applying joomla plugin.. as i can understand, onPrepareContent of joomla plugin takes whatever inside the textbox and replaces tags with the code.. i was expecting a way so joomla plugin appled only after form in rendered.
Hi locatenil,
Looking at the code I agree it would make more sense for the Joomla mambots/plugins to be run after the Form HTML is evaluated. It looks as though it might be possible with some ChronoForms core hacks but at present the output of the Form HTML evaluation goes straight to the browser.
Sorry not to be more help right now.
Bob
Looking at the code I agree it would make more sense for the Joomla mambots/plugins to be run after the Form HTML is evaluated. It looks as though it might be possible with some ChronoForms core hacks but at present the output of the Form HTML evaluation goes straight to the browser.
Sorry not to be more help right now.
Bob
instead of hacking chrono, i hacked yootooltip joomla plugin.. i removed the onPrepareContent event and called the function manually and passed the text to be processed. by this method i can pass part of the content instead of passing full form/page. it works well..
thanks by the way,
thanks by the way,
Hi, I think that a good solution here is to make a new Chronoform plugin to run Joomla mambots on form Load, it may be enhanced to have a list of all Content plugins to select or unselect any!
Cheers
Max
Cheers
Max
Hi All,
I have tried using the standard {yootooltip} and it fails miserably, the balloon doesn't show up. Could anyone tell me how to use Yootooltip inside a Chronoform. I have found the onPrepareContent and am stuck, could spend a couple of days messing about getting it working but as it's been done already why re-invent the wheel.
Thanks
I have tried using the standard {yootooltip} and it fails miserably, the balloon doesn't show up. Could anyone tell me how to use Yootooltip inside a Chronoform. I have found the onPrepareContent and am stuck, could spend a couple of days messing about getting it working but as it's been done already why re-invent the wheel.
Thanks
Hi sabsoft,
Do you have "Enable mambots" set to 'Yes' on the Form General tab?
Bob
Do you have "Enable mambots" set to 'Yes' on the Form General tab?
Bob
Hi GreyHead,
Sorry i didn't have mambots turned on, never tried it before but now i know. Now i get an object not found on this line:-
<div id="yoo-tooltip-1" class="yoo-tooltip-toggler">Privacy Policy</div><script type="text/javascript">new YOOtooltip('yoo-tooltip-1', 'sdsfsdf', { mode: 'cursor', display: 'inline', width: 250, style: 'default', sticky: 0 });</script>
Any ideas would be great, i will potter about with it today to see what i can do.
Thanks, Stephen
Sorry i didn't have mambots turned on, never tried it before but now i know. Now i get an object not found on this line:-
<div id="yoo-tooltip-1" class="yoo-tooltip-toggler">Privacy Policy</div><script type="text/javascript">new YOOtooltip('yoo-tooltip-1', 'sdsfsdf', { mode: 'cursor', display: 'inline', width: 250, style: 'default', sticky: 0 });</script>
Any ideas would be great, i will potter about with it today to see what i can do.
Thanks, Stephen
Hi Stephen,
I don't know anything much about YooTips. I'd guess that the main YooTips script isn't loading, or isn't loading before it's called here.
Bob
I don't know anything much about YooTips. I'd guess that the main YooTips script isn't loading, or isn't loading before it's called here.
Bob
This topic is locked and no more replies can be posted.