It is currently Wed 28 Sep 2016 - 00:20 - créer un forum

[tuto]modifier "qui est en ligne"

Skip to content

Post new topic Reply to topic Goto page: <  1, 2, 330, 31, 3247, 48, 49  >

[tuto]modifier "qui est en ligne"
Author Message
themalin


Joined: 19 Apr 2006
Posts: 8,897

PostPosted: Mon 27 Apr 2009 - 20:12    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

PublicitéSupprimer les publicités ?
Previous post review:

ici

{RECORD_USERS}
{LOGGED_IN_USER_LIST}

vérifies de bien avoir les deux codes sinon ajoutes le manquant
Forum
Author Message
lepsy


Offline
Guest




PostPosted: Mon 27 Apr 2009 - 20:17    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

BODY_INDEX.TPL
Pourtant ils existent bien (!):
Code: Sélectionner - Agrandir

 <table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
   <tr> 
     <td align="left" valign="bottom"> <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span> 
     </td>
   </tr>
 </table>
 <!-- BEGIN catrow -->
 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline">
   <tr> 
     <th class="thCornerL">&nbsp;</th>
     <th align="left" class="thCornerL" nowrap>&nbsp;{L_FORUM}&nbsp;</th>
     <th width="50" class="thTop" nowrap>&nbsp;{L_TOPICS}&nbsp;</th>
     <th width="50" class="thTop" nowrap>&nbsp;{L_POSTS}&nbsp;</th>
     <th class="thCornerR" nowrap>&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <tr> 
     <td class="catLeft"><span class="cattitle"></span></td>
     <td class="catLeft" colspan="4"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
   </tr>
   <!-- BEGIN forumrow -->
   <tr> 
     <td class="row5" align="center" valign="middle" height="24"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="28" height="28" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
     <td class="row4" width="100%" height="24"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
       </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
       </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
     <td class="row4" align="center" valign="middle" height="24"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
     <td class="row4" align="center" valign="middle" height="24"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
     <td class="row5" align="center" valign="middle" height="24" nowrap> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
   </tr>
   <tr> 
     <td class="hozbar" align="center" valign="middle" height="20" colspan="5">&nbsp;</td>
   </tr>
   <!-- END forumrow -->
   <td class="newcat_bot" align="center" valign="middle" height="10" colspan="5">&nbsp;</td>
 </table>
 <br />
 <!-- END catrow -->
 <!-- BEGIN switch_user_logged_in -->
     
     <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline">
       <tr>
         <th class="th" height="20" colspan="2"></th>
       </tr>
       <tr>
         <td class="catHead"></td>
         <td class="catHead"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
       </tr>
       <tr>
         <td class="row5" align="center" valign="middle"><img src="http://img6.xooimage.com/files/u/s/user-33196.gif" alt="{L_WHO_IS_ONLINE}" /></td>
         <td class="row5" align="left" width="100%" valign="middle"> <span class="gensmall">{TOTAL_USERS_ONLINE}
           &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />
           {RECORD_USERS}<br />
           {LOGGED_IN_USER_LIST}</span></td>
       </tr>
       <tr>
         <td class="catHead" align="center" valign="middle">&nbsp;</td>
         <td class="catHead" align="left"><span class="cattitle">Agenda</span></td>
       </tr>
       <tr>
         <td class="row5" align="center" valign="middle"><img src="http://img6.xooimage.com/files/u/s/user-33196.gif" alt="{L_WHO_IS_ONLINE}" /></td>
         <td class="row5" align="left"><span class="gensmall">
           <!-- BEGIN switch_user_logged_in -->
           {LAST_VISIT_DATE}&nbsp;&nbsp;&nbsp;
           <!-- END switch_user_logged_in -->
           {CURRENT_TIME}</span> <br />
           <!-- BEGIN switch_user_logged_in -->
           <span class="gensmall"> <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a>&nbsp;&nbsp;&nbsp;
           <a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a></span> &nbsp;&nbsp;
           <!-- END switch_user_logged_in -->
           <span class="gensmall"><a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></span>
           &nbsp;&nbsp; <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
       </tr>
       <tr>
         <td class="catHead" align="center" valign="middle">&nbsp;</td>
         <td class="catHead" align="left"><span class="cattitle">Statistiques</span></td>
       </tr>
       <tr>
         <td class="row5" align="center" valign="middle"><img src="http://img7.xooimage.com/files/w/h/whosonline-33197.gif" alt="{L_WHO_IS_ONLINE}" /></td>
         <td class="row5" align="left"><span class="gensmall">{TOTAL_POSTS}<br />
           {TOTAL_USERS}.&nbsp; {NEWEST_USER}</span></td>
       </tr>
       <tr>
         <td class="hozbar" align="center" valign="middle" colspan="2" height="20">&nbsp;</td>
       </tr>
       <tr>
         <td class="newcat_bot" align="center" valign="middle" colspan="2" height="10">&nbsp;</td>
       </tr>
     </table>
     <table width="100%" cellpadding="1" cellspacing="1" border="0">
       <tr>
         <td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
      <tr>
         <td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td>
     </table>
 <!-- END switch_user_logged_in --> 
 
 
 <!-- BEGIN switch_user_logged_out -->
 <br />
 <form method="post" action="{S_LOGIN_ACTION}">
   <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline">
     <tr> 
       <th class="th" height="20">&nbsp;</th>
     </tr>
     <tr> 
       <td class="catHead" height="20"><a name="login"></a><span class="cattitle">&nbsp;{L_LOGIN_LOGOUT}</span></td>
     </tr>
     <tr> 
       <td class="row5" align="center" valign="top"><span class="gensmall">{L_USERNAME}: 
         <input class="post" type="text" name="username" size="10" />
         &nbsp;&nbsp;&nbsp;{L_PASSWORD}: 
         <input class="post" type="password" name="password" size="10" maxlength="32" />
         &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} 
         <input class="text" type="checkbox" name="autologin" />
         &nbsp;&nbsp;&nbsp; 
         <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
         </span> </td>
     </tr>
     <tr> 
       <td class="hozbar" align="center" valign="middle" height="20">&nbsp;</td>
     </tr>
     <tr>
       <td class="newcat_bot" align="center" valign="middle" height="10">&nbsp;</td>
     </tr>
   </table>
 </form>
 <!-- END switch_user_logged_out -->
 
 <br clear="all" />



Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Mon 27 Apr 2009 - 20:23    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

