Fork me on GitHub

Rapport de message :*
 

Modification THEME.html personnelle aficher les messages !

Titre du sujet : Modification THEME.html personnelle aficher les messages !
par RLambeau sur 12/11/2006 21:26:30

Bonjour!

j'installe un nouveau site Xoops (version 2.0.15 © 2001-2005).

http://arolauzelle.evoconcept.net/

J'ai modifié mon theme.html afin de mettre des petites images correspondant aux connexion, messages, ...

cependant, je n'arrive pas à modifier le theme pour :
1. que ce menu n'apparaisse pas si le membre n'est pas loggué
2. dans le menu, le bouton admin n'apparaisse que si on est admin
3. si on a reçu un message, une autre image apparaisse afin de le mettre en valeur.


je mets un copié-collé afin que vous puissiez voir mon theme.html
Avez-vous des idées ?
Merci pour l'aide!


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
<
meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<
meta name="robots" content="<{$xoops_meta_robots}>" />
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<
meta name="rating" content="<{$xoops_meta_rating}>" />
<
meta name="author" content="<{$xoops_meta_author}>" />
<
meta name="copyright" content="<{$xoops_meta_copyright}>" />
<
meta name="generator" content="XOOPS" />
<
title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<
link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<
link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />
<!-- 
RMVadded module header -->
<{
$xoops_module_header}><div align="center">
</
div>
<
script type="text/javascript">
<!--
<{
$xoops_js}>
//-->
</script><script type="text/javascript">
</script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/adminmenu.js">
</script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/ie5.js">
</script>
<script type="text/javascript">

function toggle(notifs_form) 
{
obj=document.getElementById(notifs_form);
obj.style.display=!(obj.style.display=="block")? "block" : "none";  
}

function swapimage(swap)
{
img_plus="<{$xoops_imageurl}>images/plus.gif";
img_minus="<{$xoops_imageurl}>images/minus.gif";
obj=document.getElementById(swap);
obj.src=!(obj.src==img_minus)? img_minus : img_plus;  
}

</script>
</head>
<body>
<div align="center">
    <table border="0" cellpadding="0" cellspacing="0" class="headertable">
        <tr>
            <td align="center"><img border="0" src="<{$xoops_imageurl}>img/logo.gif" width="800px" height="85px"></td>
            <td align="center" width="480px" class="middle"><{$xoops_banner}></td>
        </tr>
        <tr>
            <td colspan="2">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td width="17px" height="41px"><img border="0" src="<{$xoops_imageurl}>img/navi_left.gif" width="17px" height="41px"></td>
                    <td background="<{$xoops_imageurl}>img/navi_bg.gif"><div align="center">
                    <table border="0" cellpadding="0" cellspacing="0" width="68%" height="41px">
                        <tr>
                            <td class="mainmenu" height="41" align="center"><a href="http://arolauzelle.evoconcept.net/" class="a_main_menu">Accueil</a></td>
                            <td class="mainmenu" height="41" align="center"><a href="#" class="a_main_menu">News</a></td>
                            <td class="mainmenu" height="41" align="center"><a href="http://arolauzelle.evoconcept.net/modules/newbb/" class="a_main_menu">Forum</a></td>
                            <td class="mainmenu" height="41" align="center"><a href="http://arolauzelle.evoconcept.net/modules/extcal/calendar.php#" class="a_main_menu">Calendrier</a></td>
                            <td class="mainmenu" height="41" align="center"><a href="#" class="a_main_menu">Liens</a></td>
                            <td class="mainmenu" width="160px" height="41" align="right">


<style type="text/css">
<!--
#image {
width : 145px;
height: 29px;
background: url(http://arolauzelle.evoconcept.net/the ... _petrol/imgperso/menu.jpg) top left no-repeat;
}
#zone1 {
float: left;
width : 27px;
height: 27px;
left: 0px;
top: 0px;
}
#zone2 {
float: left;
width : 24px;
height: 27px;
left: 20px;
top: 0px;
}
#zone3 {
float: left;
width : 23px;
height: 27px;
left: 44px;
top: 0px;
}
#zone4 {
float: left;
width : 23px;
height: 27px;
left: 70px;
top: 0px;
}
#zone5 {
float: left;
width : 23px;
height: 27px;
left: 103px;
top: 0px;
}
#zone6 {
float: left;
width : 23px;
height: 27px;
left: 132px;
top: 0px;
}
#zone1:hover {
float: left;
width : 25px;
height: 27px;
left: 0px;
top: 0px;
background: url(http://arolauzelle.evoconcept.net/the ... petrol/imgperso/menu2.jpg) top left no-repeat;
z-index: 100;
}
#zone2:hover {
float: left;
width : 23px;
height: 25px;
left: 0px;
top: 0px;
background: url(http://arolauzelle.evoconcept.net/the ... petrol/imgperso/edit2.jpg) top left no-repeat;
z-index: 100;
}
#zone3:hover {
float: left;
width : 23px;
height: 25px;
left: 0px;
top: 0px;
background: url(http://arolauzelle.evoconcept.net/the ... etrol/imgperso/notif2.gif) top left no-repeat;
z-index: 100;
}
#zone4:hover {
float: left;
width : 23px;
height: 25px;
left: 0px;
top: 0px;
background: url(http://arolauzelle.evoconcept.net/the ... /imgperso/deconnexion.gif) top left no-repeat;
z-index: 100;
}
#zone5:hover {
float: left;
width : 25px;
height: 25px;
left: 0px;
top: 0px;
background: url(http://arolauzelle.evoconcept.net/the ... trol/imgperso/message.gif) top left no-repeat;
z-index: 100;
}
#zone6:hover {
float: left;
width : 23px;
height: 25px;
left: 2px;
top: 0px;
background: url(http://arolauzelle.evoconcept.net/the ... petrol/imgperso/admin.gif) top left no-repeat;
z-index: 100;
}
-->
</style>
<div id="image">
    <a id="zone1" href="http://arolauzelle.evoconcept.net/user.php" title="Modifier votre profil personnel"></a>
    <a id="zone2" href="http://arolauzelle.evoconcept.net/edituser.php" title="Editer votre compte"></a>
    <a id="zone3" href="http://arolauzelle.evoconcept.net/notifications.php" title="Comment voulez-vous être notifié ?"></a>
    <a id="zone4" href="http://arolauzelle.evoconcept.net/user.php?op=logout" title="Pour vous déconnecter du site après votre passage"></a>
    <a id="zone5" href="http://arolauzelle.evoconcept.net/viewpmsg.php" title="Pour lire vos messages reçus ou pour en envoyer aux autres membres du site"></a>
    <a id="zone6" href="http://arolauzelle.evoconcept.net/admin.php" title="Zone réservé aux administrateurs du site"></a>
