stop a plugin running in a particular component - Joomla! Forum - community, help and support
i have found can stop plugin running in admin side fine how can particular component. dont want plugin run code f using easyblog in case.
function onafterrender(){
$juri = &jfactory::geturi();
if(stripos($juri->getpath(),'/administrator/')!==false) return; // dont run in admin mode
...
for example
function onafterrender(){
$juri = &jfactory::geturi();
if(stripos($juri->getpath(),'/administrator/')!==false) return; // dont run in admin mode
...
for example
for admin,
j2.5 this
$app = jfactory::getapplication();
if (!$app->isadmin())
and blog check
i use vmart
if ( jrequest::getvar('option')=='com_virtuemart') {
so same !=
j2.5 this
$app = jfactory::getapplication();
if (!$app->isadmin())
and blog check
i use vmart
if ( jrequest::getvar('option')=='com_virtuemart') {
so same !=
Comments
Post a Comment