It is currently Sat 1 Oct 2016 - 19:10 - 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, 335, 36, 37  >

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


Offline
Membre

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

PostPosted: Wed 4 Apr 2007 - 11:27    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

PublicitéSupprimer les publicités ?
  • Titre:séparateur d'annonce et post-it!
  • Version:1.0

  • Auteur:Gef0301
  • Contact Auteur: Messagerie privé
  • Source:gef0301

  • Description:bonjour,
    pour ceux que ça interresse voilà la transposition en tuto du séparateur de post-it et annonce fait à partir de ce message
    http://xooit.xooit.com/p142667.htm


  • Niveau d'installation: moyen,
  • Temps d'installation:5 minutes
  • Nombre de template a modifié :1 seul

  • Fonctionne sur les thémes :Attention ce tuto ne marche pas sur tous les thèmes
  • Test effectué sur :xooit, phpbb,

  • Defaut :Il ne marche pas sur tous les thèmes,vous pouvez avoir une petite bande blanche au niveau des icones de sujets
  • exemple :http://themalin.xooit.fr




  • Tout d'abord,faites
  • panneau admin
  • thème normal
  • modifier les templates
  • sauvegarder viewforum_body.tpl
  • ouvrir viewforum_body.tpl
  • tout au début, ajouter:



  • Placer ce code au début :

    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> 


  • Chercher et ajouter après :

    Code: Sélectionner - Agrandir

    <!-- BEGIN topicrow -->



    Code: Sélectionner - Agrandir

    <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>






Quote:
Astuce pour augmenter la distance :


  • Chercher dans le premier code :

    Code: Sélectionner - Agrandir

    document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"></td></tr>');


  • Et mettez des br comme ceci :

    Code: Sélectionner - Agrandir

    document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"><br><br></td></tr>');




Quote:

Corriger le problème de la case icone de sujets quand elle est blanche :


  • Dans le template cherchez :


    Code: Sélectionner - Agrandir


    <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>



  • Ajoutez juste après :


    Code: Sélectionner - Agrandir


    <td class="row1" align="center" valign="middle" width="20">{topicrow.TOPIC_ICON}</td>





Fin du tuto
_______________________


Last edited by themalin on Wed 23 Jan 2008 - 10:27; edited 1 time in total
Forum
Author Message
Big Santos
Membre


Offline
Membre

Joined: 22 Feb 2007
Posts: 39
Point(s): 39
Moyenne: 1.00
Windows Vista ou 7 Masculin Taureau (20avr-20mai) 蛇 Serpent

PostPosted: Wed 4 Apr 2007 - 11:45    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Moi j'aime pas trop ce tuto je préfère le séparateur des sous-forums.
Sinon c'est bien expliqué.
_______________________



Forum
Author Message
Raph061


Offline
Guest




PostPosted: Fri 27 Apr 2007 - 18:22    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

bonjours j'ai fais toutes les modifications mais je ne vois toujours pas de séparation Sad

voici mon 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">[url={U_VIEW_FORUM}]{FORUM_NAME}[/url]
<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">[url={U_POST_NEW_TOPIC}]<img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" />[/url]</td>
<td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;[url={U_INDEX}]{L_INDEX}[/url] -> [url={U_VIEW_FORUM}]{FORUM_NAME}[/url]</span></td>
<td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall">[url={U_MARK_READ}]{L_MARK_TOPICS_READ}[/url]</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"><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}[url={topicrow.U_VIEW_TOPIC}]{topicrow.TOPIC_TITLE}[/url]</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">[url={U_POST_NEW_TOPIC}]<img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" />[/url]</td>
<td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;[url={U_INDEX}]{L_INDEX}[/url] -> [url={U_VIEW_FORUM}]{FORUM_NAME}[/url]</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"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" width="40" height="30" /></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="40" height="30" /></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="40" height="30" /></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="40" height="30" /></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="40" height="30" /></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="40" height="30" /></td>
<td class="gensmall">{L_STICKY}</td>
</tr>
<tr>
<td class="gensmall"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" width="40" height="30" /></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="40" height="30" /></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>


Ps : j'ai le theme Darkage


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: Fri 27 Apr 2007 - 18:33    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

bonjour
je viens de tester chez moi ça marche bien remplaces ton template par celui là

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>
  </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="40" height="30" /></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="40" height="30" /></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="40" height="30" /></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="40" height="30" /></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="40" height="30" /></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="40" height="30" /></td>
            <td class="gensmall">{L_STICKY}</td>
         </tr>
         <tr>
            <td class="gensmall"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" width="40" height="30" /></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="40" height="30" /></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
