Fork me on GitHub






Editer un theme
Xoops accro
Inscrit: 27/07/2005 16:10
De France
Messages: 2970
Bonjour

J'ai trouvé un theme,j'ai commencé a l'edité seulement il y-a un script de date et d'heure mais en anglais,je voudrais remplacer celui qu'y a en anglais et en mettre un en francais que j'ai trouvé mais j'y arrive pas!!

voici mon theme
<!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="www.iaols.com" />
<
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="all" href="<{$xoops_url}>/xoops.css" />
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<!-- 
RMVadded module header -->
<{
$xoops_module_header}>
<
script type="text/javascript">
<!--
<{
$xoops_js}>
//-->
</script>
<script language="JavaScript1.2">

var bookmarkurl="http://ocean.ezdns.jp"
var bookmarktitle="OCEAN-NET HOMEPAGE"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

</script>

</head>
<body>
  
<body topmargin="0">
<div align="center"><center>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr id="header">
    <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"
    style="border-left: medium none; border-top: 2px solid rgb(0,0,255)">
      <tr>
        <td id="headerlogo" align="left" background="<{$xoops_imageurl}>logobg.jpg"><img src="<{$xoops_imageurl}>logo.gif" width="550" height="100" alt="Welcome"></td>
        <td width="350" align="center" valign="bottom" background="<{$xoops_imageurl}>navbg.jpg"><table border="0" width="100%" cellspacing="0" cellpadding="0" height="100">
          <tr>
            <td width="100%" align="right"><a href="<{$xoops_url}>/modules/newbb/"><img src="<{$xoops_imageurl}>ie.gif" width="50" height="100" alt="Forum de discusion" border="0"></a></td>
            <td width="100%" align="right"><a href="<{$xoops_url}>/viewpmsg.php"><img src="<{$xoops_imageurl}>email.gif" width="50" height="100" alt="Méssagerie" border="0"></a></td>
            <td width="100%" align="right"><a href="<{$xoops_url}>/modules/xoopsmembers/"><img src="<{$xoops_imageurl}>explorer.gif" width="50" height="100" alt="Membres" border="0"></a></td>
            <td width="100%" align="right"><a href="<{$xoops_url}>/modules/catads/"><img src="<{$xoops_imageurl}>links.gif" width="50" height="100" alt="Annonces" border="0"></a></td>
            <td width="100%" align="right"><a href="<{$xoops_url}>/modules/catads/submit1.php"><img src="<{$xoops_imageurl}>faq.gif" width="50" height="100" alt="Soumettre" border="0"></a></td>
            <td width="100%" align="right"><a href="<{$xoops_url}>/modules/catads/adsuserlist.php?uid=1"><img src="<{$xoops_imageurl}>search.gif" width="50" height="100" alt="Mes annonces" border="0"></a></td>
            <td width="100%" align="right"><a href="<{$xoops_url}>/modules/catads"><img src="<{$xoops_imageurl}>logoff.gif" width="50" height="100" alt="Acceuil"border="0"></a></td>
          </tr>
        </table>
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</center></div>

<table width=100% cellspacing="0" cellpadding="0">
    <tr>
      <td id="headerbar" colspan="2">&nbsp;</td>
    </tr>
 </table>

<font style="font-size:5px"><br></font>

  <table cellspacing="0">
    <tr>
      <td id="leftcolumn" valign="top">
        <!-- Start left blocks loop -->
        <{foreach item=block from=$xoops_lblocks}>
          <{include file="xp/theme_blockleft.html"}><br>
        <{/foreach}>
        <!-- End left blocks loop -->

      </td>
