It is currently Tue 27 Sep 2016 - 22:37 - 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, 330, 31, 3235, 36, 37  >

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


Joined: 19 Apr 2006
Posts: 8,897

PostPosted: Fri 31 Jul 2009 - 10:59    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

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

mets ce 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><th colspan="7" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;Sujets&nbsp;</th></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><span class="gensmall">{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>
      </table>

      <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
       <tr>
         <th colspan="3" 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>

    <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}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td> <td class="row1" align="center" valign="middle" width="20">{topicrow.TOPIC_ICON}</td> <td class="row1" width="100%"><span class="topictype">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}</span><span class="topictitle"><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="7" 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>
    <tr>
    <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></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="center"><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_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" /></td>
                    <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
                    <td>&nbsp;&nbsp;</td>
                    <td width="20" align="center"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" /></td>
                    <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</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>
              </table></td>
              <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
           </tr>
        </table>
Forum
Author Message
lou33-vm
Membre


Offline
Membre

Joined: 28 Sep 2008
Posts: 9
Niveau:
Point(s): 9
Moyenne: 1.00
Windows XP (ou plus ancien) Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...) Féminin Cancer (21juin-23juil) 鷄 Coq

PostPosted: Fri 31 Jul 2009 - 20:43    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Nickel, merci beaucoup ^^ Smile
_______________________
www.motor-cars.xooit.com


Forum
Author Message
Poers


Offline
Guest




PostPosted: Tue 4 Aug 2009 - 11:41    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Bonjour,

J'ai un petit soucis, le séparateur fonctionne mais lorsque je ferme un sujet il se retrouve dans la partie des annonces et post-it.
Je voulais savoir comment régler ce petit problème.

Merci.


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 4 Aug 2009 - 12:52    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

bonjour

tu as bien mis le code comme indiqué sans ajouter quelque chose de plus?
_______________________


Forum
Author Message
Poers


Offline
Guest




PostPosted: Tue 4 Aug 2009 - 18:14    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Non je n'ai rien rajouter d'autres, je m'y connais pas du tout en code pour les templates donc je me lancerai pas à rajouter des trucs.

Voici ce que j'ai dans le template :

<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">{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="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
    </tr>
</table>


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 4 Aug 2009 - 18:16    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

mets le template comme ça

http://xooit.xooit.com/t40996-Poster-le-contenu-d-un-template.htm

reprend celui du forum et pas ici
_______________________


Forum
Author Message
Poers


Offline
Guest




PostPosted: Tue 4 Aug 2009 - 18:20    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

J'ai fait un test vite fait là et ça devait être un bug car ça ne me le fait plus  undecided
Merci pour tout quand même Smile


Author Message
bcbender


Offline
Guest




PostPosted: Mon 24 Aug 2009 - 14:44    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Bonjour à toutes et tous

Adresse de mon forum : http://mkleague.xooit.fr/index.php
Thème graphique du forum : lpch_gta
Votre poste : Admin
Votre navigateur (Modèle et version) : Firefox
Mon problème concerne : L'aspect des post it
Êtes-vous le seul concerné par ce problème :
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 :
J'aimerais que les post it soient séparés des autres post.

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

Ps: j'ai déja essayé tout ce qui est dit dans ce topic mais ca n a pas l air de fonctionner sur le theme lpch_gta
Je vous laisse mon viewforum body

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="right" 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="92%" cellpadding="0" cellspacing="1" border="0" class="forumline" align="center">
      <tr>
       <th width="100%" height="25" class="thCornerL" nowrap="nowrap" align="center" colspan="2">&nbsp;Sous-Forums&nbsp;</th>
       <th width"105" class="thTop" nowrap="nowrap">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;{L_TOPICS}&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
       <th width="105" class="thTop" nowrap="nowrap">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{L_POSTS}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
       <th width="141" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
      </tr>
      <!-- BEGIN forumrow -->
      <tr>
       <td class="row1" align="center" valign="middle" width="25px" height="25"><table width="100%" cellpadding="0" cellspacing="-1"><tr><td><font size="1">&nbsp</font></td><td><img src="{catrow.forumrow.FORUM_FOLDER_IMG}"  alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td><td><font size="1">&nbsp</font></td></tr></table></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 valign="middle">
             <!-- END switch_ficons -->
             <span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a>
         </span><br> <span class="genmed">{catrow.forumrow.FORUM_DESC}