Raph061


Offline
Guest




PostPosted: Fri 27 Apr 2007 - 18:44    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

J'ai remplacé... et toujours rien Sad

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: Fri 27 Apr 2007 - 18:52    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

chez moi ça marche très bien

http://themalin.xooit.fr/f1-themalin.htm?theme=test

sinon tu as peut etre un autre script qui bloque celui là
_______________________


Forum
Author Message
Raph061


Offline
Guest




PostPosted: Fri 27 Apr 2007 - 18:54    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

serais ce possible que tu regarde dans le panno d'admin si tu t'envoi les coordonés par MP s'il te plait ??

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: Fri 27 Apr 2007 - 18:59    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

il ne faut pas donner ses mdp et login à personne
sinon essayes sur ton thème de test avec le même thème darkages
ensuite sur ton thème normal retire les script que tu as mis piur voir si ça marche ça doit venir de là
_______________________


Forum
Author Message
Raph061


Offline
Guest




PostPosted: Fri 27 Apr 2007 - 19:06    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

désolé j'ai pas trés bien compris ce que tu veus dire.. :s

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: Fri 27 Apr 2007 - 19:13    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

sur ton thème de test installes darkages ensuite fais les modification pour avoir la séparation et si ça marche ça veut dire que sur ton thème normal tu as un script qui bloque la modification donc dans ce cas il faudra l'enlver ce que tu as rajouté en script html ou javascript
_______________________


Forum
Author Message
Fifa07-cup


Offline
Guest




PostPosted: Fri 1 Jun 2007 - 20:53    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Est ce que sa separe d'une ligne ou que se soit dans une sorte de mini autre categori ?

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: Sat 2 Jun 2007 - 17:18    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

bonjour

regarde ici pour voir comme c'est

http://themalin.xooit.fr/f1-themalin.htm?theme=test
_______________________


Forum
Author Message
nico39


Offline
Guest




PostPosted: Sat 9 Jun 2007 - 17:29    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Bonjour,
j'ai un petit problème,ca ne fais pas vraiment ce qui est prévu!
Voici ce qu'il y a sur mon 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">[url={U_VIEW_FORUM}]{FORUM_NAME}[/url]
<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" colspan="2">[url={U_POST_NEW_TOPIC}]<img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" />[/url]</td>
</tr>
<tr>
<td align="left" valign="middle" class="nav" width="100%"><span class="nav">[url={U_INDEX}]{L_INDEX}[/url]&nbsp;&raquo;&nbsp;[url={U_VIEW_FORUM}]{FORUM_NAME}[/url]</span></td>
<td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall">[url={U_MARK_READ}]{L_MARK_TOPICS_READ}[/url]</span></td>
</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="tableborder">

<table border="0" cellpadding="4" cellspacing="1" width="100%">
<tr>
<th colspan="2" align="center" 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}[url={topicrow.U_VIEW_TOPIC}]{topicrow.TOPIC_TITLE}[/url]</span><span class="gensmall">

{topicrow.GOTO_PAGE}</span></td>
<td class="row1" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
<td class="row1" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
<td class="row1" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
<td class="row1" 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="genmed">{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>

</td>
</tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
<tr>
<td align="left" valign="middle" width="100%" colspan="2"><span class="nav">[url={U_INDEX}]{L_INDEX}[/url]&nbsp;&raquo;&nbsp;[url={U_VIEW_FORUM}]{FORUM_NAME}[/url]</span></td>
</tr>
<tr>
<td align="left" valign="middle" width="50">[url={U_POST_NEW_TOPIC}]<img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" />[/url]</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"><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>
</tr>
<tr>
<td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</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_TOPIC_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_TOPIC_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>


Remarquez vous un problème???


Screen:


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: Sat 9 Jun 2007 - 18:01    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

bonjour
je vois bien sur ton forum si tu veux augmenter la distance entre les post it et le reste cherches

Code: Sélectionner - Agrandir
document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"></td></tr>


et remplace par

Code: Sélectionner - Agrandir
document.write('<tr><td class="row3" align="center" valign="middle" colspan="7"><br></td></tr>

_______________________


Forum
Author Message
nico39


Offline
Guest




PostPosted: Sat 9 Jun 2007 - 19:05    Post subject: [tuto]séparateur d'annonce et post-it Reply with quote

Désolé,mais je ne le trouve pas undecided
Peut tu m'indiquer la ligne?


Author Message
Contenu Sponsorisé





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

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