Fork me on GitHub






xoShortAhref plugin
Newbie
Inscrit: 09/12/2007 12:06
Messages: 2
...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'); 
}

Posté le : 09/12/2007 12:26
Partager Twitter Partagez cette article sur GG+
Re: xoShortAhref plugin
Xoops accro
Inscrit: 25/02/2004 00:20
De Région parisienne
Messages: 2526
[english]
The best solution would be to modify the plugin.
After a few tests, I will propose a new version that will exclude some modules

[French]
la meilleur solution serait de modifier le plugin
Après quelques tests, je proposerai une nouvelle version qui permettra d'exclure des modules.

Posté le : 09/12/2007 20:52
Partager Twitter Partagez cette article sur GG+
Re: xoShortAhref plugin
Newbie
Inscrit: 09/12/2007 12:06
Messages: 2
merci dugris..i'll wait for the release...may i know is there any expected date of release ?


p/s : just want to inform that when i tried to register in dugris.info...i received blank page

Posté le : 10/12/2007 02:46
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

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

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