dans ce cas tu es sur de bien mettre 24 ici

Afficher les utilisateurs s’étant connectés ces dernières heures 0 désactive cette fonctionnalitéet faire envoyer
_______________________


Forum
Author Message
lepsy


Offline
Guest




PostPosted: Mon 27 Apr 2009 - 20:32    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

J'ai déjà fait ça comme ça:

 
 


Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Mon 27 Apr 2009 - 20:37    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

si tu mets ça

{LOGGED_IN_USER_LIST}

après ça


 
Code: Sélectionner - Agrandir
<span class="gensmall">{TOTAL_POSTS}<br />
           {TOTAL_USERS}.&nbsp; {NEWEST_USER} 

_______________________


Forum
Author Message
lepsy


Offline
Guest




PostPosted: Mon 27 Apr 2009 - 20:47    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

Non ça ne marche pas et en plus la ligne Utilisateurs enregistrés disparait!

Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Tue 28 Apr 2009 - 09:51    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

apparement la composition de ton index body empeche d'afficher la liste
_______________________


Forum
Author Message
lepsy


Offline
Guest




PostPosted: Wed 29 Apr 2009 - 00:03    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

Bonsoir,

Voici le template (illusion) Index_body.tpl:
Code: Sélectionner - Agrandir

<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
   <tr>
     <td align="left" valign="bottom"> <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span>
     </td>
   </tr>
 </table>
 <!-- BEGIN catrow -->
 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline">
   <tr>
     <th class="thCornerL">&nbsp;</th>
     <th align="left" class="thCornerL" nowrap>&nbsp;{L_FORUM}&nbsp;</th>
     <th width="50" class="thTop" nowrap>&nbsp;{L_TOPICS}&nbsp;</th>
     <th width="50" class="thTop" nowrap>&nbsp;{L_POSTS}&nbsp;</th>
     <th class="thCornerR" nowrap>&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <tr>
     <td class="catLeft"><span class="cattitle"></span></td>
     <td class="catLeft" colspan="4"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
   </tr>
   <!-- BEGIN forumrow -->
   <tr>
     <td class="row5" align="center" valign="middle" height="24"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="28" height="28" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
     <td class="row4" width="100%" height="24"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
       </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
       </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
     <td class="row4" align="center" valign="middle" height="24"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
     <td class="row4" align="center" valign="middle" height="24"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
     <td class="row5" align="center" valign="middle" height="24" nowrap> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
   </tr>
   <tr>
     <td class="hozbar" align="center" valign="middle" height="20" colspan="5">&nbsp;</td>
   </tr>
   <!-- END forumrow -->
   <td class="newcat_bot" align="center" valign="middle" height="10" colspan="5">&nbsp;</td>
 </table>
 <br />
 <!-- END catrow -->
 <!-- BEGIN switch_user_logged_in -->
    
     <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline">
       <tr>
         <th class="th" height="20" colspan="2"></th>
       </tr>
       <tr>
         <td class="catHead"></td>
         <td class="catHead"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
       </tr>
       <tr>
         <td class="row5" align="center" valign="middle"><img src="http://img6.xooimage.com/files/u/s/user-33196.gif" alt="{L_WHO_IS_ONLINE}" /></td>
         <td class="row5" align="left" width="100%" valign="middle"> <span class="gensmall">{TOTAL_USERS_ONLINE}
           &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />
           {RECORD_USERS}<br />
           {LOGGED_IN_USER_LIST}</span></td>
           <br><b>{L_CONGRATULATIONS_TO}:</b> {BIRTHDAY_USER_LIST}
       </tr>
       <tr>
         <td class="catHead" align="center" valign="middle">&nbsp;</td>
         <td class="catHead" align="left"><span class="cattitle">Agenda</span></td>
       </tr>
       <tr>
         <td class="row5" align="center" valign="middle"><img src="http://img6.xooimage.com/files/u/s/user-33196.gif" alt="{L_WHO_IS_ONLINE}" /></td>
         <td class="row5" align="left"><span class="gensmall">
           <!-- BEGIN switch_user_logged_in -->
           {LAST_VISIT_DATE}&nbsp;&nbsp;&nbsp;
           <!-- END switch_user_logged_in -->
           {CURRENT_TIME}</span> <br />
           <!-- BEGIN switch_user_logged_in -->
           <span class="gensmall"> <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a>&nbsp;&nbsp;&nbsp;
           <a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a></span> &nbsp;&nbsp;
           <!-- END switch_user_logged_in -->
           <span class="gensmall"><a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></span>
           &nbsp;&nbsp; <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
       </tr>
       <tr>
         <td class="catHead" align="center" valign="middle">&nbsp;</td>
         <td class="catHead" align="left"><span class="cattitle">Statistiques</span></td>
       </tr>
       <tr>
         <td class="row5" align="center" valign="middle"><img src="http://img7.xooimage.com/files/w/h/whosonline-33197.gif" alt="{L_WHO_IS_ONLINE}" /></td>
         <td class="row5" align="left"><span class="gensmall">{TOTAL_POSTS}<br />
           {TOTAL_USERS}.&nbsp; {NEWEST_USER}</span></td>
          
       </tr>
       <tr>
         <td class="hozbar" align="center" valign="middle" colspan="2" height="20">&nbsp;</td>
       </tr>
       <tr>
         <td class="newcat_bot" align="center" valign="middle" colspan="2" height="10">&nbsp;</td>
       </tr>
     </table>
     <table width="100%" cellpadding="1" cellspacing="1" border="0">
       <tr>
         <td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
      <tr>
         <td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td>
     </table>
 <!-- END switch_user_logged_in -->
 
 <!-- BEGIN switch_user_logged_out -->
 <br />
 <form method="post" action="{S_LOGIN_ACTION}">
   <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline">
     <tr>
       <th class="th" height="20">&nbsp;</th>
     </tr>
     <tr>
       <td class="catHead" height="20"><a name="login"></a><span class="cattitle">&nbsp;{L_LOGIN_LOGOUT}</span></td>
     </tr>
     <tr>
       <td class="row5" align="center" valign="top"><span class="gensmall">{L_USERNAME}:
         <input class="post" type="text" name="username" size="10" />
         &nbsp;&nbsp;&nbsp;{L_PASSWORD}:
         <input class="post" type="password" name="password" size="10" maxlength="32" />
         &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
         <input class="text" type="checkbox" name="autologin" />
         &nbsp;&nbsp;&nbsp;
         <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
         </span> </td>
     </tr>
     <tr>
       <td class="hozbar" align="center" valign="middle" height="20">&nbsp;</td>
     </tr>
     <tr>
       <td class="newcat_bot" align="center" valign="middle" height="10">&nbsp;</td>
     </tr>
   </table>
 </form>
 <!-- END switch_user_logged_out -->
 
 <br clear="all" />



Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Wed 29 Apr 2009 - 10:04    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