<!-- BEGIN switch_has_subforums --><!-- END switch_has_subforums -->
          <!-- BEGIN subforumrow -->
          <!-- 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" width="120" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
       <td class="row2" align="center" valign="middle" width="120" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
       <td class="row2" align="center" valign="middle" width="141" 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" align="center" width="92%" 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 -->
   <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}" /></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 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>
            <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>
         </tr>
      </table></td>
      <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
   </tr>
</table>


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 24 Aug 2009 - 18:48    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

bonjour

comme indiqué sur certains thèmes cela ne marche pas
le tiens en fait parti
_______________________


Forum
Author Message
ichigokurosaki92


Offline
Guest




PostPosted: Sun 30 Aug 2009 - 19:20    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Salut,

Merci pour le tuto, c'est justement ça que je cherchais ^^

Mais j'ai une tite question, je voudrais mettre la même chose aux annonces et aux post-it mais séparement.

Ici, j'ai déjà ajouté "sujets" mais pour le reste, comment faire ?

Merci


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: Sun 30 Aug 2009 - 19:22    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

bonjour

tu ne peux pas séparer les annonces et post it d'elles même
_______________________


Forum
Author Message
ichigokurosaki92


Offline
Guest




PostPosted: Sun 30 Aug 2009 - 19:31    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Et si je les sépare pas ? ^^

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: Sun 30 Aug 2009 - 19:32    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

que veux tu faire exactement

sur ce que tu montres tu as bien la séparation avec sujet marqué pour montré ou sont les sujets

tu veux changer quelque chose de plus?
_______________________


Forum
Author Message
ichigokurosaki92


Offline
Guest




PostPosted: Sun 30 Aug 2009 - 19:33    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Oui, mettre avant les annonces et post-it, la même chose que ce que j'ai fait.

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: Sun 30 Aug 2009 - 19:35    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

mets ce template pour view forum body

fais le en test pour voir





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><th colspan="7" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;Sujets&nbsp;</th></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><span class="gensmall">{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>
          </table>

          <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
           <tr>
             <th colspan="3" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;Annonce et Post-it&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>

        <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}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td> <td class="row1" align="center" valign="middle" width="20">{topicrow.TOPIC_ICON}</td> <td class="row1" width="100%"><span class="topictype">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}</span><span class="topictitle"><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="7" 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>
        <tr>
        <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></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="center"><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_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" /></td>
                        <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
                        <td>&nbsp;&nbsp;</td>
                        <td width="20" align="center"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" /></td>
                        <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</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>
                  </table></td>
                  <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
               </tr>
            </table>

_______________________


Forum
Author Message
ichigokurosaki92


Offline
Guest




PostPosted: Sun 30 Aug 2009 - 19:41    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Rho trop fort ^^ t'as fait encore mieux ^^, mais je veux pas la cellpic ^^

J'ai mis ça comme ça :
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="left" valign="middle" colspan="7"><span style="font-familie: Verdana,sans-serif;font-size: 10px;font-weight: bold;">Sujets:</span></td></tr>');
imprim = 1;
}
}
-->
</script> 
<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><th colspan="7" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;Sujets&nbsp;</th></tr>');
        imprim = 1;
        }
        }
        -->
        </script>


Author Message
Contenu Sponsorisé





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

Display posts from previous:   
Reply to topic Page 31 of 37 Goto page: <  1, 2, 330, 31, 3235, 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