Fork me on GitHub


 Bas   Précédent   Suivant

« 1 (2)


Re: Qui est en ligne?
Aspirant
Inscrit: 22/05/2006 14:37
Messages: 21
Citation :

Christian a écrit:
Ce sujet a été abordé maintes fois que ce soit dans les forums ou la faq.

Merci de procéder à une recherche avec les mots : bloc qui ligne


Désolé, j'avais fait une recherche infructueuse avec "qui est en ligne".

Posté le : 09/06/2006 12:08
Transférer la contribution vers d'autres applications Transférer


Qui est en ligne?
Aspirant
Inscrit: 22/05/2006 14:37
Messages: 21
Bonjour,

j'ai un petit problème avec le bloc "qui est en ligne" qui m'affiche 2 fois plus de connexions que la réalité. En effet, tout membre connecté apparait deux fois: une fois en tant que membre et une fois en tant que visiteur. Quand je regarde le détail, chaque adresse IP de membres connecté est dupliquée. Est-ce normal, docteur?

Je suis en XOOPS 2.0.13 et thème phpkaox standard.

Posté le : 09/06/2006 11:13
Transférer la contribution vers d'autres applications Transférer


Re: Problème de balise meta avec le thème BlueBump
Aspirant
Inscrit: 22/05/2006 14:37
Messages: 21
Citation :

kris a écrit:
Bonjour,

Les fichiers theme.php étaient utilisées avec les versions antiques de Xoops 1.X

A +


Merci, c'est effectivement ce que je viens de voir sur d'autres forums: BlueBump n'a pas été adapté à XOOPS2, ce qui pose quelques légers problèmes. Dommage, j'aimae bien ce thème. Mais tant pis je vais devoir en changer.

Merci à tous pour votre aide.

Posté le : 07/06/2006 23:15
Transférer la contribution vers d'autres applications Transférer


Re: Problème de balise meta avec le thème BlueBump
Aspirant
Inscrit: 22/05/2006 14:37
Messages: 21
Citation :

Christian a écrit:
Tu peux coller ici ce qui est entre les balises <head> et </head> de ton fichier theme.html.


Il n'y a pas de theme.html dans BlueBump, uniquement un theme.php que je te copie ci-dessous:

<?php


/************************************************************/
/* Theme Name: BlueBump                                     */
/* Copyright (c)  UserWebb.de                               */
/* ported by Xend  (Http;//xendtech.com)                    */
/*                                                          */
/************************************************************/


 
$xoopsTheme['thename'] = "blueBump";

/************************************************************/
/* OpenTable Functions                                      */
/*                                                          */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to      */
/* properly close our tables. The difference is that        */
/* OpenTable has a 100% width and OpenTable2 has a width    */
/* according with the table content                         */
/************************************************************/



function OpenTable($width="100%") {
 global 
$xoopsTheme;
    echo 
"<table width="$width" border="0" cellspacing="1" cellpadding="0" class='bg2'><tr><td>n";
    echo 
"<table width="97%" border="0" cellspacing="1" cellpadding="8"class='bg1'><tr><td>n";
 }
function 
CloseTable() {
 echo 
"</td></tr></table></td></tr></table>n";
 }

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: make_sidebar("left");       */
/************************************************************/