il faudrait essayer avec l'index body d'un autre thème
_______________________


Forum
Author Message
lepsy


Offline
Guest




PostPosted: Thu 30 Apr 2009 - 15:28    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

Bonjour,

Le thème Illusion causant des soucis, j'ai pris le thème Olympus/Xooit avec l'index_body.tpl suivant:
Code: Sélectionner - Agrandir


 <!-- DEFINE {TEST2} test define 2 -->
 <!-- {TEST} {TEST2} -->
     <table class="tablebg" width="100%" cellspacing="1" cellpadding="0" >
         <tr>
             <td class="row1">
                 <p class="breadcrumbs"> <a href="{U_INDEX}">{L_INDEX}</a> <!-- BEGIN navlinks --> » <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks -->               </p>  
                 <p class="datetime">{S_TIMEZONE}</p>
             </td>
         </tr>
     </table>
     
 <br />    
 
 <table width="100%" cellspacing="1" class="tablebg"> <!--  cellpadding="2" border="0" align="center"  -->
 
         <tr>
             <td class="cat" colspan="5" align="right">
             <!-- BEGIN switch_user_logged_in -->
             <a class="nav" href="{U_MARK_READ}">{L_MARK_FORUMS_READ}</a>&nbsp;
             <!-- END switch_user_logged_in -->
             </td>
         </tr>
 </table>
 
 <table width="100%" cellspacing="1" border="0" class="tablebg">
   <tr> 
     <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
     <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
     <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
     <th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <!-- BEGIN catrow -->
   <tr> 
     <td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
     <td class="rowpic" colspan="3" align="right">&nbsp;</td>
   </tr>
   <!-- BEGIN forumrow -->
   <tr> 
     <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
     <td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
       </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
       </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
     <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
     <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
     <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
   </tr>
   <!-- END forumrow -->
   <!-- END catrow -->
 </table>
 
 <table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
   <tr> 
     <td align="left"><span class="gensmall">
     
 <!-- BEGIN switch_user_logged_in -->
     <a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a>
     <!-- END switch_user_logged_in -->
     </span></td>
     <td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
   </tr>
 </table>
 
 <table width="100%" cellspacing="1" class="tablebg">
   <tr> 
     <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
   </tr>
   <tr> 
     <td width="40" align="center" valign="middle" class="row1"><img src="http://img3.xooimage.com/files/d/f/c/kfm_home-673b4.png" alt="{L_WHO_IS_ONLINE}" /></td>
     
     <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}<br /><br />{L_ONLINE_EXPLAIN}</span></td>
   </tr>
   <tr>
         <td class="row1">&nbsp;</td>
         <td class="row1" align="left"><span class="gensmall">
 {L_LEGEND}
     <!-- BEGIN ranks_legend_row -->
     <b>::</b> <span style="font-weight:bold;color:{ranks_legend_row.COLOR}">{ranks_legend_row.TITLE}</span>
     <!-- END ranks_legend_row -->
     <!-- BEGIN switch_oldlegend -->
     <b>::</b> {L_WHOSONLINE_ADMIN} <b>::</b> {L_WHOSONLINE_MOD}
     <!-- END switch_oldlegend -->
     </span></td>
   </tr>
 </table>
 
 <!--<table width="100%" cellpadding="1" cellspacing="1" border="0">
 <tr>
     <td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
 </tr>
 </table>-->
 
 <br />
 
 <!-- BEGIN switch_birthdays -->
 <table class="tablebg" width="100%" cellspacing="1">
  <tr>
   <td class="cat" colspan="2"><h4>{L_BIRTHDAYS}</h4></td>
  </tr>
  <tr>
   <td width="40" class="row1"><img src="http://img3.xooimage.com/files/d/f/c/kfm_home-673b4.png" alt="{L_BIRTHDAYS}" /></td>
   <td class="row1" width="100%" valign="middle"><p class="gensmall"> {L_CONGRATULATIONS_TO}: {BIRTHDAY_USER_LIST} </p></td>
  </tr>
 </table>
 
 <br />
 <!-- END switch_birthdays -->
 
 <table class="tablebg" width="100%" cellspacing="1">
         <tr>
             <td class="cat" colspan="2"><h4>Statistiques</h4></td>
         </tr>
         <tr>
 
             <td width="40" class="row1"><img src="http://img3.xooimage.com/files/d/f/c/kfm_home-673b4.png" alt="{L_WHO_IS_ONLINE}" /></td>
             <td class="row1" width="100%" valign="middle"><p class="gensmall"> {TOTAL_POSTS} | {TOTAL_USERS} | {NEWEST_USER} </p></td>
         </tr>
 </table>
     
     <br />
 
 <!-- BEGIN switch_user_logged_out -->
 <form method="post" action="{S_LOGIN_ACTION}">
   <table width="100%" cellspacing="1"  class="tablebg">
     <tr> 
       <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
     </tr>
     <tr> 
       <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}: 
         <input class="post" type="text" name="username" size="10" />
         &nbsp;&nbsp;&nbsp;{L_PASSWORD}: 
         <input class="post" type="password" name="password" size="10" maxlength="32" />
         &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} 
         <input class="text" type="checkbox" name="autologin" />
         &nbsp;&nbsp;&nbsp; 
         <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
         </span> </td>
     </tr>
   </table>
 </form>
 <!-- END switch_user_logged_out -->
 
 <br clear="all" />
 
 <table cellspacing="3" border="0" align="center" cellpadding="0">
   <tr> 
     <td width="20" align="center"><img src="http://img9.xooimage.com/files/f/o/folder_new_big-30d68.gif" alt="{L_NEW_POSTS}"/></td>
     <td><span class="gensmall">{L_NEW_POSTS}</span></td>
     <td>&nbsp;&nbsp;</td>
     <td width="20" align="center"><img src="http://img6.xooimage.com/files/f/o/folder_big-30d67.gif" alt="{L_NO_NEW_POSTS}" /></td>
     <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
     <td>&nbsp;&nbsp;</td>
     <td width="20" align="center"><img src="http://img6.xooimage.com/files/f/o/folder_locked_big-30d69.gif" alt="{L_FORUM_LOCKED}" /></td>
     <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
   </tr>
 </table>


