Bonjour a tous !
Je suis sur xoops depuis une semaine, aprés avoir essayer d'autres portails.
xoops est vraiment génial un grand bravos !
Mon problême est que j'ai installé le module smartlanguage il remplis bien sa fonction sauf mon théme
cela fait une semaine que je cherche à rendre mon théme multilangue, j'ai visioné les forums de nombreux sites, notament celui du concepteur je ne trouve pas, et quand je pense avoir trouver cela ne fonctionne pas :-o
Après avoir essayer de trouver par moi même "apprenti PHP" je doit me rendre à l'evidence
Voici les lignes qui me pose prôblème dans thème.html
------------------------------------------------------------
<!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="all" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<!-- RMV: added module header -->
<{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="okvir_main">
<tr>
<td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="21"><img src="<{$xoops_imageurl}>images/top_tab_left.gif" border="0" /></td>
<td align="middle" width="100%" background="<{$xoops_imageurl}>images/top_tab_bg.gif"></td>
<td width="21"><img src="<{$xoops_imageurl}>images/top_tab_right.gif" border="0" /></td></tr></table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="okvir">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="header">
<tr>
<td id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo.gif" alt="7dana online" /></a></td>
<td align="right" id="headerbanner"><{$xoops_banner}> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 BOTTOMMARGIN="0">
<tr align="center">
<td width="45%" class="sat" bgcolor="#ECE9D8"><span id="clock"></span> <script language="JavaScript" type="text/javascript" src="<{$xoops_imageurl}>images/clock.js">
</script> </td>
<td id="headmenu"><a onmouseover=showit(1) class="menuHead" href="<{$xoops_url}>/index.php">HOME</a></td>
<td id="headmenu"><a onmouseover=showit(2) class="menuHead" href="<{$xoops_url}>/modules/news/">NEWS</a></td>
<td id="headmenu"><a onmouseover=showit(3) class="menuHead" href="<{$xoops_url}>/modules/newbb/">FORUM</a></td>
<td id="headmenu"><a onmouseover=showit(4) class="menuHead" href="<{$xoops_url}>/modules/mylinks/">LINKS</a></td>
<td id="headmenu"><a onmouseover=showit(5) class="menuHead" href="<{$xoops_url}>/modules/mydownloads/">DOWNLOAD</a></td>
<td id="headmenu"><a onmouseover=showit(6) class="menuHead" href="<{$xoops_url}>/modules/xoopsfaq/">FAQ</a></td>
<td id="headmenu"><a onmouseover=showit(7) class="menuHead" href="<{$xoops_url}>/modules/contact/">CONTACT</a></td>
</tr>
<TR>
<TD class="subnavigate" colSpan=8 >
<DIV width="100%"; padding-left:15px; id=describe onmouseover=clear_delayhide() onmouseout=resetit(event)></DIV>
<SCRIPT language=JavaScript1.2>
var submenu=new Array()
submenu[1]=''
submenu[2]=' <a href="<{$xoops_url}>/modules/news/">NEWS</a> | <a href="<{$xoops_url}>/modules/news/submit.php">SUBMIT NEWS</a> | <a href="<{$xoops_url}>/modules/news/archive.php">NEWS ARCHIVE</a> '
submenu[3]=''
submenu[4]=' <a href="<{$xoops_url}>/modules/mylinks/submit.php">SUBMIT LINKS</a> | <a href="<{$xoops_url}>/modules/mylinks/topten.php">TOP LINKS</a> </a>'
submenu[5]=' <a href="<{$xoops_url}>/modules/mydownloads/submit.php">SUBMIT DOWNLOAD</a> | <a href="<{$xoops_url}>/modules/mydownloads/topten.php?hit=1">POPULAR</a> | <a href="<{$xoops_url}>/modules/mydownloads/topten.php?rate=1">TOP RATED</a> '
submenu[6]=''
submenu[7]=' <a href="<{$xoops_url}>/modules/contact/">CONTACT US</a> | <a href="mailto:your@email.com?subject=Contact%20from%20web%20site">SEND EMAIL</a>'
var delay_hide=750
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</SCRIPT>
------------------------------------------------------------
Que puis-je ajouter comme code sur cette page pour que cela devienne multilangue.
ou sur les fichiers accompagnant ce théme, j'ai essayer de mettre des "define" french un peut partout je n'y arrive pas.
merci si vous pouvez m'aider