function themeheader($show_rblock){
 global 
$xoopsConfig,$xoopsTheme,$xoopsUser,$xoopsDB;

 
OpenWaitBox();

  if ( 
$xoopsUser ) {
        
$username $xoopsUser->uname();
    }
    echo 
"<body bgcolor="#DEDEE6" text="" link="" vlink="" alink="" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">n"
        
."<table cellpadding="5" cellspacing="0" width="100%" border="0" bgcolor="#9999cc"><tr><td><a href="".$xoopsConfig['xoops_url']."/index.php"><img src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/logo.gif" align="left" alt=""._TH_WELCOMETO." $sitename" border="0"></a></td><td align="right">n";
          
if ( $xoopsConfig['banners'] ) {
?>
<script>
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != "[object]"){
setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
return;
}

clearTimeout(nereidFadeTimers[object.sourceIndex]);

diff = destOp-object.filters.alpha.opacity;
direction = 1;
if (object.filters.alpha.opacity > destOp){
direction = -1;
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;

if (object.filters.alpha.opacity != destOp){
nereidFadeObjects[object.sourceIndex]=object;
nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
}
}
</script>
<?
showbanner();
}
    echo "</td></tr></table>n"
 ."<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" valign="middle" bgcolor="#DEDEE6"><tr>n"
        ."<td bgcolor="#DEDEE6"><IMG src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/pixel.gif" width="1" height="1" alt="" border="0" hspace="0"></td></tr></table>n"
           
        ."<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" bgcolor="#7373A4" background="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/headerline.gif" height="30">n"
        ."<tr valign="middle"><td><IMG src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/pixel.gif" width="24" height="30" border="0" hspace="0"></td><td><table border="0" cellspacing="0" cellpadding="0" background="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/toplight_bg.gif"><tr><td width="4" height="30"><img src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/toplight_left.gif" width="4" height="30"></td>n"
        ."<td nowrap class="artsubhead" align="left">n";


    if ( $xoopsUser ) {
        echo " "._TH_WELCOME." $username! | <a href="".$xoopsConfig['xoops_url']."/user.php?op=logout">"._TH_LOGOUT."</a> | ";

    } else {
       echo "<a href="".$xoopsConfig['xoops_url']."/register.php">"._TH_CREATE."</a>n";
    }
    echo "<script type="text/javascript">n"
        ."<!--   // Array ofmonth Namesn"
        ."var monthNames = new Array( ""._TH_JANUARY."",""._TH_FEBRUARY."",""._TH_MARCH."",""._TH_APRIL."",""._TH_MAY."",""._TH_JUNE."",""._TH_JULY."",""._TH_AUGUST."",""._TH_SEPTEMBER."",""._TH_OCTOBER."",""._TH_NOVEMBER."",""._TH_DECEMBER."");n"
        ."var now = new Date();n"
        ."thisYear = now.getYear();n"
        ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problemn"
        ."document.write( now.getDate() + " " + monthNames[now.getMonth()] + " " + thisYear) ;n"
        ."// -->n"
        ."</script></td><td width="4" height="30"><img src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/toplight_right.gif" width="4" height="30"></td></tr></table>n"
        ."<td align="center" height="30" width="70%"><IMG src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/pixel.gif" width="24" height="30" border="0" hspace="0">

        <A href="".$xoopsConfig['xoops_url']."/"><IMG src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/accueil.jpg" width="65" height="30" alt=""._TH_HOME."" border="0" hspace="0"></a>
        <A href="".$xoopsConfig['xoops_url']."/modules/newbb/"><IMG src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/Forum.jpg" width="58" height="30" alt=""._TH_FORUM."" border="0" hspace="0"></a>
        <A href="".$xoopsConfig['xoops_url']."/modules/xoopsmembers/"><IMG src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/Membres.jpg" width="76" height="30" alt=""._TH_MEMBERS."" border="0" hspace="0"></a>
        <A href="".$xoopsConfig['xoops_url']."/modules/contact/"><IMG src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/contactez-nous.jpg" width="88" height="30" alt=""._TH_CONTACT."" border="0" hspace="0"></a>
        <A href='javascript:window.external.AddFavorite("http://destination-casino.com")'><IMG src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/Ajout-favoris.jpg" width="82" height="30" alt=""._TH_FAVORIS."" border="0" hspace="0"></a></td>n"

        ."</tr></table>n"
        ."<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="" align="center" background="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/under_hl.gif" height="15">n<tr>"
        ."<td><IMG SRC="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/under_hl.gif" alt="" border="0" hspace="0"></td></tr>"
        ."</table>n"
        ."<!-- FIN DEL TITULO -->n"
        ."<table width="98%" cellpadding="0" cellspacing="0" border="0" bgcolor="#DEDEE6" align="center"><tr valign="top">n"
        ."<td bgcolor="#DEDEE6" width="180" valign="top">n";
    make_sidebar("left");
    echo "</td><td><img src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/pixel.gif" width="15" height="1" border="0" alt=""></td><td width="100%">n";
}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: make_sidebar("right");*/
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter($show_rblock, $footer){
 global $xoopsConfig,$xoopsTheme;

  if ( $show_rblock ) {
        echo "</td><td><img src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/pixel.gif" width="15" height="1" border="0" alt=""></td><td valign="top" width="180">n";
       make_sidebar("right");
    }
    echo "</td>n"
        ."</td></tr></table>n"
        ."<table width="98%" cellpadding="0" cellspacing="0" border="0" bgcolor="#9999cc" align="center"><tr>n"
        ."<td bgcolor="#DEDEE6"><IMG src="".$xoopsConfig['xoops_url']."/themes/".$xoopsTheme['thename']."/images/pixel.gif" width="1" height="1" alt="" border="0" hspace="0"></td>n"
        ."</tr></table><br>n"
        ."<table width="98%" cellpadding="0" cellspacing="0" border="0" align="center"><tr align="center">n"
        ."<td width="98%" colspan="3" class="artsubhead">n";
    echo $footer;
    echo "</td>n"
        ."</tr></table>n";
 CloseWaitBox();
 }

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content) {
  global $xoopsConfig,$xoopsTheme;
?>
<table border="0" cellpadding="0" cellspacing="0" width="181">
<tr>
   <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
       <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
           <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tr>
                      <td width="65"><img name="sidebox_01" src="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_01.gif" width="65" height="19" border="0" alt=""></td>
                      <td background="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_02.gif"><img name="sidebox_02" src="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_02.gif" width="99" height="19" border="0" alt=""></td>
              </tr>
            </table></td>
          </tr>
          <tr>
                <td background="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_05.gif">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tr>
                      <td width="22"><img name="sidebox_04" src="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_04.gif" width="22" height="21" border="0" alt=""></td>
                      <td background="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_05.gif" class="menuehead"><?php echo $title;?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
          <td width="17"><img name="sidebox_03" src="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_03.gif" width="17" height="40" border="0" alt=""></td>
      </tr>
    </table></td>
  </tr>
  <tr>
   <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td rowspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tr> 
                <td>
                  <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr> 
                      <td width="22" background="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_06.gif"><img name="sidebox_06" src="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_06.gif" width="22" height="103" border="0" alt=""></td>
                      <td background="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_07.gif" class="artsubhead"><?php echo $content;?></td>
                      <td width="17" background="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_08.gif"><img name="sidebox_08" src="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_08.gif" width="17" height="103" border="0" alt=""></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr> 
                      <td width="22" height="23" align="left" valign="top"><img name="sidebox_09" src="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_09.gif" width="22" height="23" border="0" alt=""></td>
                      <td width="102" height="23" background="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_10.gif"><img name="sidebox_10" src="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_10.gif" width="102" height="23" border="0" alt=""></td>
                      <td width="57" height="23" align="right" valign="top"><img name="sidebox_11" src="<?php echo XOOPS_URL."/themes/".$xoopsTheme['thename'];?>/images/sidebox_11.gif" width="57" height="23" border="0" alt=""></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td width="22" height="23" valign="bottom">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table><br>
<?php
 
}