Je voudrais savoir où insérer ce code (pour rendre invisible aux invités "Qui est en ligne") mais sans modifier l'architecture global du thème:
Code: Sélectionner - Agrandir


 <!-- BEGIN switch_user_logged_in --> 
<table width="100%" cellpadding="3" cellspacing="1" border="0">
  <tr> 
    <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr> 
    <td class="row1" align="center" valign="middle" rowspan="2"><img src="http://img10.xooimage.com/files/t/e/test-2f353" alt="{L_WHO_IS_ONLINE}" /></td>
    <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}<br /><br />{L_ONLINE_EXPLAIN}</span></td>
  </tr>
   <td class="row1" align="left"><span class="gensmall">
    <b>{L_LEGEND}</b>
    <!-- BEGIN ranks_legend_row -->
    <b>::</b> <span style="font-weight:bold;color:#{ranks_legend_row.COLOR}">{ranks_legend_row.TITLE}</span> 
    <!-- END ranks_legend_row -->
    <!-- BEGIN switch_oldlegend -->
    <b>::</b> {L_WHOSONLINE_ADMIN} <b>::</b> {L_WHOSONLINE_MOD}
    <!-- END switch_oldlegend -->
    </span>
   </td>
  </tr>
</table>

<br />

<!-- BEGIN switch_birthdays -->
<table width="100%" cellpadding="3" cellspacing="1" border="0"><tr><td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_BIRTHDAYS}</span></td></tr><tr><td class="row1" valign="middle" height="28"><span class="gensmall">{L_CONGRATULATIONS_TO}: {BIRTHDAY_USER_LIST}</span></td></tr></table>
<br />
<!-- END switch_birthdays -->
<table width="100%" cellpadding="3" cellspacing="1" border="0"><tr><td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_STATISTICS}</span></td></tr><tr><td class="row1" valign="middle" height="28"><span class="gensmall">{TOTAL_POSTS} | {TOTAL_USERS} | {NEWEST_USER}</span></td></tr></table>
<!-- END switch_user_logged_in -->  


Existe-t-il un autre code (pour rendre invisible "Qui est en ligne" aux invités) pour le thème Olympus/Xooit?


Smile


Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Thu 30 Apr 2009 - 16:09    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

themalin wrote:

bonjour

encore une fois merci de lire le tuto

c'est indiqué à la fin du premier message

Mettre le qui est en ligne invisible pour les invités


mettez


 

 
Code: Sélectionner - Agrandir




<!-- IF S_USER_LEVEL == "ADMIN" || S_USER_LEVEL == "MOD" --> 
 








avant


 


Code: Sélectionner - Agrandir




<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
    <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>  









et



 


Code: Sélectionner - Agrandir




<!-- ENDIF --> 








après

 



 
Code: Sélectionner - Agrandir




 <tr> 
    <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>  






tu remplaces les if par les begin et end
_______________________


Forum
Author Message
lepsy


Offline
Guest




PostPosted: Thu 30 Apr 2009 - 16:51    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

Ce ne sont pas les mêmes codes.
(Thème Olympus/Xooit)

Si je fais comme ça dans mon index_body:
Code: Sélectionner - Agrandir

<!-- BEGIN S_USER_LEVEL == "ADMIN" || S_USER_LEVEL == "MOD" -->
<table width="100%" cellspacing="1" class="tablebg">
    <tr> 
      <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
    </tr>

