Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1866 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  probleme compatibilité firefox et explorer

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

probleme compatibilité firefox et explorer

n°1376964
mourad26
Posté le 29-05-2006 à 19:32:54  profilanswer
 

Bonjour.

 

J'utilise un cms (phpnuke) et j'ai un block qui me permet de lire des news rss avec un défilement de bas en haut (marquee). Tout fonctionne sur firefox mais pas sur explorer. Je vous laisse le code des fois que vous puissiez m'aider. Merci encore.

 

<?php

 

/******************************************************************************/
// Aikon's Multiheadlines scroll and marquee blocks for Multiheadlines Module
//
// Copyright © 2005-2006 by: Rancov Nicolae aka. Aikon
//          e-mail:  aikons [at] gmail [dot] com
//          website: http://www.aikons.net
//
// This program is free software. You can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License.
/******************************************************************************/

 

$category_id="6";$nr_news="10";global $prefix, $db;

 

if (eregi("block-Multiheadlines.php", $_SERVER['PHP_SELF'])) {

 

Header("Location: index.php" );
  die();}

 

$content = "<table><tr><td><marquee direction=\"up\" scrollamount=\"1\" scrolldelay=\"1\"  width=\"100%\" onmouseover='this.stop()' onmouseout='this.start()'>";

 

$result = $db->sql_query("SELECT * FROM ".$prefix."_multiheadlines_news WHERE news_cat='$category_id' ORDER BY news_time DESC LIMIT 0,".$nr_news);

 

while ($row =$db->sql_fetchrow($result)) {
$content .="<strong>&raquo;</strong>&nbsp;<a href=\"".$row["news_link"]."\" target=\"_blank\"><b>".$row["news_title"]."</b></a></br></br>";}

 

$content .="</span></td></tr></table>";

 

$content .="<div align=\"center\">
<a href=\"modules.php?name=Multiheadlines&rss=ShowNews&cat=6\"><b>"._HREADMORE."</b></a></div>";
//don't remove below line if you respect my work

 

$content .="<div align=\"right\"><a href=\"http://www.aikons.net\" target=\"_blank\">&copy;</a></div>";

 

?>

  

PS : j'ai un autre script qui lui marche très bien sur les deux, c'est un forum :

 

<?php

 

/************************************************************************/
/* Forums Block for phpBB 2.0.0 port to PHP Nuke 6.5b6+                 */
/* ====================================================                 */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)         */
/* http://phpnuke.org                            */
/*                                    */
/* Version 1, modified by Sébastien Vaast                               */
/* http://membres.lycos.fr/projectpluto/                                */
/*                                                                      */
/* Updated by Tom Nitzschner 22/06/2002 to add the scrolling text       */
/*                                                                      */
/* Updated by Paul Laudanski 14 Jan 2003                                */
/* NukeCops.com  |  ComputerCops.biz                    */
/*                                                    */
/* Last Edited - 14 Jan 2003                              */
/*                                                    */
/* This Block shows the last 10 topics where a message was posted,    */
/* along with the username of the last poster and the day and time    */
/* of the post.                                */
/* It will also show smileys in the topic titles thanks to the        */
/* smileys.php file found in Leo Tan Block Forums version        */
/* (http://www.cybercomp.d2g.com).                    */
/*                                    */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

 

if (eregi("block-Forums.php", $PHP_SELF)) {
    Header("Location: index.php" );
    die();
}

 

include_once ('blocks/smileys.php');

 

global $prefix, $dbi, $sitename, $user, $cookie, $group_id;
$count = 1;
$content = "<A name= \"scrollingCode\"></A>";
$content .="<MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"220\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>";
$content .="<center> <STYLE=\"text-decoration: none\"><font color=\"#009EDB\"><b>Les 10 derniers Messages du Forum </b></center>";
$result1 = sql_query("SELECT t.topic_id, t.topic_last_post_id, t.topic_title, f.forum_name, f.forum_id FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=f.forum_id and f.auth_view=0  ORDER BY t.topic_last_post_id DESC LIMIT 10", $dbi);
$content .= "<br>";
while(list($topic_id, $topic_last_post_id, $topic_title, $forum_name, $forum_id) = sql_fetch_row($result1, $dbi)) {
$result2 = sql_query("SELECT topic_id, poster_id, FROM_UNIXTIME(post_time,'%b %d, %Y at %T') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
list($topic_id, $poster_id, $post_time)=sql_fetch_row($result2, $dbi);

 

$result3 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$poster_id'", $dbi);
list($username, $user_id)=sql_fetch_row($result3, $dbi);

 

$topic_title=parseEmoticons($topic_title);
// Remove the comment below to add the counter
//$content .="<STYLE=\"text-decoration: none\"><font color=\"#666666\"><b>&nbsp;Message: $count<br></b>";

 

$content .= "&nbsp;<img src=\"modules/Forums/templates/subSilver/images/icon_mini_message.gif\" border=\"0\" alt=\"\"><a href=\"modules.php?name=Forums&amp;file=viewtopic&amp;p=$topic_last_post_id#$topic_last_post_id\"STYLE=\"text-decoration: none\">&nbsp;<u><b><font color=\"000000\"> $topic_title</font> </b></u></a><br><font color=\"#00000\"><i><font color=\"black\">&nbsp;Message de:</font>&nbsp; <font color=red><A HREF=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"STYLE=\"text-decoration: none;color:red\"> $username </a></font><br><font color=\"black\">dans:</font>&nbsp; <a href=\"modules.php?name=Forums&amp;file=viewforum&amp;f=$forum_id\">&nbsp;$forum_name</a> <font color=\"black\">le:</font>&nbsp; $post_time</i></font><br><br>";
$count = $count + 1;
}
$content .= "<br><center>[ <a href=\"modules.php?name=Forums\"STYLE=\"text-decoration: none\">$sitename ]</center>";
?>

 

mood
Publicité
Posté le 29-05-2006 à 19:32:54  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  probleme compatibilité firefox et explorer

 

Sujets relatifs
-Mysql- Probleme de requetecss et firefox
[Résolu] Problème de compilation fonction poll()problème de test Voyage 200
probleme de variables temporairesproblème de jointure avec deux tables avec mysql
[Php] - Tableau & Arbre: problème algorithmiqueproblème de jointure
Problème upload. ne s'affiche pasprobleme de connexion SQL Server 2000
Plus de sujets relatifs à : probleme compatibilité firefox et explorer


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR