Aller au contenu

mkl238

Actif
  • Compteur de contenus

    11
  • Inscrit(e) le

  • Dernière visite

Messages postés par mkl238

  1. dans le fichier config.php tu as bien ca?

    $dbms = 'mysql';

    $dbhost = 'localhost';
    $dbname = 'le nom de la bd';
    $dbuser = 'ton nom d'utilisateur pour te connecter a la bd';
    $dbpasswd = 'ton mot de passe pour te connecter a la bd';
    $table_prefix = 'phpbb_';



    define('PHPBB_INSTALLED', true);

  2. Salut,

    je ne m'y connais pas en critère de référencement donc je ne saurais te dire si c'est du à ca...

    par contre tu peux rajouter tes balises méta dans overall_header.tpl

  3. C'est parce que tu as changé les nom des inputs...

    <input type="password" class=user3 name="password" size="24">

    <input class=user name="username" size="14">

  4. EDIT: :blink: Mince.. je vien de constater que je me suis planté de forum, ca n'a rien avoir avec PHP hem, je pensais etre dans html... 1000 excuse :o

    Bonjour... en fait j'aimerais rendre mon site conforme à la norme W3C... mais lorsque je l'analyse il m'indique ceci:

    Error  Line 41, column 31: there is no attribute "onLoad" .

    <body bgcolor="#FFFFFF" onLoad="MM_preloadImages('images/indexon.jpg','images/me

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

    et

    Line 138, column 78: there is no attribute "onMouseOver" .

    ...1d08bfe8b2085b6364a0a2c" onMouseOver="MM_swapImage('Image1','','images/indexo

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

    (onmouseover est dans une balise <a>)

    j'ai la meme chose pour l'attribut OnMouseOut

    Savez vous comment faire pour que ca soit standarisé W3C? J'ai pas tout compris aux explications qu'ils donnent... :blush:

    EDIT: :blink: Mince.. je vien de constater que je me suis planté de forum, ca n'a rien avoir avec PHP hem... 1000 excuse :o

  5. Bah... où tu veux avant ton formulaire...

    ici par ex:

    <?php
    define('IN_PHPBB', true);
    $phpbb_root_path = './forum/';
    include($phpbb_root_path . 'extension.inc');
    include($phpbb_root_path . 'common.'.$phpEx);

    $userdata = session_pagestart($user_ip, PAGE_ACC);
    init_userprefs($userdata);

    $actionm=append_sid("./forum/login.$phpEx?login=true");
    $lienm=append_sid("./../index.$phpEx");
    $pwm=append_sid("./forum/profile.$phpEx?mode=sendpassword");
    $logout=append_sid("./forum/login.$phpEx?logout=true&redirect=./../index.$phpEx");

    ?>
    <HTML>
    <HEAD>
    <TITLE>ALYANS</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="style.css" />
     <style media="screen" type="text/css"><!--
    #calque5 { position: absolute; top: 175px; left: 6px; width: 100px; height: 20px; visibility: visible }
    #calque3 { position: absolute; top: 172px; left: 99px; width: 114px; height: 26px; visibility: visible }
    #calque4 { position: absolute; top: 143px; left: 14px; width: 73px; height: 18px; visibility: visible }
    #calque2 { position: absolute; top: 142px; left: 99px; width: 114px; height: 25px; visibility: visible }
    #calque1 { position: absolute; top: 203px; left: 133px; width: 47px; height: 24px; visibility: visible }
    #calque6          { position: absolute; top: 36px; left: 614px; width: 180px; height: 23px; visibility: visible }
    #calque7                 { position: absolute; top: 130px; left: 353px; width: 438px; height: 111px; visibility: visible }
    #calque8         { position: absolute; top: 78px; left: 278px; width: 95px; height: 26px; visibility: visible }
    #calque9    { position: absolute; top: 611px; left: 295px; width: 306px; height: 22px; visibility: visible }
    #calque10             { position: absolute; top: 281px; left: 443px; width: 100px; height: 100px; visibility: visible }
    #calque12      { position: absolute; top: 543px; left: 446px; width: 100px; height: 40px; visibility: visible }
    #calque11  { position: absolute; top: 28px; left: 8px; width: 14px; height: 21px; visibility: visible }
    #calque13    { position: absolute; top: 78px; left: 612px; width: 55px; height: 19px; visibility: visible }
    #calque14         { position: absolute; top: 576px; left: 617px; width: 55px; height: 21px; visibility: visible }
    #calque15  { position: absolute; top: 571px; left: 285px; width: 100px; height: 21px; visibility: visible }
    #calque16   { position: absolute; top: 207px; left: 24px; width: 70px; height: 18px; visibility: visible }
    --></style>
    </HEAD>

  6. ah ben je suis en train de faire la meme chose... mais pour le moment ca ne marche qu'avec mozilla :fou: ...

    en fait je ne me suis pas cassé la tete vu que toutes les fonctions de login existent déja dans les fichier du forum j'ai ajouté ceci dans ma page:

    define('IN_PHPBB', true);
    $phpbb_root_path = './forum/';
    include($phpbb_root_path . 'extension.inc');
    include($phpbb_root_path . 'common.'.$phpEx);

    $userdata = session_pagestart($user_ip, PAGE_ACC);
    init_userprefs($userdata);

    mon forum se trouve évidement dans le répertoire forum...

    pour ce qui est du login proprement dit je te donnerai le code quand il fonctionnera sur IE en plus de mozilla lol...

    EDIT: voilaaaa j'ai trouvé...

    voici mon bloc login:

    print('
    <form action="'.$actionm.'" method="post" target="_top">
    <tr>
    <td colspan="4" valign="top" width="168" height="144" background="images/site_07.gif">
     <br/><br/>
     <table width="100%" cellpadding="0" cellspacing="0" border="0">

         <tr>
       <td align="right">
        <input type="hidden" name="redirect" value="'.$lienm.'" />
        <br/>Login:
       </td>
       <td align="left">
         <input class="post" type="text" name="username" size="15" />
       </td>
         </tr>
         <tr>
            <td align="right">
        Mot de passe:
        </td>
        <td align="left">
             <input class="post" type="password" name="password" size="15" />
          </td>
      </tr>
      <tr>
         <td colspan="2" align="center">
        <nobr><input class="text" type="checkbox" name="autologin" /> connexion auto</nobr>
        <br /><a href="'.$pwm.'">j\'ai perdu mon mdp</a>
          </td>
         </tr>
     
       </table>
    </td>
    </tr>
    <tr>
    <td rowspan="2" valign="top">
     <img id="site_08" src="images/site_08.gif" width="20" height="45" alt="" /></td>
    <td valign="top">
     <a href="' . append_sid("forum/profile.$phpEx?mode=register") . '"><img id="site_09" src="images/site_09.gif" width="72" height="19" alt="" border="0"/></a></td>
    <td rowspan="2" valign="top">
     <img id="site_10" src="images/site_10.gif" width="13" height="45" alt="" /></td>
    <td valign="top">
     <input type="image" name="login" value="login" alt="login" src="images/site_11.gif" /></td>
    </tr>
    </form>
    ');

    avec

    $actionm=append_sid("./forum/login.$phpEx?login=true");
    $lienm=append_sid("./../index.$phpEx");
    $pwm=append_sid("./forum/profile.$phpEx?mode=sendpassword");
    $logout=append_sid("./forum/login.$phpEx?logout=true&redirect=./../index.$phpEx");

    PhpBB

    hello

    le menu c'est ceci:

       <tr>
        <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>   <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>   <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
       </tr>

    donc c'est dedans que tu rajoute le lien...

  7. waaaw, je me sens moins seul lol, merci pour vos réponses...

    salut.

    tu passes une variable par url et tu mets method="post" dans ton formulaire

    <{POST_SNAPBACK}>

    non les variables passées en url n'ont rien avoir avec celles du formulaire

    Je suppose que tu vérifies dans ton script php que la valeur envoyée est égale à login lors de l'appuie sur le bouton Input (image) ?

    Si c le cas c'est tout à fait logique que IE ne voit rien (et Opera non plus d'ailleurs) car lors du clic sur le bouton ceux sont les coordonnées où l'on a cliqué qui sont envoyées.

    Eric

    <{POST_SNAPBACK}>

    y'a ca dans login.php:

    if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($HTTP_POST_VARS['logout']) || isset($HTTP_GET_VARS['logout']) )
    {
    if( ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) ) && (!$userdata['session_logged_in'] || isset($HTTP_POST_VARS['admin'])) )
    {
     $username = isset($HTTP_POST_VARS['username']) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';
     $password = isset($HTTP_POST_VARS['password']) ? $HTTP_POST_VARS['password'] : '';


    ...

    c'est pas juste?

    Bonjour,

    Qu'est ce qui s'affiche sur la page login.php lorsque tu fais ceci :

    <?echo $_POST["username"]?>

    Portekoi

    <{POST_SNAPBACK}>

    ah ben le pseudo est bien envoyé a login.php... le pseudo s'affiche...

    pfff je m'en sorts paaas... :wacko:

    EDIT: WAAAAAAAAH j'y suis arrivéééé en fait il ne passait pas le premier if, pitetre bien a cause de ce qu'a dit Eric ^_^ ...

    Merci à vouuuus!!!

  8. :blush: Bonjour, bonjour...

    Je viens quémender votre aide car j'ai un petit problème sur un site que je fais en local...

    en fait le site comporte un formulaire permettant de se loguer sur un forum phpbb... un peu comme le fait un portail quoi.

    Il s'avère que le formulaire marche divinement bien sous mozilla... mais, horreur, j'ai testé sur IE et mon formulaire n'envoi pas les données... il va betement sur la page login.php sans rien lui envoyer dutout ce goujat la (login.php étant le lien action du form)...

    alors à mon point de vue... j'ai du écrire mon formulaire comme un bourrin... n'ayant pas beaucoup d'expérience et apprenant sur le tas.

    voici le code source de mon formulaire de mon menu... en fait le bouton submit est une image donc j'ai utilisé <input type="image"...

    <form action="'.$actionm.'" method="post" target="_top">
    <tr>
     <td colspan="4" valign="top" width="168" height="144" background="images/site_07.gif">
     <br/><br/>
     <table width="100%" cellpadding="0" cellspacing="0" border="0">
     
         <tr>
       <td align="right">
         <input type="hidden" name="redirect" value="'.$lienm.'" />
         <br/>Login:
       </td>
       <td align="left">
          <input class="post" type="text" name="username" size="15" />
       </td>
         </tr>
         <tr>
             <td align="right">
         Mot de passe:
         </td>
         <td align="left">
              <input class="post" type="password" name="password" size="15" />
           </td>
       </tr>
       <tr>
         <td colspan="2" align="center">
         <nobr><input class="text" type="checkbox" name="autologin" /> connexion auto</nobr>
         <br /><a href="'.$pwm.'">j\'ai perdu mon mdp</a>
           </td>
         </tr>
       
       </table>
     </td>
    </tr>
    <tr>
     <td rowspan="2" valign="top">
     <img id="site_08" src="images/site_08.gif" width="20" height="45" alt="" /></td>
     <td valign="top">
     <a href="' . append_sid("forum/profile.$phpEx?mode=register") . '"><img id="site_09" src="images/site_09.gif" width="72" height="19" alt="" border="0"/></a></td>
     <td rowspan="2" valign="top">
     <img id="site_10" src="images/site_10.gif" width="13" height="45" alt="" /></td>
     <td valign="top">
     <input type="image" name="login" value="login" alt="login" src="images/site_11.gif" /></td>
    </tr>
    </form>

    $actionm=append_sid("forum/login.$phpEx");
    $lienm=append_sid("../index.$phpEx");
    $pwm=append_sid("forum/profile.$phpEx?mode=sendpassword");

    (les fonctions append_sid() permettent juste de mettre l'id de l'utilisateur dans le lien, normalement le problème ne vient pas de la)

    ce qui donne lorsque je fais afficher le code source de la page dans IE:

    <form action="forum/login.php?sid=3dd3ff2ad76ca2a3375ab88037509f8e" method="post" target="_top">
    <tr>
     <td colspan="4" valign="top" width="168" height="144" background="images/site_07.gif">
     <br/><br/>
     <table width="100%" cellpadding="0" cellspacing="0" border="0">
     
         <tr>
       <td align="right">
         <input type="hidden" name="redirect" value="../index.php?sid=3dd3ff2ad76ca2a3375ab88037509f8e" />
         <br/>Login:
       </td>
       <td align="left">
          <input class="post" type="text" name="username" size="15" />
       </td>
         </tr>
         <tr>
             <td align="right">
         Mot de passe:
         </td>
         <td align="left">
              <input class="post" type="password" name="password" size="15" />
           </td>
       </tr>
       <tr>
         <td colspan="2" align="center">
         <nobr><input class="text" type="checkbox" name="autologin" /> connexion auto</nobr>
         <br /><a href="forum/profile.php?mode=sendpassword&sid=3dd3ff2ad76ca2a3375ab88037509f8e">j'ai perdu mon mdp</a>
           </td>
         </tr>
       
       </table>
     </td>
    </tr>
    <tr>
     <td rowspan="2" valign="top">
     <img id="site_08" src="images/site_08.gif" width="20" height="45" alt="" /></td>
     <td valign="top">
     <a href="forum/profile.php?mode=register&sid=3dd3ff2ad76ca2a3375ab88037509f8e"><img id="site_09" src="images/site_09.gif" width="72" height="19" alt="" border="0"/></a></td>
     <td rowspan="2" valign="top">
     <img id="site_10" src="images/site_10.gif" width="13" height="45" alt="" /></td>
     <td valign="top">
     <input type="image" name="login" value="login" alt="login" src="images/site_11.gif" /></td>
    </tr>
    </form>

    qu'est ce qui cloche à votre avis :o ?

×
×
  • Créer...