et aussi comme ça:

Code: Sélectionner - Agrandir
 <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}<br /><br />{L_ONLINE_EXPLAIN}</span></td>
    </tr>
    <tr>
  <!-- END S_USER_LEVEL == "ADMIN" || S_USER_LEVEL == "MOD" -->


Rien ne se passe..


Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Thu 30 Apr 2009 - 16:52    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

http://pisp.xooit.com/index.php?theme=test

tu le fais sans doute en thème de test et pas en normal
_______________________


Forum
Author Message
lepsy


Offline
Guest




PostPosted: Thu 30 Apr 2009 - 16:56    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

J'ai changé le thème ici

Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Thu 30 Apr 2009 - 16:59    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

mets le


 
Code: Sélectionner - Agrandir
<!-- END S_USER_LEVEL == "ADMIN" || S_USER_LEVEL == "MOD" -->  
après

Code: Sélectionner - Agrandir

<td class="cat" colspan="2"><h4>Statistiques</h4></td>
</tr>
<tr>
<td class="row1" width="40"><img src="http://img3.xooimage.com/files/d/f/c/kfm_home-673b4.png" alt="Qui est en ligne ?"></td>
<td class="row1" valign="middle" width="100%"><p class="gensmall"> Nos membres ont posté un total de <b>31</b> messages | Nous avons <b>26</b> membres enregistrés | L’utilisateur enregistré le plus récent est <b><a href="profile.php?mode=viewprofile&amp;u=28">KACHA Ahmed</a></b> </p></td>

Code: Sélectionner - Agrandir

</tr>


</tbody>
par contre comme indiqué sur ton thème de test tu as bien la partie caché
_______________________


Forum
Author Message
lepsy


Offline
Guest




PostPosted: Thu 30 Apr 2009 - 17:13    Post subject: [tuto]modifier "qui est en ligne" Reply with quote

