Ya, this idea could be old but don’t know if any one already thought about it ?
Today while working w/ JA Facebook plugin i got this code
$body = JResponse::getBody ();
$regex = "/<html.*?xmlns:fb=".*?"[^>]*?>/i";
if (! preg_match ( $regex, $body )) {
$body = str_replace ( '<html', '<html xmlns:fb="http://www.facebook.com/2008/fbml"', $body );
}
Ya , by this way we can “patch” into html tag top of document to insert xfbml . So … we can use same of it to
– Find all think linking w/ jQuery ( like link tag etc )
– Check into that file to get jQuery version
– Remove all instance of jQuery and keep only 1 instance ( check version will allow we decide which version will keep ). And right after link will insert another script file w/ jQuery.noConflict.
By this way:
– Only 1 and only 1 jQuery instance in whole page
– jQuery.noConflict declared right after include jQuery.
Because T3 is system plugin, so i think it should be fine ?
Just idea
Thank you
Viet Vu