It is currently Fri 30 Sep 2016 - 20:35 - créer un forum

[tuto]séparateur d'annonce et post-it

Skip to content

Post new topic Reply to topic Goto page: <  1, 2, 334, 35, 36, 37  >

[tuto]séparateur d'annonce et post-it
Author Message
Amnesia





PostPosted: Fri 4 Feb 2011 - 21:21    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

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

Bonjour j'ai un problème avec le script.

Regardez le résultat :



Voici mon template :

 
Code: Sélectionner - Agrandir
     <script language="Javascript" type="text/javascript">
    <!--
    imprim = 0;
    -->
    </script>
    <script language="Javascript" type="text/javascript">
    <!--
    function teststicky(annonce){
    var elems=document.getElementsByTagName('img');
    var issticky=false;
    for(var i=0;i<elems.length;i++){
    if(elems[i].src.search(/(announce|sticky)/g) < 0) continue;
    issticky=true;
    break;
    }
    if (issticky == true) {
    document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"></td></tr>');
    imprim = 1;
    }
    }
    -->
    </script>

<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br />
{PAGINATION}</td>
<td class="gensmall" align="right" valign="bottom">{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}<br />
<strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" width="82" height="25" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="2">&nbsp;{L_TOPICS}&nbsp;</th>
<th width="50">&nbsp;{L_REPLIES}&nbsp;</th>
<th width="100">&nbsp;{L_AUTHOR}&nbsp;</th>
<th width="50">&nbsp;{L_VIEWS}&nbsp;</th>
<th>&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN topicrow -->

    <script language="Javascript" type="text/javascript">
    <!--
    annonce = 0;
    monreg = /(folder-|folder_n|folder_h|folder_l)/g;
    zone = "{topicrow.TOPIC_FOLDER_IMG}";
    if (monreg.test(zone)) {
    annonce = 1;
    }
    if (imprim == 0 && annonce == 1) {
    teststicky(annonce);
    }
    -->
    </script>

