Fork me on GitHub

Rapport de message :*
 

xoShortAhref plugin

Titre du sujet : xoShortAhref plugin
par mraziz sur 09/12/2007 12:26:48

...sorry for posting this in english...
---------------------

i used xoShortAhref plugin in my site

http://www.dugris.info/modules/news/article.php?storyid=36&page=2

as stated in the website, after installing the plugin, the next step was to add this in header.php
$xoopsTpl->load_filter('output''xoShortAhref');


it works as expected...but now i need to exclude it in these 3 modules

a. my Index page/system module
b. news module
c. smartsection module

i used this if else statements below in header.php but it seems doesn't work

if ($xoops_dirname == 'system' || $xoops_dirname == 'news' || $xoops_dirname =='smartsection')
{


}

else
{
    
$xoopsTpl =& $xoTheme->template;
$xoopsTpl->load_filter('output''xoShortAhref');
}


what did i do wrong in my if else statement

help


i also tried this but doest not work
$modules_handler xoops_gethandler('module');
$system_mod $modules_handler -> getByDirName('system');
$news_mod $modules_handler -> getByDirName('news');
$smartsection_mod $modules_handler -> getByDirName('smartsection');

if (
$system_mod

}
if (
$news_mod)

}
if (
smartsection_mod)

}
else 

  
$xoopsTpl =& $xoTheme -> template
  
$xoopsTpl -> load_filter('output''xoShortAhref'); 
}

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

41 Personne(s) en ligne (33 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 41 | Plus ...