</div>
<td with="17px" height="41px"><img border="0" src="<{$xoops_imageurl}>img/navi_right.gif" width="17px" height="41px"></td>
                    </table>
                    </td>
          <table class="maintable" cellspacing="0" cellpadding="0">
            <tr>
            <td valign="top">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <!-- Display left blocks start-->
                    <{if $xoops_showlblock == 1}>
                        <td id="leftcolumn">
                             <!-- Start left blocks loop -->
                            <{foreach item=block from=$xoops_lblocks}>
                              <{include file="WDC_003_petrol/blocks/theme_blockleft.html"}><br /><{/foreach}>
                            <!-- End left blocks loop -->
                        </td>
                    <{/if}>
                <!-- Display left blocks end -->
                </tr>
            </table>
            </td>
            <td valign="top">
            <table cellspacing="0" cellpadding="0">
            <tr>
                <td id="centercolumn">
                    <!-- Display center blocks if any -->
                    <{if $xoops_showcblock == 1}>
                        <div align="center">
                        <table cellspacing="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td id="centerCcolumn" cellspacing="0" cellpadding="0" colspan="2">
                                    <!-- Start center-center blocks loop -->
                                <{foreach item=block from=$xoops_ccblocks}>
                                  <{include file="WDC_003_petrol/blocks/theme_blockcenter_c.html"}>
                                <{/foreach}>
                                <!-- End center-center blocks loop -->
                            </td>
                          </tr>
                          <tr>
                            <td id="centerLcolumn">
                                    <!-- Start center-left blocks loop -->
                                  <{foreach item=block from=$xoops_clblocks}>
                                <{include file="WDC_003_petrol/blocks/theme_blockcenter_l.html"}>
                                  <{/foreach}>
                                <!-- End center-left blocks loop -->
                            </td>
                                <td id="centerRcolumn">
                                <!-- Start center-right blocks loop -->
                                  <{foreach item=block from=$xoops_crblocks}>
                                <{include file="WDC_003_petrol/blocks/theme_blockcenter_r.html"}>
                                  <{/foreach}>
                            </td>
                          </tr>
                        </table>
                    </div>
                    <{/if}>
                    <!-- End center-right blocks loop -->
                    </td>
            </tr>
            <tr>
                <td id="contentcolumn" valign="top"><{include file="WDC_003_petrol/blocks/theme_content.html"}></td>
            </tr>
          </table>
            </td>
            <td valign="top">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <{if $xoops_showrblock == 1}>
                        <td id="rightcolumn">
                        <!-- Start right blocks loop -->
                            <{foreach item=block from=$xoops_rblocks}>
                              <{include file="WDC_003_petrol/blocks/theme_blockright.html"}>
                            <br /><{/foreach}>
                        <!-- End right blocks loop -->
                          </td>
                    <{/if}>
                </tr>
            </table>
            </td>
            </tr>
            </table>
            </div>
          <div align="center"></br>
          <table class="headertable" cellspacing="0" cellpadding>
            <td id="footerbar" align="center" width="30px" height="70px">
                <img border="0" src="<{$xoops_imageurl}>img/footer_left.gif" width="30px" height="70px">
            </td>
                  <td class="middle" height="70px" align="center" background="<{$xoops_imageurl}>img/footer_middle.gif">Copyright © 2006  by <a href="<{$xoops_url}>" target="_self"><b>ARO</b> LAUZELLE</a> 
<td id="footerbar" align="center" width="33px"><img border="0" src="<{$xoops_imageurl}>img/footer_right.gif" width="33px" height="70px"></td>
            </tr>
          </table>
        </div>
    </div>
</body>
</html></table>
        </div>
</body>
</html>

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

21 Personne(s) en ligne (11 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 21 | Plus ...