[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4363: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3542)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3542)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3542)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4367: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3542)
Du code php dans un champ publicité ?

Du code php dans un champ publicité ?

Trouvez ici tout l'aide dont vous avez besoin concernant le script d'annuaire Arfooo.
Merci de reporter les éventuels bugs trouvés.

Du code php dans un champ publicité ?

Messagede nicolobo » Ven 4 Juin 2010 08:05

Salut,

je cherche à placer un lecteur de flux RSS écrit en php dans un champ "publicité" de l'admin... :
mais pas moyen... Je souhaite afficher un flux différent pour chaque catégorie de mon annuaire... Le plus simple étant d'utiliser la gestion d la pub. Quelqu'un a-t-il une idée ? J'ai essayé avec {php}{ /php}
Note, je suis encore en version 1.0.9...

mon code php pour récupérer un flux rss...
<? function lire_rss($url, $nbr=10) {

$xml = simplexml_load_file($url);

$items = $xml->channel->item;

$lis = '';



for ($i=0, $l=min($nbr, count($items)); $i<$l; $i++) {

$lis .= '<p> <a href="'

. html_entity_decode($items[$i]->link, ENT_COMPAT, 'UTF-8') . '"> Acheter '

. html_entity_decode($items[$i]->title, ENT_COMPAT, 'UTF-8') . '</a><br />'

. html_entity_decode($items[$i]->description, ENT_COMPAT, 'UTF-8')

.'</p>';

}



return "<p>$lis";

}
?>
<?
echo lire_rss("http://www.unsite.com/feed/",10)
?>


merci d'avance ;-)
nicolobo
 
Messages: 6
Inscription: Dim 4 Jan 2009 20:44


Re: Du code php dans un champ publicité ?

Messagede Davilords » Ven 4 Juin 2010 12:32

Bonjour arfooo a déjà lecteur de flux RSS, et ceci le flux de chaque catégories créer!
il suffit de d 'activé les flux rss dans l'admin.

Davilords
 
Messages: 134
Inscription: Jeu 25 Juin 2009 20:35
Localisation: pyrénées orientales

Re: Du code php dans un champ publicité ?

Messagede Strez » Ven 4 Juin 2010 16:03

La fonction native de smarty pour en sortir c'est {literal}{/literal}, par contre jamais de php dans un fichier .tpl ni de html dans un fichier php sinon à quoi bon utiliser un parse de template :)
à découvrir d'urgence - Annuaire de pour une bonne indéxation ;)
Strez
 
Messages: 102
Inscription: Ven 28 Mai 2010 06:56
Localisation: Grenoble

Re: Du code php dans un champ publicité ?

Messagede nicolobo » Sam 5 Juin 2010 08:35

Bonjour et merci pour vos réponses... Je cherche à afficher un flux rss issus d'autres sites en fonction des catégories de mon annuaire. J'ai essayé {literal}{/literal} mais cela ne fonctionne pas lorsqu'on le place dans le champ code pour la publicité dans l'admin... Il y a peut-être un moyen pour contourner cela ?
D'autre idées ?
nicolobo
 
Messages: 6
Inscription: Dim 4 Jan 2009 20:44


Retourner vers Installation, aide et report de bugs

 


  • Articles en relation
    Réponses
    Vus
    Dernier message

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités

 
Copyright © arfooo.com  2007 - 2011  -  Tous droits réservés  -  Partenaires de confiance
Sites du groupe: petites annonces gratuites   voyance en direct - tirage tarot   Consultant en référencement
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | phpBB SEO Traduction par: phpBB-fr.com
cron