/************************************************************/
/* Function themecenterposts()                              */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themecenterposts($title$content) {
 
OpenTable();
 echo
"<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>"
    
."<td><b>$title</b><br /></td></tr>"
    
."<tr><td>$content</td></tr>"
    
."<tr><td align='right'>&nbsp;</td></tr></table>";
   
CloseTable();
 }
?>

Posté le : 07/06/2006 17:57

Edité par kris sur 07/06/2006 18:57:54
Transférer la contribution vers d'autres applications Transférer


Problème de balise meta avec le thème BlueBump
Aspirant
Inscrit: 22/05/2006 14:37
Messages: 21
Bonjour,

j'utilise le thème BlueBump pour mon site (XOOPS2) et j'ai un problème avec la balise META DESCRIPTION qui est désespérement vide alors que la description est correctement renseignée au niveau des préférences dans le menu d'admin.

Si je change de thème, la balise meta est correctement renseignée quand j'affiche mon source, alors qu'avec BlueBump, j'obtiens ceci:

meta name="description" content=""


Pourriez-vous m'indiquer quel fichier du thème je dois modifier pour que cela fonctionne correctement.

Cordialement
LOKI

Posté le : 07/06/2006 17:29

Edité par LOKI2006 sur 07/06/2006 23:19:06
Transférer la contribution vers d'autres applications Transférer


Re: design
Aspirant
Inscrit: 22/05/2006 14:37
Messages: 21
Bonjour,

je crois comprendre ce qu'il a voulu dire car il m'est déjà arrivé une chose similaire: après avoir modifié le fichier theme.php avec un éditeur html (pour moi c'était celui du theme par défaut), quand j'ai voulu retourner sur mon site, j'avais du code php affiché, au lieu d'avoir ma page d'accueil. Et effectivement, ça devient très difficile de ré-entrer dans le site et de corriger, puisqu'il n'y a plus de bloc login.

Même en restaurant l'ancien thème, ça ne change rien, puisqu'on ne peut pas effectuer la mise à jour.

Heureusement pour moi, j'avais encore une fenêtre ouverte sur le panneau d'administration, et j'ai pû réparer. Sinon, je ne vois pas comment je m'en serais sorti sans réinstaller.

J'utilise PageBreeze comme éditeur HTML, et je pense qu'il a inséré ou supprimé une balise dans la code PHP, ce qui explique ce comportement.

Posté le : 30/05/2006 02:26
Transférer la contribution vers d'autres applications Transférer



 Haut
« 1 (2)




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

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