<! -----------------------------Start Center Column -------------------->
      <td id="centercolumn" valign="top" width="100%">

        <!-- Display center blocks if any -->
        <{if $xoops_showcblock == 1}>

        <table cellspacing="0">
          <tr>
            <td id="centerCcolumn" colspan="2">

            <!-- Start center-center blocks loop -->
            <{foreach item=block from=$xoops_ccblocks}>
              <{include file="xp/theme_blockcenter_c.html"}>
            <{/foreach}>
            <!-- End center-center blocks loop -->

            </td>
          </tr>
        <!-------------Start CenterL----------------->
          <tr>
            <td id="centerLcolumn">

            <!-- Start center-left blocks loop -->
              <{foreach item=block from=$xoops_clblocks}>
                <{include file="xp/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="xp/theme_blockcenter_r.html"}>
              <{/foreach}>
            <!-- End center-right blocks loop -->

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

        <{/if}>
        <!-- End display center blocks -->

        <div id="content">
          <{$xoops_contents}>
        </div>
      </td>

      <{if $xoops_showrblock == 1}>

      <td id="rightcolumn">
        <!-- Start right blocks loop -->
        <{foreach item=block from=$xoops_rblocks}>
          <{include file="xp/theme_blockright.html"}>
        <{/foreach}>
        <!-- End right blocks loop -->
      </td>

      <{/if}>

    </tr>
  </table>

<div align="center"><center>
<table border="0" width="900" cellspacing="0" cellpadding="0">
  <tr>
    <td width="116" background="<{$xoops_imageurl}>topbg.gif"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>start.gif" alt="Home" border="0"></a></td>
    <td width="100%" background="<{$xoops_imageurl}>topbg.gif"><p align="right"><strong><font color="#FFFFFF" face="Tahoma">
    <script type="text/javascript">
<!--   // Array ofmonth Names
var monthNames = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + thisYear);
// --></script></font></strong></td>
    <td width="10" background="<{$xoops_imageurl}>topbg.gif"><img src="<{$xoops_imageurl}>righttopend.jpg" width="10" height="30"></td>
  </tr>
</table>
</center></div>

</body>
</html>


voici le script que je voudrais mettre http://www.aidenet.com/pageperso68aa.htm mais sans le fond vert

merci

Posté le : 10/02/2006 17:22
Partager Twitter Partagez cette article sur GG+
Re: Editer un theme
Semi pro
Inscrit: 21/11/2004 17:40
De Un petit coin de Belgique
Messages: 826
Bonjour,

tu remplaces simplement dans le theme

var monthNames = new Array(
"Janvier","Fevrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Decembre");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem

et l'affichage se fera en Français..

Posté le : 10/02/2006 17:44
Partager Twitter Partagez cette article sur GG+
Re: Editer un theme
Xoops accro
Inscrit: 27/07/2005 16:10
De France
Messages: 2970
ben,j'ai fais comme ta dis,mais ca me degrade tous mon theme

Posté le : 10/02/2006 19:07
Partager Twitter Partagez cette article sur GG+
Re: Editer un theme
Semi pro
Inscrit: 21/11/2004 17:40
De Un petit coin de Belgique
Messages: 826
regarde ici
www.tech-at.be et tu prends le theme XP évidement..

Posté le : 10/02/2006 19:27
Partager Twitter Partagez cette article sur GG+
Re: Editer un theme
Régulier
Inscrit: 28/10/2005 17:17
De Switzerland
Messages: 350
Tu peux aussi prendre (en bricolant un petit peu) les valeurs des constantes _CAL_... disponible dans le fichier de langue 'Calendar.php' ("/language/".$xoopsConfig['language']."/calendar.php") :

{fichier french}
...
define("_CAL_JANUARY""Janvier");
define("_CAL_FEBRUARY""Février");
define("_CAL_MARCH""Mars");
define("_CAL_APRIL""Avril");
define("_CAL_MAY""Mai");
define("_CAL_JUNE""Juin");
define("_CAL_JULY""Juillet");
define("_CAL_AUGUST""Août");
define("_CAL_SEPTEMBER""Septembre");
define("_CAL_OCTOBER""Octobre");
define("_CAL_NOVEMBER""Novembre");
define("_CAL_DECEMBER""Décembre");
...


ce qui te pemettra d'afficher tes mois selon la langue par défaut de ton site

Posté le : 11/02/2006 00:22
Partager Twitter Partagez cette article sur GG+
Re: Editer un theme
Xoops accro
Inscrit: 27/07/2005 16:10
De France
Messages: 2970
Citation :

satanas a écrit:
regarde ici
www.tech-at.be et tu prends le theme XP évidement..


oui,c'est exactement ca que je veux!!

Posté le : 11/02/2006 11:28
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

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

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