<tr>
<td height="34" class="row1"><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="33" height="25" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" border="0" /></a></td>
<td class="row1" width="100%">{topicrow.NEWEST_POST_IMG}<span class="topictitle">{topicrow.TOPIC_TYPE}</span><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>
<td class="row2" align="center"><span class="postdetails">{topicrow.REPLIES}</span></td>
<td class="row3" align="center"><span class="postdetails">{topicrow.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center"><span class="postdetails">{topicrow.VIEWS}</span></td>
<td class="row3" align="center" nowrap="nowrap"><span class="postdetails">&nbsp;{topicrow.LAST_POST_TIME}&nbsp;<br />
{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- END topicrow -->
<!-- BEGIN switch_no_topics -->
<tr>
<td class="row1" colspan="6" align="center">{L_NO_TOPICS}</td>
</tr>
<!-- END switch_no_topics -->
<tr>
<td class="cat" align="center" colspan="6">
<form method="post" action="{S_POST_DAYS_ACTION}">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="genmed">{L_DISPLAY_TOPICS}:&nbsp;</td>
<td>{S_SELECT_TOPIC_DAYS}&nbsp;&nbsp;</td>
<td><input type="submit" class="catbutton" value="{L_GO}" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" width="82" height="25" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top">{PAGINATION}<br />
<br />
{JUMPBOX}<br />
</td>
<td class="gensmall" align="right" valign="top"><strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong><br />
{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}
</td>
</tr>
</table>
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
<tr>
<td valign="top">
<table border="0" cellspacing="3" cellpadding="0">
<tr>
<td><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" width="33" height="25" /></td>
<td class="gensmall">&nbsp;{L_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" width="33" height="25" /></td>
<td class="gensmall">&nbsp;{L_NO_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" title="{L_ANNOUNCEMENT}" width="33" height="25" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>
</tr>
<tr>
<td><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" title="{L_NEW_POSTS_HOT}" width="33" height="25" /></td>
<td class="gensmall">{L_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" title="{L_NO_NEW_POSTS_HOT}" width="33" height="25" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" title="{L_STICKY}" width="33" height="25" /></td>
<td class="gensmall">{L_STICKY}</td>
</tr>
<tr>
<td><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" title="{L_NEW_POSTS_LOCKED}" width="33" height="25" /></td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" title="{L_NO_NEW_POSTS_LOCKED}" width="33" height="25" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td align="right" valign="top"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>




Merci pour votre aide.
Author Message
Amnesia


Offline
Guest




PostPosted: Sun 6 Feb 2011 - 15:25    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Y a t-il une solution ou alors c'est mon thème qui n'est pas compatible?

Author Message
Amnesia


Offline
Guest




PostPosted: Tue 8 Feb 2011 - 09:59    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Donnez moi vos avis, je prends toutes les solutions Smile

Author Message
Amnesia


Offline
Guest




PostPosted: Wed 9 Feb 2011 - 17:54    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Je relance..

Author Message
ba'al42
Membre


Offline
Membre

Joined: 11 Feb 2011
Posts: 11
Niveau:
Point(s): 11
Moyenne: 1.00
Windows XP (ou plus ancien) Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...) Masculin

PostPosted: Fri 11 Feb 2011 - 10:57    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Bonjour a tous,

Notre Thème: Subsilver

Template:
viewforum_body.tpl sans modification (du tuto)

Code: Sélectionner - Agrandir


 <form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
 <tr> 
   <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
   <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
 </tr>
 <tr> 
   <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
   <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
   <td align="left" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
 </tr>
  </table>

<!-- BEGIN catrow -->
<table width="100%" cellpadding="2" cellspacing="1" border="0">
  <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 forumrow -->
  <tr> 
 <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}"  alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
 <td class="row1" width="100%" height="50">
         <!-- BEGIN switch_ficons -->
         <table style="padding:0;margin:0;" cellspacing="0" cellpadding="0"><tr><td style="width:{FICONSW}px;padding:3px">{catrow.forumrow.FORUM_ICON}</td><td>
         <!-- END switch_ficons -->
         <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}
          <!-- BEGIN switch_has_subforums -->
          <br />
          <!-- END switch_has_subforums -->
          <!-- BEGIN subforumrow -->
          <img src="{catrow.forumrow.subforumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.subforumrow.L_FORUM_FOLDER_ALT}" /><b><a href="{catrow.forumrow.subforumrow.U_VIEWFORUM}" class="postlink">{catrow.forumrow.subforumrow.FORUM_NAME}</a></b> 
          <!-- END subforumrow -->
          <br />
   </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span>
          <!-- BEGIN switch_ficons -->
          </td></tr></table>
          <!-- END switch_ficons -->
</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 -->
</table>
<br />
<!-- END catrow -->

  <table border="0" cellpadding="4" cellspacing="1" width="100%">
 <tr> 
   <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
   <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
   <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
   <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
   <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
 </tr>
 <!-- BEGIN topicrow -->
 <tr> 
   <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
   <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle" name="{topicrow.TOPIC_TYPE}">
{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
  {topicrow.GOTO_PAGE}</span></td>
   <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
   <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
   <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
   <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
 </tr>
 <!-- END topicrow -->
 <!-- BEGIN switch_no_topics -->
 <tr> 
   <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
 </tr>
 <!-- END switch_no_topics -->
 <tr> 
   <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="genmed">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp; 
  <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
  </span></td>
 </tr>
  </table>

  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
 <tr> 
   <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
   <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span> 
  </td>
 </tr>
 <tr>
   <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
 </tr>
  </table>
</form>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
 <td align="right">{JUMPBOX}</td>
  </tr>
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
 <tr>
  <td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
   <tr>
    <td width="20" align="left"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
    <td class="gensmall">{L_NEW_POSTS}</td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
    <td class="gensmall">{L_NO_NEW_POSTS}</td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" /></td>
    <td class="gensmall">{L_ANNOUNCEMENT}</td>
   </tr>
   <tr> 
    <td width="20" align="center"><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" /></td>
    <td class="gensmall">{L_NEW_POSTS_HOT}</td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" /></td>
    <td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" /></td>
    <td class="gensmall">{L_STICKY}</td>
   </tr>
   <tr>
    <td class="gensmall"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" /></td>
    <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
    <td>&nbsp;&nbsp;</td>
    <td class="gensmall"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" /></td>
    <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
   </tr>
  </table></td>
  <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
 </tr>
</table>





j'ai beau essayé de suivre le Tuto mais rien ne marche.
Quand je rentre les nouveaux codes les cases d'annonces, post-il s'agrandisse au lieu de se séparer .

Après modification



Avant modification:



Template avec modification


Code: Sélectionner - Agrandir


<script language="Javascript" type="text/javascript">
<!--
imprim = 0;
-->
</script>
<script language="Javascript" type="text/javascript">
<!--
function teststicky(annonce){
var elems=document.getElementsByTagName('img');
var issticky=false;
for(var i=0;i<elems.length;i++){
if(elems[i].src.search(/(announce|sticky)/g) < 0) continue;
issticky=true;
break;
}
if (issticky == true) {
document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"></td></tr>');
imprim = 1;
}
}
-->
</script>  
 <form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
 <tr> 
   <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
   <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
 </tr>
 <tr> 
   <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
   <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
   <td align="left" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
 </tr>
  </table>

<!-- BEGIN catrow -->
<table width="100%" cellpadding="2" cellspacing="1" border="0">
  <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 forumrow -->
  <tr> 
 <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}"  alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
 <td class="row1" width="100%" height="50">
         <!-- BEGIN switch_ficons -->
         <table style="padding:0;margin:0;" cellspacing="0" cellpadding="0"><tr><td style="width:{FICONSW}px;padding:3px">{catrow.forumrow.FORUM_ICON}</td><td>
         <!-- END switch_ficons -->
         <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}
          <!-- BEGIN switch_has_subforums -->
          <br />
          <!-- END switch_has_subforums -->
          <!-- BEGIN subforumrow -->
          <img src="{catrow.forumrow.subforumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.subforumrow.L_FORUM_FOLDER_ALT}" /><b><a href="{catrow.forumrow.subforumrow.U_VIEWFORUM}" class="postlink">{catrow.forumrow.subforumrow.FORUM_NAME}</a></b> 
          <!-- END subforumrow -->
          <br />
   </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span>
          <!-- BEGIN switch_ficons -->
          </td></tr></table>
          <!-- END switch_ficons -->
</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 -->
</table>
<br />
<!-- END catrow -->

  <table border="0" cellpadding="4" cellspacing="1" width="100%">
 <tr> 
   <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
   <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
   <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
   <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
   <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
 </tr>
 <!-- BEGIN topicrow -->
<script language="Javascript" type="text/javascript">
<!--
annonce = 0;
monreg = /(folder-|folder_n|folder_h|folder_l)/g;
zone = "{topicrow.TOPIC_FOLDER_IMG}";
if (monreg.test(zone)) {
annonce = 1;
}
if (imprim == 0 && annonce == 1) {
teststicky(annonce);
}
-->
</script> 
 <tr> 
   <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
   <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle" name="{topicrow.TOPIC_TYPE}">
{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
  {topicrow.GOTO_PAGE}</span></td>
   <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
   <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
   <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
   <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
 </tr>
 <!-- END topicrow -->
 <!-- BEGIN switch_no_topics -->
 <tr> 
   <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
 </tr>
 <!-- END switch_no_topics -->
 <tr> 
   <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="genmed">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp; 
  <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
  </span></td>
 </tr>
  </table>

  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
 <tr> 
   <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
   <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span> 
  </td>
 </tr>
 <tr>
   <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
 </tr>
  </table>
</form>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
 <td align="right">{JUMPBOX}</td>
  </tr>
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
 <tr>
  <td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
   <tr>
    <td width="20" align="left"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
    <td class="gensmall">{L_NEW_POSTS}</td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
    <td class="gensmall">{L_NO_NEW_POSTS}</td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" /></td>
    <td class="gensmall">{L_ANNOUNCEMENT}</td>
   </tr>
   <tr> 
    <td width="20" align="center"><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" /></td>
    <td class="gensmall">{L_NEW_POSTS_HOT}</td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" /></td>
    <td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" /></td>
    <td class="gensmall">{L_STICKY}</td>
   </tr>
   <tr>
    <td class="gensmall"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" /></td>
    <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
    <td>&nbsp;&nbsp;</td>
    <td class="gensmall"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" /></td>
    <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
   </tr>
  </table></td>
  <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
 </tr>
</table>




Merci d'avance pour votre aide. Wink


Forum
Author Message
Amnesia


Offline
Guest




PostPosted: Sun 13 Feb 2011 - 12:14    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Je relance ma demande d'aide..

Bonjour j'ai un problème avec le script.

Regardez le résultat :



Voici mon template :

 
Code: Sélectionner - Agrandir

     <script language="Javascript" type="text/javascript">
    <!--
    imprim = 0;
    -->
    </script>
    <script language="Javascript" type="text/javascript">
    <!--
    function teststicky(annonce){
    var elems=document.getElementsByTagName('img');
    var issticky=false;
    for(var i=0;i<elems.length;i++){
    if(elems[i].src.search(/(announce|sticky)/g) < 0) continue;
    issticky=true;
    break;
    }
    if (issticky == true) {
    document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"></td></tr>');
    imprim = 1;
    }
    }
    -->
    </script> 

<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br />
{PAGINATION}</td>
<td class="gensmall" align="right" valign="bottom">{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}<br />
<strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" width="82" height="25" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="2">&nbsp;{L_TOPICS}&nbsp;</th>
<th width="50">&nbsp;{L_REPLIES}&nbsp;</th>
<th width="100">&nbsp;{L_AUTHOR}&nbsp;</th>
<th width="50">&nbsp;{L_VIEWS}&nbsp;</th>
<th>&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN topicrow -->

    <script language="Javascript" type="text/javascript">
    <!--
    annonce = 0;
    monreg = /(folder-|folder_n|folder_h|folder_l)/g;
    zone = "{topicrow.TOPIC_FOLDER_IMG}";
    if (monreg.test(zone)) {
    annonce = 1;
    }
    if (imprim == 0 && annonce == 1) {
    teststicky(annonce);
    }
    -->
    </script>

<tr>
<td height="34" class="row1"><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="33" height="25" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" border="0" /></a></td>
<td class="row1" width="100%">{topicrow.NEWEST_POST_IMG}<span class="topictitle">{topicrow.TOPIC_TYPE}</span><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>
<td class="row2" align="center"><span class="postdetails">{topicrow.REPLIES}</span></td>
<td class="row3" align="center"><span class="postdetails">{topicrow.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center"><span class="postdetails">{topicrow.VIEWS}</span></td>
<td class="row3" align="center" nowrap="nowrap"><span class="postdetails">&nbsp;{topicrow.LAST_POST_TIME}&nbsp;<br />
{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- END topicrow -->
<!-- BEGIN switch_no_topics -->
<tr>
<td class="row1" colspan="6" align="center">{L_NO_TOPICS}</td>
</tr>
<!-- END switch_no_topics -->
<tr>
<td class="cat" align="center" colspan="6">
<form method="post" action="{S_POST_DAYS_ACTION}">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="genmed">{L_DISPLAY_TOPICS}:&nbsp;</td>
<td>{S_SELECT_TOPIC_DAYS}&nbsp;&nbsp;</td>
<td><input type="submit" class="catbutton" value="{L_GO}" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" width="82" height="25" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top">{PAGINATION}<br />
<br />
{JUMPBOX}<br />
</td>
<td class="gensmall" align="right" valign="top"><strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong><br />
{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}
</td>
</tr>
</table>
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
<tr>
<td valign="top">
<table border="0" cellspacing="3" cellpadding="0">
<tr>
<td><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" width="33" height="25" /></td>
<td class="gensmall">&nbsp;{L_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" width="33" height="25" /></td>
<td class="gensmall">&nbsp;{L_NO_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" title="{L_ANNOUNCEMENT}" width="33" height="25" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>
</tr>
<tr>
<td><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" title="{L_NEW_POSTS_HOT}" width="33" height="25" /></td>
<td class="gensmall">{L_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" title="{L_NO_NEW_POSTS_HOT}" width="33" height="25" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" title="{L_STICKY}" width="33" height="25" /></td>
<td class="gensmall">{L_STICKY}</td>
</tr>
<tr>
<td><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" title="{L_NEW_POSTS_LOCKED}" width="33" height="25" /></td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" title="{L_NO_NEW_POSTS_LOCKED}" width="33" height="25" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td align="right" valign="top"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>





Merci pour votre aide.


Author Message
ba'al42
Membre


Offline
Membre

Joined: 11 Feb 2011
Posts: 11
Niveau:
Point(s): 11
Moyenne: 1.00
Windows XP (ou plus ancien) Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...) Masculin

PostPosted: Wed 23 Feb 2011 - 21:09    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

S'il vous plait j'ai besoin d'aide. Crying or Very sad

http://xooit.xooit.com/p493553.htm


Forum
Author Message
Amnesia


Offline
Guest




PostPosted: Thu 24 Feb 2011 - 20:36    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

ba'al42 wrote:

S'il vous plait j'ai besoin d'aide. Crying or Very sad

http://xooit.xooit.com/p493553.htm

De même.


Author Message
Sploutch
Membre


Offline
Membre

Joined: 02 Jan 2006
Posts: 584
Niveau:
Point(s): 632
Moyenne: 1.08
Masculin

PostPosted: Sat 26 Feb 2011 - 15:38    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Bonjour,
Cela est étrange d'après vos modifications, cela devrait fonctionner !
Avez vous essayez de le faire sur un autre thème de test ?
Cordialement.
ba'al42 wrote:
Bonjour a tous,

Notre Thème: Subsilver

Template:
viewforum_body.tpl sans modification (du tuto)

{{{Spoiler}}}

j'ai beau essayé de suivre le Tuto mais rien ne marche.
Quand je rentre les nouveaux codes les cases d'annonces, post-il s'agrandisse au lieu de se séparer .

Après modification



Avant modification:



Template avec modification

{{{Spoiler}}}

Merci d'avance pour votre aide. Wink

_______________________
1 tour pour la forme.1 tour pour l'esprit.

| Le site pour les Filles | Me Soutenir | Smileys Fun | Mes Tutoriels | Mon formulaire D'aide | No Support MP |


Forum
Author Message
ba'al42
Membre


Offline
Membre

Joined: 11 Feb 2011
Posts: 11
Niveau:
Point(s): 11
Moyenne: 1.00
Windows XP (ou plus ancien) Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...) Masculin

PostPosted: Mon 28 Feb 2011 - 14:32    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Sploutch wrote:

Bonjour,
Cela est étrange d'après vos modifications, cela devrait fonctionner !
Avez vous essayez de le faire sur un autre thème de test ?
Cordialement.
ba'al42 wrote:

Bonjour a tous,

Notre Thème: Subsilver

Template:
viewforum_body.tpl sans modification (du tuto)

{{{Spoiler}}}

j'ai beau essayé de suivre le Tuto mais rien ne marche.
Quand je rentre les nouveaux codes les cases d'annonces, post-il s'agrandisse au lieu de se séparer .

Après modification



Avant modification:



Template avec modification

{{{Spoiler}}}

Merci d'avance pour votre aide. Wink


J'ai essayé sur d'autre thème test, ça ne marche pas.


Forum
Author Message
midaros


Offline
Guest




PostPosted: Wed 16 Mar 2011 - 15:36    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Bonjour à toutes et tous,

Adresse de mon forum : http://pweclipse.ogameteam.com 
Thème graphique du forum :  Flower of evil
Votre poste : Admin fondateur
Votre navigateur (Modèle et version) :  Mozilla Firefox
Mon problème concerne :  séparateur post-it et annonce du reste
Êtes-vous le seul concerné par ce problème : Non  
Depuis quand dure le bug/problème constaté ? :  depuis la création du forum
Images/Screens relatifs au problème :  
Description détaillée du problème :  Je me permet de publier ce post car j'ai vue qu'il y a diverse post a ce sujet, mais aucun de fonctionne avec mon thème, et aillant travailler énormément sur mon thème, je ne souhaite pas changer mon thème. J'aimerais savoir si certains ont trouvés le templars dont il faut faire usage pour séparer les post-it et annonce des autres messages normaux.

Merci d'avance pour l'aide que vous saurez m'apporter.


Author Message
Amnesia


Offline
Guest




PostPosted: Thu 24 Mar 2011 - 01:13    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Bonjour,

je relance ma demande.

Argument de relance : 1mois et demi sans réponse.
Problème : J'ai un problème avec le script.

Regardez le résultat :



Voici mon template :

 
Code: Sélectionner - Agrandir


     <script language="Javascript" type="text/javascript">
    <!--
    imprim = 0;
    -->
    </script>
    <script language="Javascript" type="text/javascript">
    <!--
    function teststicky(annonce){
    var elems=document.getElementsByTagName('img');
    var issticky=false;
    for(var i=0;i<elems.length;i++){
    if(elems[i].src.search(/(announce|sticky)/g) < 0) continue;
    issticky=true;
    break;
    }
    if (issticky == true) {
    document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"></td></tr>');
    imprim = 1;
    }
    }
    -->
    </script> 

<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br />
{PAGINATION}</td>
<td class="gensmall" align="right" valign="bottom">{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}<br />
<strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" width="82" height="25" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="2">&nbsp;{L_TOPICS}&nbsp;</th>
<th width="50">&nbsp;{L_REPLIES}&nbsp;</th>
<th width="100">&nbsp;{L_AUTHOR}&nbsp;</th>
<th width="50">&nbsp;{L_VIEWS}&nbsp;</th>
<th>&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN topicrow -->

    <script language="Javascript" type="text/javascript">
    <!--
    annonce = 0;
    monreg = /(folder-|folder_n|folder_h|folder_l)/g;
    zone = "{topicrow.TOPIC_FOLDER_IMG}";
    if (monreg.test(zone)) {
    annonce = 1;
    }
    if (imprim == 0 && annonce == 1) {
    teststicky(annonce);
    }
    -->
    </script>

<tr>
<td height="34" class="row1"><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="33" height="25" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" border="0" /></a></td>
<td class="row1" width="100%">{topicrow.NEWEST_POST_IMG}<span class="topictitle">{topicrow.TOPIC_TYPE}</span><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>
<td class="row2" align="center"><span class="postdetails">{topicrow.REPLIES}</span></td>
<td class="row3" align="center"><span class="postdetails">{topicrow.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center"><span class="postdetails">{topicrow.VIEWS}</span></td>
<td class="row3" align="center" nowrap="nowrap"><span class="postdetails">&nbsp;{topicrow.LAST_POST_TIME}&nbsp;<br />
{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- END topicrow -->
<!-- BEGIN switch_no_topics -->
<tr>
<td class="row1" colspan="6" align="center">{L_NO_TOPICS}</td>
</tr>
<!-- END switch_no_topics -->
<tr>
<td class="cat" align="center" colspan="6">
<form method="post" action="{S_POST_DAYS_ACTION}">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="genmed">{L_DISPLAY_TOPICS}:&nbsp;</td>
<td>{S_SELECT_TOPIC_DAYS}&nbsp;&nbsp;</td>
<td><input type="submit" class="catbutton" value="{L_GO}" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" width="82" height="25" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top">{PAGINATION}<br />
<br />
{JUMPBOX}<br />
</td>
<td class="gensmall" align="right" valign="top"><strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong><br />
{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}
</td>
</tr>
</table>
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
<tr>
<td valign="top">
<table border="0" cellspacing="3" cellpadding="0">
<tr>
<td><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" width="33" height="25" /></td>
<td class="gensmall">&nbsp;{L_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" width="33" height="25" /></td>
<td class="gensmall">&nbsp;{L_NO_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" title="{L_ANNOUNCEMENT}" width="33" height="25" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>
</tr>
<tr>
<td><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" title="{L_NEW_POSTS_HOT}" width="33" height="25" /></td>
<td class="gensmall">{L_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" title="{L_NO_NEW_POSTS_HOT}" width="33" height="25" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" title="{L_STICKY}" width="33" height="25" /></td>
<td class="gensmall">{L_STICKY}</td>
</tr>
<tr>
<td><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" title="{L_NEW_POSTS_LOCKED}" width="33" height="25" /></td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" title="{L_NO_NEW_POSTS_LOCKED}" width="33" height="25" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td align="right" valign="top"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>






Merci pour votre aide.


Author Message
Zoomy
Membre


Offline
Membre

Joined: 22 Apr 2011
Posts: 4
Niveau:
Point(s): 5
Moyenne: 1.25
Windows Vista ou 7 Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...) Masculin

PostPosted: Sat 14 May 2011 - 14:08    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Je relance le sujet, peut être que j'ai fait une erreur, mais j'ai beau essayer plusieurs thèmes de test ça ne fonctionne pas.
Mon thème actuel est whisper. merci de votre aide.
Voici le code :
Code: Sélectionner - Agrandir

    <script language="Javascript" type="text/javascript">
    <!--
    imprim = 0;
    -->
    </script>
    <script language="Javascript" type="text/javascript">
    <!--
    function teststicky(annonce){
    var elems=document.getElementsByTagName('img');
    var issticky=false;
    for(var i=0;i<elems.length;i++){
    if(elems[i].src.search(/(announce|sticky)/g) < 0) continue;
    issticky=true;
    break;
    }
    if (issticky == true) {
    document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"></td></tr>');
    imprim = 1;
    }
    }
    -->
    </script> 
<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
    <tr> 
      <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
      <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
    </tr>
    <tr> 
      <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
      <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
      <td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
    </tr>
<!-- IF S_USER_LEVEL == "ADMIN" || S_USER_LEVEL == "MOD" -->{TOPIC_ICON} <!-- ENDIF --> 
  </table>

  <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
    <tr> 
      <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
      <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
      <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
      <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
      <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
    </tr>
    <!-- BEGIN topicrow -->
    <script language="Javascript" type="text/javascript">
    <!--
    annonce = 0;
    monreg = /(folder-|folder_n|folder_h|folder_l)/g;
    zone = "{topicrow.TOPIC_FOLDER_IMG}";
    if (monreg.test(zone)) {
    annonce = 1;
    }
    if (imprim == 0 && annonce == 1) {
    teststicky(annonce);
    }
    -->
    </script>
    
    <tr> 
      <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
      <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
        {topicrow.GOTO_PAGE}</span></td>
      <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
      <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
      <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
      <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
    </tr>
    <!-- END topicrow -->
    <!-- BEGIN switch_no_topics -->
    <tr> 
      <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
    </tr>
    <!-- END switch_no_topics -->
    <tr> 
      <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="genmed">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp; 
        <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
        </span></td>
    </tr>
  </table>

  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
    <tr> 
      <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
      <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
      <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span> 
        </td>
    </tr>
    <tr>
      <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
    </tr>
  </table>
</form>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td align="right">{JUMPBOX}</td>
  </tr>
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
    <tr>
        <td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
            <tr>
                <td width="20" align="left"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" width="21" height="23" /></td>
                <td class="gensmall">{L_NEW_POSTS}</td>
                <td>&nbsp;&nbsp;</td>
                <td width="20" align="center"><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" width="21" height="23" /></td>
                <td class="gensmall">{L_NO_NEW_POSTS}</td>
                <td>&nbsp;&nbsp;</td>
                <td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" width="21" height="23" /></td>
                <td class="gensmall">{L_ANNOUNCEMENT}</td>
            </tr>
            <tr> 
                <td width="20" align="center"><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" width="21" height="23" /></td>
                <td class="gensmall">{L_NEW_POSTS_HOT}</td>
                <td>&nbsp;&nbsp;</td>
                <td width="20" align="center"><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" width="21" height="23" /></td>
                <td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
                <td>&nbsp;&nbsp;</td>
                <td width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" width="21" height="23" /></td>
                <td class="gensmall">{L_STICKY}</td>
            </tr>
            <tr>
                <td class="gensmall"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" width="21" height="23" /></td>
                <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
                <td>&nbsp;&nbsp;</td>
                <td class="gensmall"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" width="21" height="23" /></td>
                <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
            </tr>
        </table></td>
        <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
    </tr>
</table>
 


Forum
Author Message
m4rie23


Offline
Guest




PostPosted: Sun 15 May 2011 - 03:29    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Bonjour à toutes et tous,

Adresse de mon forum : http://  lesindignes.leforum.eu
Thème graphique du forum :  subyellow
Votre poste : Admin fondateur
Votre navigateur (Modèle et version) :  IE 9 ,
Mon problème concerne :  séparateur de annonce et sujet
Êtes-vous le seul concerné par ce problème : Non  
Depuis quand dure le bug/problème constaté ? : aujourd'hui
Images/Screens relatifs au problème : 

Description détaillée du problème : j'ai fait le tuto du début .. et sa ne fonctionne pas .. J'ai fait plusieurs test , j'ai recommencer a zéro avec le thème SUBYELLOW ; et tout fonctionnais mais quand j'ai changer mes îcone (nouveau message , message lu ) sa ne fonctionne plus ..
mes icone je l'ai change a partir de panneau d'adim. , theme , Modifié les imagne ..

Merci d'avance pour l'aide que vous saurez m'apporter.

se que sa me donne ,



mon template changer

      <script language="Javascript" type="text/javascript">
<!--
imprim = 0;
-->
</script>
<script language="Javascript" type="text/javascript">
<!--
function teststicky(annonce){
var elems=document.getElementsByTagName('img');
var issticky=false;
for(var i=0;i<elems.length;i++){
if(elems.src.search(/(announce|sticky)/g) < 0) continue;
issticky=true;
break;
}
if (issticky == true) {
document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"></td></tr>');
imprim = 1;
}
}
-->
</script> 

<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
    <tr>
      <td align="left" valign="bottom" colspan="2">{FORUM_NAME}
<span class="gensmall">{L_MODERATOR}: {MODERATORS}

{LOGGED_IN_USER_LIST}
</span></td>
      <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall">{PAGINATION}</span></td>
    </tr>
    <tr>
      <td align="left" valign="middle" width="50">
</td>
      <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;{L_INDEX} -> {FORUM_NAME}</span></td>
      <td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall">{L_MARK_TOPICS_READ}</span></td>
    </tr>
  </table>

  <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
    <tr>
      <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
      <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
      <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
      <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
      <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
    </tr>
    <!-- BEGIN topicrow -->

<script language="Javascript" type="text/javascript">
<!--
annonce = 0;
monreg = /(folder-|folder_n|folder_h|folder_l)/g;
zone = "{topicrow.TOPIC_FOLDER_IMG}";
if (monreg.test(zone)) {
annonce = 1;
}
if (imprim == 0 && annonce == 1) {
teststicky(annonce);
}
-->
</script>


    <tr>
      <td class="row1" align="center" valign="middle" width="20">
</td>
      <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}</span><span class="gensmall">

        {topicrow.GOTO_PAGE}</span></td>
      <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
      <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
      <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
      <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}
{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
    </tr>
    <!-- END topicrow -->
    <!-- BEGIN switch_no_topics -->
    <tr>
      <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
    </tr>
    <!-- END switch_no_topics -->
    <tr>
      <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="genmed">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;
        <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
        </span></td>
    </tr>
  </table>

  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
    <tr>
      <td align="left" valign="middle" width="50">
</td>
      <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;{L_INDEX} -> {FORUM_NAME}</span></td>
      <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span>
<span class="nav">{PAGINATION}</span>
        </td>
    </tr>


    <tr>


      <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>


    </tr>
  </table>
</form>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right">{JUMPBOX}</td>


  </tr>
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
    <tr>
        <td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
            <tr>
                <td width="20" align="left">
</td>
                <td class="gensmall">{L_NEW_POSTS}</td>
                <td>&nbsp;&nbsp;</td>
                <td width="20" align="center">
</td>
                <td class="gensmall">{L_NO_NEW_POSTS}</td>
                <td>&nbsp;&nbsp;</td>
                <td width="20" align="center">
</td>
                <td class="gensmall">{L_ANNOUNCEMENT}</td>
            </tr>
            <tr>
                <td width="20" align="center">
</td>
                <td class="gensmall">{L_NEW_POSTS_HOT}</td>
                <td>&nbsp;&nbsp;</td>
                <td width="20" align="center">
</td>
                <td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
                <td>&nbsp;&nbsp;</td>
                <td width="20" align="center">
</td>
                <td class="gensmall">{L_STICKY}</td>
            </tr>
            <tr>
                <td class="gensmall">
</td>
                <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
                <td>&nbsp;&nbsp;</td>

                <td class="gensmall">
</td>
                <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>


            </tr>

        </table></td>


        <td align="left">





<span class="gensmall">

{S_AUTH_LIST}</span></td>
    </tr>
</table>
   




Mercii ..


Author Message
m4rie23


Offline
Guest




PostPosted: Sun 15 May 2011 - 20:15    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Aider moi SVP Sad

Author Message
Sadneess


Offline
Guest




PostPosted: Sat 28 May 2011 - 12:09    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Bonjour, je suis Administrateur d'un forum, et j'aimerais séparer les annonces/postits des sujets.
Mon thème est le suivant: dgfgw
J'ai suivis le tuto, et rien ne marche. J'ai lu aussi une vingtaine de pages sur ces 35, j'ai essayé des tas de choses et sans aucun changements, ou des changements néfaste ( aggrandissement des cases, dimininution des icones...)

Merci de votre attention.


Author Message
Contenu Sponsorisé





PostPosted: Today at 20:35    Post subject: [tuto]séparateur d'annonce et post-it

Display posts from previous:   
Reply to topic Page 35 of 37 Goto page: <  1, 2, 334, 35, 36, 37  >




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