Je n'ai pas ce code:
Code: Sélectionner - Agrandir


 
<td class="cat" colspan="2"><h4>Statistiques</h4></td>
</tr>
<tr>
<td class="row1" width="40"><img src="http://img3.xooimage.com/files/d/f/c/kfm_home-673b4.png" alt="Qui est en ligne ?"></td>
<td class="row1" valign="middle" width="100%"><p class="gensmall"> Nos membres ont posté un total de <b>31</b> messages | Nous avons <b>26</b> membres enregistrés | L’utilisateur enregistré le plus récent est <b><a href="profile.php?mode=viewprofile&amp;u=28">KACHA Ahmed</a></b> </p></td>




j'ai alors mis tout comme ça:
Code: Sélectionner - Agrandir


 <!-- BEGIN S_USER_LEVEL == "ADMIN" || S_USER_LEVEL == "MOD" -->
 <table width="100%" cellspacing="1" class="tablebg">
     <tr> 
       <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
     </tr> 
   <tr> 
   <td width="40" align="center" valign="middle" class="row1"><img src="http://img3.xooimage.com/files/d/f/c/kfm_home-673b4.png" alt="{L_WHO_IS_ONLINE}" /></td>
   
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}<br /><br />{L_ONLINE_EXPLAIN}</span></td>
   </tr>
   <tr>
         <td class="row1">&nbsp;</td>
         <td class="row1" align="left"><span class="gensmall">
 {L_LEGEND}
     <!-- BEGIN ranks_legend_row -->
     <b>::</b> <span style="font-weight:bold;color:{ranks_legend_row.COLOR}">{ranks_legend_row.TITLE}</span>
     <!-- END ranks_legend_row -->
     <!-- BEGIN switch_oldlegend -->
     <b>::</b> {L_WHOSONLINE_ADMIN} <b>::</b> {L_WHOSONLINE_MOD}
     <!-- END switch_oldlegend -->
   </span></td>
   </tr>
 </table>
 
 <!--<table width="100%" cellpadding="1" cellspacing="1" border="0">
 <tr>
   <td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
 </tr>
 </table>-->
 
 <br />
 
 <!-- BEGIN switch_birthdays -->
 <table class="tablebg" width="100%" cellspacing="1">
  <tr>
   <td class="cat" colspan="2"><h4>{L_BIRTHDAYS}</h4></td>
  </tr>
  <tr>
   <td width="40" class="row1"><img src="http://img3.xooimage.com/files/d/f/c/kfm_home-673b4.png" alt="{L_BIRTHDAYS}" /></td>
   <td class="row1" width="100%" valign="middle"><p class="gensmall"> {L_CONGRATULATIONS_TO}: {BIRTHDAY_USER_LIST} </p></td>
  </tr>
 </table>
 
 <br />
 <!-- END switch_birthdays -->
 
 <table class="tablebg" width="100%" cellspacing="1">
     <tr>
       <td class="cat" colspan="2"><h4>Statistiques</h4></td>
     </tr>
     <tr>
 
       <td width="40" class="row1"><img src="http://img3.xooimage.com/files/d/f/c/kfm_home-673b4.png" alt="{L_WHO_IS_ONLINE}" /></td>
       <td class="row1" width="100%" valign="middle"><p class="gensmall"> {TOTAL_POSTS} | {TOTAL_USERS} | {NEWEST_USER} </p></td>
     </tr>
 </table>
 
 <!-- END S_USER_LEVEL == "ADMIN" || S_USER_LEVEL == "MOD" --> 


Et ça ne marche toujours pas?

Author Message
Contenu Sponsorisé





PostPosted: Today at 00:20    Post subject: [tuto]modifier "qui est en ligne"

Display posts from previous:   
Reply to topic Page 31 of 49 Goto page: <  1, 2, 330, 31, 3247, 48, 49  >




Portal | Index | Administration Panel | Create a forum | Free support forum | Free forums directory | Report a violation | Conditions générales d'utilisation
Propulsé par p h p B B © 2016 p h p B B Group |
 
© 2003-2013 Xooit.com - Contact - Mentions légales - CGU - Charte - CNIL : 1381401