PDA

Afficher la version complète : Affichage des forums Séparation des catégories de forum (style par défaut)



Ombre
25/04/2009, 10h08
Ce mod qui vous permettra d'espacer les catégories de forum sur le style par défaut, ce qui n'est pas le cas d'origine.
Allan à fait son mod qui diffère légèrement du miens, mais je poste tout de même le miens comme ça vous aurez le choix entre les deux méthodes.
Déplacement des liens "Marquer les messages comme lus" et "Equipe du forum" dans le cadre "Statistiques" pour une meilleure intégration.


Conception

Auteur du script / Author Of script: Ombre (http://www.vbulletin-ressources.com/forum/member.php?u=1668)
Version vBulletin Requise / Version vBulletin Required : vB 3.8.x

Testé / Tested: oui sous 3.8.2

Copyright © 2009 vBulletin-Ressources.com / Copyright © 2009 vBulletin-Ressources.com

Installation


http://img18.imageshack.us/img18/2630/magicalsnap200904250934.png




Template modifiés: 3


Dirigez vous dans votre administration >> Styles & Templates >> Rechercher dans les templates >> puis rechercher dans le style visé par cette modification, le tempate "FORUMHOME" recherche le bout de code suivant:




<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->

<br />
$ad_location[ad_forumhome_afterforums]
<br />

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr> et remplacez le par celui ci:


<!-- main -->
$forumbits
$forumhome_markread_script
<!-- /main -->

$ad_location[ad_forumhome_afterforums]


<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2"><div style="float:left;">$vbphrase[whats_going_on]</div><div class="smallfont" style="text-align:center;"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>Enregistrez le template.




Recherchez le template suivant "forumhome_forumbit_level1_nopost" et remplacez son contenus par celui-ci:




<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<if condition="!$show['collapsable_forums']">
<tbody>
</if>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<if condition="$childforumbits">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
</if>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
<if condition="!$show['collapsable_forums']">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
</if>
<tr>
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
<if condition="$childforumbits">
$childforumbits
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>
</table><br />Enregistrez le template.




Recherchez le template "forumhome_lastpostby" puis dans ce template recherchez le bout de code suivant, qui est tout en haut:




<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">Remplacez le par celui-ci:


<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]" style="width:200px;">Enregistrez le template.

Résultat finale en capture


[IMG]http://img18.imageshack.us/img18/1471/magicalsnap200904250934o.png


Si vous avez des questions n'hésitez pas, bonne modifications :)

Simon
25/04/2009, 10h25
Merci beaucoup pour cette modification de template :) Ces modifications devraient être intégrés en standard dans le style par défaut.

Ombre
25/04/2009, 10h27
Mais il persiste avec ce terme tutoriel, viens voir ici, non non c'est pas pour te fouetté, juste une petite fessé :D

Simon
25/04/2009, 10h31
Mais il persiste avec ce terme tutoriel, viens voir ici, non non c'est pas pour te fouetté, juste une petite fessé :DMessage édité, heureux ? llol

Ombre
25/04/2009, 10h34
Bah non peu pas te donné la fessé maintenant :(

bombolo
29/11/2009, 13h02
Merci Ombre pour cette modif.

6eO
18/12/2009, 14h22
super ! merci ombre (encore)
j'ai réussi à compiler le hack avec celui des images par catégies dans le forumhome_forumbit_level1_nopost ^^

bobylka
20/01/2010, 11h29
et bien je solicite votre faire j'ai fait les modifications comme c'est décrit et mon forum ne ressemble plus à rien du tout regardez ici probleme reglé merci

(http://assistancepc.0fees.net/index.php)

Ombre
20/01/2010, 11h42
Bonjour, si j'oubli rappel le moi ce soir, je regarderais ça.

HEDDI
28/01/2010, 13h35
merci ombre tester sur 3.7.5 et marche a merveille :d2

HEDDI
01/02/2010, 01h50
Bonsoir j'ai un petit souci ombre je souhaite enlever le premier statistique http://img689.imageshack.us/img689/4524/hjhj.gif merci

Ombre
01/02/2010, 05h36
Bonjour, ton style est personnalisé, car normalement il n'y à pas de problème sur cette partie, tu peux copier ton template forumhome ici stp.

HEDDI
02/02/2010, 02h16
Bonsoir le voila Ombre

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta name="robots" content="index, follow">
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
<br />
<if condition="$show['guest']">
<!-- guest welcome message -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
</table>
<!-- / guest welcome message -->
<br />
</if>

<!-- main -->
$forumbits
$forumhome_markread_script
<!-- /main -->

$ad_location[ad_forumhome_afterforums]


<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2"><div style="float:left;">$vbphrase[whats_going_on]</div><div class="smallfont" style="text-align:center;"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>
$template_hook[forumhome_wgo_pos1]
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
$template_hook[forumhome_wgo_pos2]
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>
$vbphrase[threads]: $totalthreads,
$vbphrase[posts]: $totalposts,
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
</if>
</div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
$template_hook[forumhome_wgo_stats]
</div>
</td>
</tr>
</tbody>
$template_hook[forumhome_wgo_pos3]
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
$vbphrase[todays_birthdays]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
</if>
$template_hook[forumhome_wgo_pos4]
<if condition="$show['upcomingevents']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>

$template_hook[forumhome_wgo_pos5]
</table>
<br />
<!-- end what's going on box -->

<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td>
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
</tr>
<if condition="$vboptions['showlocks']">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</if>
</table>
</td>
<if condition="!$show['guest']">
<!-- member logout -->
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->
</if>
</tr>
</table>
<!-- / icons and login code -->

$footer
</body>
</html>

Ombre
02/02/2010, 06h36
Bonjour, essaye de supprimé ceci dans le template:


$template_hook[forumhome_wgo_stats] et dis moi ce qui se passe.

HEDDI
03/02/2010, 01h16
Bonjour Ombre cette partit est supprimer je vois aucun changement ;)

Ombre
03/02/2010, 07h02
Je ne vois pas alors, il faudrait que je vois ça directement sur ton forum.

HEDDI
03/02/2010, 13h36
ok ça marche ;) merci je t'envoie ça par mp

Ombre
03/02/2010, 18h19
Bonsoir, problème résolu je pense, c'était dû à ton style qui avait un bout de code dans le forumhome au lieu d'un autre template habituellement.

HEDDI
03/02/2010, 19h59
merci beaucoup Ombre tu as résolu mon problème ;)

tackitchi
25/03/2010, 16h19
avec mon vb ca ne maarche pas ?
je sais pas pourquoi ?
www.francaismaroc.com

Ombre
25/03/2010, 16h22
Bonjour, moi non plus exposé comme cela, le mod est fonctionnel, la seule chose qui peu posé soucis c'est soit le style personnalisé, sois une mauvaise modification, je ne peu t'en dire plus.

pepsi-tom
17/05/2010, 00h12
hello la team,

cool je cherchais cela depuis un monent..
merci bien

et bon courage a toute l'équipe pour le taf et les aides fournies

zakobi
26/09/2010, 19h47
Nice modification

Neox
10/11/2010, 14h01
sa déchirerais si c’était pour vb4

Ombre
10/11/2010, 16h51
Bonjour, pour vb4 il n'y en a pas besoin vu que les catégories sont séparées par défaut sur le style par défaut :)

Neox
11/11/2010, 14h24
Les séparées encore plus c'est Possible ?

Ombre
11/11/2010, 14h28
Oui, tout est possible en html :), pour savoir comment, dirige toi sur le forum support :)

amenic
17/12/2010, 17h40
un grand merci marche nickel