Fork me on GitHub




« 1 ... 3 4 5 (6) 7 8 9 10 »


Re: Theme iphone
Semi pro
Inscrit: 08/06/2005 17:15
De Where ?
Messages: 513
on va revenir simple, le choix du thème xdt_standard était uniquement car c'est le premier sur lequel ma souris s'est posée.
les quelques fichiers pour la partie "mobile" sont très facilement transposable dans les thèmes basés sous morpho, css100, xdt standard, blanktheme, et un poil moins pour les autres.

Il faut considérer cela, plus comme un addons à un thème

pour les différences entre xdt_standard et xdt_mobile, vous pouvez faire un "winmerge" entre les versions en prenant cette version de xdt_standard http://xoofoo.svn.sourceforge.net/vie ... lique/xdt_standard/trunk/

Posté le : 28/11/2010 12:54
Partager Twitter Partagez cette article sur GG+
Re: Theme iphone
Semi pro
Inscrit: 08/06/2005 17:15
De Where ?
Messages: 513
J'ai juste ajouté dans theme.html :
- un include pour le fichier mobile_device_detect.php,
- un include pour mo_assign.php qui ajoutes de nouvelles variables smarty
- ajouter deux fichiers css : mobile.css et layout-mobile.css
- modifier l'appel canvas_template pour la sélection si mobile ou non
- changer de place les appels à jquery pour éviter de charger par exemple jquery.mobile dans le thème version 'desktop'
- ajouter quelques images de plus

- et un dossier mobile avec les fichiers html de l'affichage mobile

Si je trouve le temps, je vous ferai un petit pack des fichiers pour la modif du thème "default" par exemple

Ensuite pour la personnalisation, cet "addon" possède ses propres feuilles de style, donc l'aspect peut être changé comme on le désire

Posté le : 28/11/2010 13:00
Partager Twitter Partagez cette article sur GG+
Re: Theme iphone
Semi pro
Inscrit: 01/08/2005 19:06
Messages: 1851
salut kris je continue sur mon avancé vers les modification de template et je suis passer a newbb sur la page d'accueil de newbb pas de soucis j'ai réussi a adapter le template par contre reste un problème sur le template newbb_viewforum.html.

il s'adapte pas au théme j'ai modifier comme sa:

<div id="forum_header">
<
div><{$folder_topic}> <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/index.php"><{$forum_index_title}></a>
-
<
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/index.php?cat=<{$category.id}>"><{$category.title}></a>
</
div>
<{if 
$parentforum}>
<
div>&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$parentforum.id}>"><{$parentforum.name}></a></div>
<
div>&nbsp;&nbsp;&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum_id}>"><{$forum_name}></a></div>
<{else}>
<
div>&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum_id}>"><{$forum_name}></a> <{$forum_topictype}></div>
<{/if}>
</
div>
<
div class="clear"></div>

<
br />

<{if 
$subforum}>
<
table cellspacing="1" class="outer" width="100%">

    <
tr class="head" align="center">
      <
td width="5%">&nbsp;</td>
      <
td nowrap="nowrap" align="left"><{$smarty.const._MD_SUBFORUMS}></td>
      <
td nowrap="nowrap"><{$smarty.const._MD_TOPICS}></td>

      <
td nowrap="nowrap"><{$smarty.const._MD_LASTPOST}></td>
    </
tr>

    <!-- 
start subforums -->
  <{foreach 
item=sforum from=$subforum}>
  <
tr>
    <
td class="even" align="center" valign="middle"><{$sforum.forum_folder}></td>
    <
td class="odd" onclick="window.location='<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$sforum.forum_id}>'"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$sforum.forum_id}>"><strong><{$sforum.forum_name}></strong></a><br />
        <{
$sforum.forum_desc}>
        <{if 
$sforum.forum_moderators}><br/>
          <
strong><{$smarty.const._MD_MODERATOR}>:&nbsp;</strong><{$sforum.forum_moderators}>
          <{/if}>
       </
td>
    <
td class="even" align="center" valign="middle"><{$sforum.forum_topics}></td>
    <
td class="even" align="right" valign="middle"><{$sforum.forum_lastpost_time}><br />
        <{
$sforum.forum_lastpost_user}>    <{$sforum.forum_lastpost_icon}>
    </
td>
  </
tr>
    <{/foreach}>
  <!-- 
end subforums -->

</
table>
<
br />
<{/if}>

<{if 
$mode gt 1}>
<
form name="form_topics_admin" action="action.topic.php" method="POST" onsubmit="javascript: if(window.document.form_topics_admin.op.value < 1){return false;}">
<{/if}>

<{if 
$mode gt 0}>
<
div style="padding: 5px;float: left; text-align:left;" id="admin">
<{
$forum_addpoll}><{$forum_post_or_register}>
</
div>
<
div style="padding: 5px;float: right; text-align:right;">
<{if 
$mode gt 1}>
<{
$smarty.const._ALL}>: <input type="checkbox" name="topic_check1" id="topic_check1" value="1" onclick="xoopsCheckAll('form_topics_admin', 'topic_check1');" /> 
<
select name="op">
    <
option value="0"><{$smarty.const._SELECT}></option>
    <
option value="delete"><{$smarty.const._DELETE}></option>
    <{if 
$type eq "pending"}>
        <
option value="approve"><{$smarty.const._MD_APPROVE}></option>
        <
option value="move"><{$smarty.const._MD_MOVE}></option>
    <{elseif 
$type eq "deleted"}>
        <
option value="restore"><{$smarty.const._MD_RESTORE}></option>
    <{else}>
        <
option value="move"><{$smarty.const._MD_MOVE}></option>
    <{/if}>
</
select>  
<
input type="hidden" name="forum_id" value="<{$forum_id}>" />
<
input type="submit" name="submit" value="<{$smarty.const._SUBMIT}>" /> | 
<
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum_id}>&amp;mode=1#admin" target="_self" title="<{$smarty.const._MD_TYPE_ADMIN}>"><{$smarty.const._MD_TYPE_ADMIN}></a
<{elseif 
$mode eq 1}>
<
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum_id}>&amp;type=active#admin" target="_self" title="<{$smarty.const._MD_TYPE_ADMIN}>"><{$smarty.const._MD_TYPE_ADMIN}></a> | 
<
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum_id}>&amp;type=pending#admin" target="_self" title="<{$smarty.const._MD_TYPE_PENDING}>"><{$smarty.const._MD_TYPE_PENDING}></a> | 
<
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum_id}>&amp;type=deleted#admin" target="_self" title="<{$smarty.const._MD_TYPE_DELETED}>"><{$smarty.const._MD_TYPE_DELETED}></a> | 
<
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/moderate.php?forum=<{$forum_id}>" target="_self" title="<{$smarty.const._MD_TYPE_SUSPEND}>"><{$smarty.const._MD_TYPE_SUSPEND}></a>
<{/if}>
</
div>
<{else}>
<
div style="padding: 5px;float: right; text-align:right;">
<{
$forum_addpoll}><{$forum_post_or_register}>
</
div>
<{/if}>
<
div class="clear"></div>

<
br />
<
div>
<
div class="dropdown">
<{if 
$menumode eq 0}>

    <
select
        name
="forumoption" id="forumoption"
        
class="menu"    onchange="if(this.options[this.selectedIndex].value.length >0 )    { window.location=this.options[this.selectedIndex].value;}"
    
>
        <
option value=""><{$smarty.const._MD_FORUMOPTION}></option>
        <
option value="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></option>
        <
option value="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></option>
        <
option value="">--------</option>
        <
option value="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></option>
        <
option value="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></option>
        <
option value="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></option>
        <
option value="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></option>
        <
option value="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></option>
        <
option value="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></option>
        <
option value="">--------</option>
        <{foreach 
item=menu from=$menumode_other}>
        <
option value="<{$menu.link}>"><{$menu.title}></option>
        <{/foreach}>
    </
select>

<{elseif 
$menumode eq 1}>
    <
div id="forumoption" class="menu">
    <
table><tr><td>
        <
class="item" href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a>
        <
class="item" href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a>
        <
div class="separator"></div>
        <
class="item" href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a>
        <
class="item" href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a>
        <
class="item" href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a>
        <
class="item" href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a>
        <
class="item" href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a>
        <
class="item" href="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></a>
        <
div class="separator"></div>
        <{foreach 
item=menu from=$menumode_other}>
        <
class="item" href="<{$menu.link}>"><{$menu.title}></a>
        <{/foreach}>
    </
td></tr></table>
    </
div>
    <
script type="text/javascript">document.getElementById("forumoption").onmouseout closeMenu;</script>
    <div class="menubar"><a href="" onclick="openMenu(event, 'forumoption');return false;"><{$smarty.const._MD_FORUMOPTION}></a></div>

<{elseif $menumode eq 2}>
    <div class="menu">
        <ul>
            <li>
                <div class="item"><strong><{$smarty.const._MD_FORUMOPTION}></strong></div>
                <ul>
                <li><table><tr><td>
                    <div class="item"><a href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a></div>
                    <div class="item"><a href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a></div>
                    <div class="separator"></div>
                    <div class="item"><a href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a></div>
                    <div class="item"><a href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a></div>
                    <div class="item"><a href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a></div>
                    <div class="item"><a href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a></div>
                    <div class="item"><a href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a></div>
                    <div class="separator"></div>
                    <{foreach item=menu from=$menumode_other}>
                    <div class="item"><a href="<{$menu.link}>"><{$menu.title}></a></div>
                    <{/foreach}>
                </td></tr></table></li>
                </ul>
            </li>
        </ul>
    </div>
<{/if}>
</div>
<div style="padding: 5px;float: right; text-align:right;">
<{$forum_pagenav}>
</div>
</div>
<div class="clear"></div>
<br />
<br />

<table class="outer" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
    <tr class="head" align="left">
      <td  width="5%" colspan="2">
      <{if $mode gt 1}>
        <{$smarty.const._ALL}>: <input type="checkbox" name="topic_check" id="topic_check" value="1" onclick="xoopsCheckAll('form_topics_admin', 'topic_check');" /> 
      <{else}>
      &nbsp;
      <{/if}>
      </td>
      <td>&nbsp;<strong><a href="<{$h_topic_link}>"><{$smarty.const._MD_TOPICS}></a></strong></td>
      <td width="15%" align="center" nowrap="nowrap"><strong><a href="<{$h_date_link}>"><{$smarty.const._MD_DATE}></a></strong></td>
    </tr>

    <{if $sticky > 0}>
    <tr class="head">
        <td colspan="2">&nbsp;</td>
        <{if $rating_enable}>

        <{else}>
        <td colspan="6"><strong><{$smarty.const._MD_IMTOPICS}></strong></td>
        <{/if}>
    </tr>
    <{/if}>

    <!-- start forum topic -->

    <{foreach name=loop item=topic from=$topics}>

    <{if $topic.stick AND $smarty.foreach.loop.iteration == $sticky+1}>
    <tr class="head">
        <td colspan="2">&nbsp;</td>
        <{if $rating_enable}>

        <{else}>
        <td colspan="6"><strong><{$smarty.const._MD_NOTIMTOPICS}></strong></td>
        <{/if}>
    </tr>
    <{/if}>

    <tr class="<{cycle values="even,odd"}>">
        <td width="4%" align="center">
          <{if $mode gt 1}>
            <input type="checkbox" name="topic_id[]" id="topic_id[<{$topic.topic_id}>]" value="<{$topic.topic_id}>" />
          <{else}>
            <{$topic.topic_folder}>
          <{/if}>
        </td>
        <td width="4%" align="center"><{$topic.topic_icon}></td>
        <td>&nbsp;<a href="<{$topic.topic_link}>" title="<{$topic.topic_excerpt|strip_tags}>">
            <{$topic.topic_title}></a><{$topic.attachment}> <{$topic.topic_page_jump}>
        </td>
        <td align="right" valign="middle"><{$topic.topic_last_posttime}><br />
        <{$topic.topic_last_poster}> <{$topic.topic_page_jump_icon}></td>

    </tr>

    <{/foreach}>

    <!-- end forum topic -->
    
    <{if $mode gt 1}>
    </form>
    <{/if}>

    <tr class="foot">
        <{if $rating_enable}>
        <td colspan="9" align="center"><{else}><td colspan="8" align="center"><{/if}>
        <{strip}>
        <form method="get" action="viewforum.php">
        <strong><{$smarty.const._MD_SORTEDBY}></strong>&nbsp;<{$forum_selection_sort}>&nbsp;<{$forum_selection_order}>&nbsp;<{$forum_selection_since}>&nbsp;
        <input type="hidden" name="forum" id="forum" value="<{$forum_id}>" />
        <input type="hidden" name="type" value="<{$type}>" />
        <input type="submit" name="refresh" value="<{$smarty.const._MD_GO}>" />
        </form>
        <{/strip}>
        </td>
    </tr>
</table>
<!-- end forum main table -->

<br />

<div>
<div style="float: left; text-align:left;">
<{$forum_addpoll}><{$forum_post_or_register}>
</div>
<div style="float: right; text-align:right;">
<{$forum_pagenav}>
</div>
</div>
<div class="clear"></div>

<br style="clear: both;" />
<br />
<div>
<div style="float: left; text-align: left;">
    <{$img_newposts}> = <{$smarty.const._MD_NEWPOSTS}> (<{$img_hotnewposts}> = <{$smarty.const._MD_MORETHAN}>) <br />
    <{$img_folder}> = <{$smarty.const._MD_NONEWPOSTS}> (<{$img_hotfolder}> = <{$smarty.const._MD_MORETHAN2}>) <br />
    <{$img_locked}> = <{$smarty.const._MD_TOPICLOCKED}> <br />
    <{$img_sticky}> = <{$smarty.const._MD_TOPICSTICKY}> <br />
    <{$img_digest}> = <{$smarty.const._MD_TOPICDIGEST}> <br />
    <{$img_poll}> = <{$smarty.const._MD_TOPICHASPOLL}>
</div>
<div style="float: right; text-align: right;">
<form action="search.php" method="get">
<input name="term" id="term" type="text" size="15" />
<input type="hidden" name="forum" id="forum" value="<{$forum_id}>" />
<input type="hidden" name="sortby" id="sortby" value="p.post_time desc" />
<input type="hidden" name="since" id="since" value="<{$forum_since}>" />
<input type="hidden" name="action" id="action" value="yes" />
<input type="hidden" name="searchin" id="searchin" value="both" />
<input type="submit" class="formButton" value="<{$smarty.const._MD_SEARCH}>" /><br />
[<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/search.php"><{$smarty.const._MD_ADVSEARCH}></a>]
</form><br />
<{$forum_jumpbox}>
</div>
</div>
<div class="clear"></div>
<br style="clear: both;" />
<br />

<div>
<div style="float: left;">
<{foreach item=perm from=$permission_table}>
<div><{$perm}></div>
<{/foreach}>
</div>
<{if $rss_button OR $viewer_level gt 1}>
<div style="float: right; text-align: right;">
    <{if $viewer_level gt 1}>
        <{if $mode gt 0}>
        <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum_id}>&amp;mode=0" target="_self" title="<{$smarty.const._MD_TYPE_VIEW}>"><{$smarty.const._MD_TYPE_VIEW}></a> 
        <{else}>
        <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum_id}>&amp;mode=1" target="_self" title="<{$smarty.const._MD_TYPE_ADMIN}>"><{$smarty.const._MD_TYPE_ADMIN}></a>
        <{/if}> 
    <{/if}>
    <{if $rss_button}>
    <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?f=<{$forum_id}>" target="_blank" title="RSS FEED"><{$rss_button}></a>
    <{/if}>
</div>
<{/if}>
</div>
<div class="clear"></div>

<br style="clear: both;" />
<br />
<{if $online}><{include file="db:newbb_online.html"}><{/if}>
<{include file='db:system_notification_select.html'}>
<!-- end module contents -->


même en essayant de mettre ce que tu ma dit dans un poste plus haut cela ne change rien aurai tu une idée ?

Posté le : 28/11/2010 13:06
Partager Twitter Partagez cette article sur GG+
Re: Theme iphone
Semi pro
Inscrit: 08/06/2005 17:15
De Where ?
Messages: 513
peut-être un peu trop de div class=clear et de clear: both dans le template

Posté le : 28/11/2010 13:13
Partager Twitter Partagez cette article sur GG+
Re: Theme iphone
Semi pro
Inscrit: 01/08/2005 19:06
Messages: 1851
Je les ai tous enlever et mi ton code voir plus haut dans un autre poste et rien ne change une autre idée ?

Posté le : 28/11/2010 13:23
Partager Twitter Partagez cette article sur GG+
Re: Theme iphone
Semi pro
Inscrit: 08/06/2005 17:15
De Where ?
Messages: 513
je vais tester celà

Posté le : 28/11/2010 13:39
Partager Twitter Partagez cette article sur GG+
Re: Theme iphone
Semi pro
Inscrit: 01/08/2005 19:06
Messages: 1851
Merci kris en tous les cas j'espère que ce thème smartphone sera par default sur les prochaine version de xoops car il mérite sa place dans xoops

Posté le : 28/11/2010 13:50
Partager Twitter Partagez cette article sur GG+
Re: Theme iphone
Semi pro
Inscrit: 08/06/2005 17:15
De Where ?
Messages: 513
on va passer en force , dans le template surchargé :
<{include_php file="$xoops_rootpath/class/mobile_device_detect.php"}>
<{
php}>
    
$mobile_browser mobile_device_detect();
    
$this->assign("mobile_browser"$mobile_browser);
<{/
php}>
<{if 
$mobile_browser == true}> 
    
mon code html de template pour vue "mobile" 
<{else}> 
    
mon code html normal 
<{/if}>

tester sur newbb 1.16 et celà fonctionne

viewforum
Open in new window


forum index
Open in new window

Posté le : 28/11/2010 15:20
Partager Twitter Partagez cette article sur GG+
Re: Theme iphone
Semi pro
Inscrit: 01/08/2005 19:06
Messages: 1851
sur 3.08 sa ne fonctionne pas même en enlevant toutes les class clear et both

Posté le : 28/11/2010 17:36
Partager Twitter Partagez cette article sur GG+
Re: Theme iphone
Semi pro
Inscrit: 08/06/2005 17:15
De Where ?
Messages: 513
voici le code des deux templates que j'ai surchargé, à mettre dans themename/modules/newbb/

newbb_index.html
<{include_php file="$xoops_rootpath/class/mobile_device_detect.php"}>
<{
php}>
    
$mobile_browser mobile_device_detect();
    
$this->assign("mobile_browser"$mobile_browser);
<{/
php}>
<{if 
$mobile_browser == true}>
    <
div id="index_welcome">
        <
div class="title"><a href="<{$xoops_url}>/modules/newbb/"><{$lang_welcomemsg}></a></div>
    </
div>

    <
div class="dropdown">
    <{if 
$menumode eq 0}>

        <
select
            name
="mainoption" id="mainoption"
            
class="menu"
            
onchange="if(this.options[this.selectedIndex].value.length >0 )    { window.document.location=this.options[this.selectedIndex].value;}"
        
>
            <
option value=""><{$smarty.const._MD_MAINFORUMOPT}></option>
            <
option value="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_READ}></option>
            <
option value="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></option>
            <
option value="">--------</option>
            <
option value="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></option>
            <
option value="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></option>
            <
option value="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></option>
            <
option value="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></option>
            <
option value="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></option>
            <
option value="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></option>
            <
option value="">--------</option>
            <{foreach 
item=menu from=$menumode_other}>
            <
option value="<{$menu.link}>"><{$menu.title}></option>
            <{/foreach}>
            <{if 
$forum_index_cpanel}>
            <
option value="">--------</option>
            <
option value="<{$forum_index_cpanel.link}>"><{$forum_index_cpanel.name}></option>
            <{/if}>
        </
select>

    <{elseif 
$menumode eq 1}>
        <
div id="mainoption" class="menu">
        <
table><tr><td>
            <
class="item" href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a>
            <
class="item" href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a>
            <
div class="separator"></div>
            <
class="item" href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a>
            <
class="item" href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a>
            <
class="item" href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a>
            <
class="item" href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a>
            <
class="item" href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a>
            <
class="item" href="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></a>
            <
div class="separator"></div>
            <{foreach 
item=menu from=$menumode_other}>
            <
class="item" href="<{$menu.link}>"><{$menu.title}></a>
            <{/foreach}>
            <{if 
$forum_index_cpanel}>
            <
div class="separator"></div>
            <
class="item" href="<{$forum_index_cpanel.link}>"><{$forum_index_cpanel.name}></a>
            <{/if}>
        </
td></tr></table>
        </
div>
        <
script type="text/javascript">document.getElementById("mainoption").onmouseout closeMenu;</script>
        <div class="menubar"><a href="" onclick="openMenu(event, 'mainoption');return false;"><{$smarty.const._MD_MAINFORUMOPT}></a></div>

    <{elseif $menumode eq 2}>

        <div class="menu">
            <ul>
                <li>
                    <div class="item"><strong><{$smarty.const._MD_MAINFORUMOPT}></strong></div>
                    <ul>
                    <li><table><tr><td>
                        <div class="item"><a href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a></div>
                        <div class="item"><a href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a></div>
                        <div class="separator"></div>
                        <div class="item"><a href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a></div>
                        <div class="item"><a href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a></div>
                        <div class="item"><a href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a></div>
                        <div class="item"><a href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a></div>
                        <div class="item"><a href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a></div>
                        <div class="item"><a href="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></a></div>
                        <div class="separator"></div>
                        <{foreach item=menu from=$menumode_other}>
                        <div class="item"><a href="<{$menu.link}>"><{$menu.title}></a></div>
                        <{/foreach}>
                        <{if $forum_index_cpanel}>
                        <div class="separator"></div>
                        <div class="item"><a href="<{$forum_index_cpanel.link}>"><{$forum_index_cpanel.name}></a></div>
                        <{/if}>
                    </td></tr></table></li>
                    </ul>
                </li>
            </ul>
        </div>
    <{/if}>
    </div>
    <br clear="all" />
    <br clear="all" />

    <!-- start forum categories -->
    <{foreach item=category from=$categories}>
    <table class="index_category" cellspacing="0" width="100%">
        <tr class="head">
            <td width="3%" valign="middle" align="center"><img onclick="ToggleBlock2('cat_<{$category.cat_id}>', this)" src="<{$category.cat_display_icon}>" alt="" /></td>
            <{if $category.cat_image}>
            <td width="8%"><img src="<{$category.cat_image}>" alt="<{$category.cat_title}>" /></td>
            <{/if}>
            <td align="left">
                <a href="<{$xoops_url}>/modules/newbb/index.php?cat=<{$category.cat_id}>"><{$category.cat_title}></a>
                <p class="desc"><{$category.cat_description}></p>
            </td>
            <{if $category.cat_sponsor}>
            <td width="15%" nowrap="nowrap" align="right">
            <p class="desc"><a href="<{$category.cat_sponsor.link}>" title="<{$category.cat_sponsor.title}>" target="_blank"><{$category.cat_sponsor.title}></a></p>
            </td>
            <{/if}>
        </tr>
    </table>

    <div id="cat_<{$category.cat_id}>" style="display: <{$category.cat_display}>">
    <table cellspacing="1" width="100%">
    <{if $category.forums}>
        <tr class="head" align="center">
            <th width="5%">&nbsp;</th>
            <{if $subforum_display == "expand"}>
            <td colspan="3" nowrap="nowrap" align="left"><{$smarty.const._MD_FORUM}></td>
            <{else}>
            <th nowrap="nowrap" align="left"><{$smarty.const._MD_FORUM}></td>
            <{/if}>
            <th width="9%" nowrap="nowrap"><{$smarty.const._MD_TOPICS}></th>
            <th width="9%" nowrap="nowrap"><{$smarty.const._MD_POSTS}></th>
        </tr>
    <{/if}>

    <!-- start forums -->

    <{if $subforum_display == "expand"}>

    <{foreach item=forum from=$category.forums}>
        <tr>
          <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td>
          <td colspan="2" class="odd">
            <div id="index_forum">
                <span class="item"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a>
                <br /><{$forum.forum_desc}>
                </span>
            </div>
          </td>
          <td class="even" align="center" valign="middle"><{$forum.forum_topics}> </td>
          <td class="odd" align="center" valign="middle"><{$forum.forum_posts}> </td>
          <td class="even" align="right" valign="middle"><{$forum.forum_lastpost_time}> <br />
            <{$forum.forum_lastpost_icon}> <br />
            <{$forum.forum_lastpost_user}>
          </td>
        </tr>
    <{if $forum.subforum}>
        <tr class="head" >
          <td width="5%">&nbsp;</td>
          <td width="5%" align="center"><{$img_subforum}>&nbsp;</td>
          <td colspan="4" nowrap="nowrap" align="left"><{$smarty.const._MD_SUBFORUMS}></td>
        </tr>
    <{foreach item=subforum from=$forum.subforum}>
        <tr>
          <td class="odd" width="5%">&nbsp;</td>
          <td class="even" align="center" valign="middle" width="5%"><{$subforum.forum_folder}></td>
          <td width="52%" class="odd">
            <div id="index_forum">
                <span class="item"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$subforum.forum_id}>"><strong><{$subforum.forum_name}></strong></a>
                <{if $rss_enable}>
                (<a href="<{$xoops_url}>/modules/newbb/rss.php?f=<{$subforum.forum_id}>" target="_blank" title="RSS feed">RSS</a>)
                <{/if}>
                <br /><{$subforum.forum_desc}>
                </span>
                <{if $subforum.forum_moderators}>
                <span class="extra">
                <{$smarty.const._MD_MODERATOR}>: <{$subforum.forum_moderators}>
                </span>
                <{/if}>
            </div>
          </td>
          <td class="even" width="9%" align="center" valign="middle"><{$subforum.forum_topics}> </td>
          <td class="odd" width="9%" align="center" valign="middle"><{$subforum.forum_posts}> </td>
          <td class="even" width="20%" align="right" valign="middle"><{$subforum.forum_lastpost_time}> <br />
            <{$subforum.forum_lastpost_icon}> <br />
            <{$subforum.forum_lastpost_user}>
          </td>
       </tr>
    <{/foreach}>
    <{/if}>
    <{/foreach}>

    <{elseif $subforum_display == "collapse"}>

    <{foreach item=forum from=$category.forums}>
        <tr>
            <{if $forum.subforum}>
            <td class="even" rowspan="2" align="center" valign="middle"><{$forum.forum_folder}></td>
            <{else}>
            <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td>
            <{/if}>
            <td class="odd">
            <div id="index_forum">
                <span class="item"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a>
                <{if $rss_enable}>
                (<a href="<{$xoops_url}>/modules/newbb/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>)
                <{/if}>
                <br /><{$forum.forum_desc}>
                </span>
                <{if $forum.forum_moderators}>
                <!--<span class="extra">
                <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}>
                </span>
                --><{/if}>
            </div>
            </td>
            <td class="even" align="center" valign="middle"><{$forum.forum_topics}> </td>
            <td class="odd" align="center" valign="middle"><{$forum.forum_posts}> </td>
            <td class="even" align="right" valign="middle"><{$forum.forum_lastpost_time}> <br />
                <!--<{$forum.forum_lastpost_icon}> <br />-->
                <{$forum.forum_lastpost_user}>  </td>
        </tr>
        <{if $forum.subforum}>
        <tr>
            <td class="odd" colspan="4" align="left"><{$smarty.const._MD_SUBFORUMS}>&nbsp;<{$img_subforum}>&nbsp;
                <{foreach item=subforum from=$forum.subforum}>
                &nbsp;[<a href="viewforum.php?forum=<{$subforum.forum_id}>"><{$subforum.forum_name}></a>]
                <{/foreach}>
            </td>
        </tr>
        <{/if}>
    <{/foreach}>

    <{else}>

    <{foreach item=forum from=$category.forums}>
        <tr>
            <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td>
            <td class="odd">
            <div id="index_forum">
                <span class="item"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a>
                <{if $rss_enable}>
                (<a href="<{$xoops_url}>/modules/newbb/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>)
                <{/if}>
                <br /><{$forum.forum_desc}>
                </span>
                <{if $forum.forum_moderators}>
                <span class="extra">
                <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}>
                </span>
                <{/if}>
            </div>
            </td>
            <td class="even" align="center" valign="middle"><{$forum.forum_topics}> </td>
            <td class="odd" align="center" valign="middle"><{$forum.forum_posts}> </td>
            <td class="even" align="right" valign="middle"><{$forum.forum_lastpost_time}> <br />
                <{$forum.forum_lastpost_icon}> <br />
                <{$forum.forum_lastpost_user}>
            </td>
        </tr>
    <{/foreach}>

    <{/if}>
      <!-- end forums -->
    </table>
    </div>
    <{/foreach}>
    <!-- end forum categories -->
    <div style="float: right; text-align: right;">
        <form action="search.php" method="post" name="search" id="search">
            <input name="term" id="term" type="text" size="20" />
            <input type="hidden" name="forum" id="forum" value="all" />
            <input type="hidden" name="sortby" id="sortby" value="p.post_time desc" />
            <input type="hidden" name="searchin" id="searchin" value="both" />
            <input type="submit" name="submit" id="submit" value="<{$smarty.const._MD_SEARCH}>" />
            <br />
            [ <a href="<{$xoops_url}>/modules/newbb/search.php"><{$smarty.const._MD_ADVSEARCH}></a> ]
        </form>
    </div>
    <!-- end module contents -->
<{else}>
    <div id="index_welcome">
        <div class="title"><a href="<{$xoops_url}>/modules/newbb/"><{$lang_welcomemsg}></a></div>
        <div class="desc"><{$smarty.const._MD_TOSTART}></div>
    <div class="desc">Pour visualiser les dernières contributions sur tous nos forums vous pouvez cliquer sur ce <strong><a href="<{$xoops_url}>/modules/newbb/viewall.php" alt="Dernières contributions">lien</a></strong></div>
        <div class="visit"><{$lang_currenttime}>
            <br /><{$lang_lastvisit}>
            <br /><{$smarty.const._MD_TOTALTOPICSC}><strong><{$total_topics}></strong> | <{$smarty.const._MD_TOTALPOSTSC}><strong><{$total_posts}></strong>
        </div>
    </div>

    <div class="dropdown">
    <{if $menumode eq 0}>

        <select
            name="mainoption" id="mainoption"
            class="menu"
            onchange="if(this.options[this.selectedIndex].value.length >0 )    { window.document.location=this.options[this.selectedIndex].value;}"
        >
            <option value=""><{$smarty.const._MD_MAINFORUMOPT}></option>
            <option value="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_READ}></option>
            <option value="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></option>
            <option value="">--------</option>
            <option value="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></option>
            <option value="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></option>
            <option value="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></option>
            <option value="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></option>
            <option value="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></option>
            <option value="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></option>
            <option value="">--------</option>
            <{foreach item=menu from=$menumode_other}>
            <option value="<{$menu.link}>"><{$menu.title}></option>
            <{/foreach}>
            <{if $forum_index_cpanel}>
            <option value="">--------</option>
            <option value="<{$forum_index_cpanel.link}>"><{$forum_index_cpanel.name}></option>
            <{/if}>
        </select>

    <{elseif $menumode eq 1}>
        <div id="mainoption" class="menu">
        <table><tr><td>
            <a class="item" href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a>
            <a class="item" href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a>
            <div class="separator"></div>
            <a class="item" href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a>
            <a class="item" href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a>
            <a class="item" href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a>
            <a class="item" href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a>
            <a class="item" href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a>
            <a class="item" href="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></a>
            <div class="separator"></div>
            <{foreach item=menu from=$menumode_other}>
            <a class="item" href="<{$menu.link}>"><{$menu.title}></a>
            <{/foreach}>
            <{if $forum_index_cpanel}>
            <div class="separator"></div>
            <a class="item" href="<{$forum_index_cpanel.link}>"><{$forum_index_cpanel.name}></a>
            <{/if}>
        </td></tr></table>
        </div>
        <script type="text/javascript">document.getElementById("mainoption").onmouseout = closeMenu;</script>
        <div class="menubar"><a href="" onclick="openMenu(event, 'mainoption');return false;"><{$smarty.const._MD_MAINFORUMOPT}></a></div>

    <{elseif $menumode eq 2}>

        <div class="menu">
            <ul>
                <li>
                    <div class="item"><strong><{$smarty.const._MD_MAINFORUMOPT}></strong></div>
                    <ul>
                    <li><table><tr><td>
                        <div class="item"><a href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a></div>
                        <div class="item"><a href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a></div>
                        <div class="separator"></div>
                        <div class="item"><a href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a></div>
                        <div class="item"><a href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a></div>
                        <div class="item"><a href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a></div>
                        <div class="item"><a href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a></div>
                        <div class="item"><a href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a></div>
                        <div class="item"><a href="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></a></div>
                        <div class="separator"></div>
                        <{foreach item=menu from=$menumode_other}>
                        <div class="item"><a href="<{$menu.link}>"><{$menu.title}></a></div>
                        <{/foreach}>
                        <{if $forum_index_cpanel}>
                        <div class="separator"></div>
                        <div class="item"><a href="<{$forum_index_cpanel.link}>"><{$forum_index_cpanel.name}></a></div>
                        <{/if}>
                    </td></tr></table></li>
                    </ul>
                </li>
            </ul>
        </div>
    <{/if}>
    </div>
    <br clear="all" />
    <br clear="all" />

    <!-- start forum categories -->
    <{foreach item=category from=$categories}>
    <table class="index_category" cellspacing="0" width="100%">
        <tr class="head">
            <td width="3%" valign="middle" align="center"><img onclick="ToggleBlock2('cat_<{$category.cat_id}>', this)" src="<{$category.cat_display_icon}>" alt="" /></td>
            <{if $category.cat_image}>
            <td width="8%"><img src="<{$category.cat_image}>" alt="<{$category.cat_title}>" /></td>
            <{/if}>
            <td align="left">
                <a href="<{$xoops_url}>/modules/newbb/index.php?cat=<{$category.cat_id}>"><{$category.cat_title}></a>
                <p class="desc"><{$category.cat_description}></p>
            </td>
            <{if $category.cat_sponsor}>
            <td width="15%" nowrap="nowrap" align="right">
            <p class="desc"><a href="<{$category.cat_sponsor.link}>" title="<{$category.cat_sponsor.title}>" target="_blank"><{$category.cat_sponsor.title}></a></p>
            </td>
            <{/if}>
        </tr>
    </table>

    <div id="cat_<{$category.cat_id}>" style="display: <{$category.cat_display}>">
    <table cellspacing="1" width="100%">
    <{if $category.forums}>
        <tr class="head" align="center">
            <th width="5%">&nbsp;</th>
            <{if $subforum_display == "expand"}>
            <td colspan="2" width="57%" nowrap="nowrap" align="left"><{$smarty.const._MD_FORUM}></td>
            <{else}>
            <th width="57%" nowrap="nowrap" align="left"><{$smarty.const._MD_FORUM}></td>
            <{/if}>
            <th width="9%" nowrap="nowrap"><{$smarty.const._MD_TOPICS}></th>
            <th width="9%" nowrap="nowrap"><{$smarty.const._MD_POSTS}></th>
            <th width="20%" nowrap="nowrap"><{$smarty.const._MD_LASTPOST}></th>
        </tr>
    <{/if}>

    <!-- start forums -->

    <{if $subforum_display == "expand"}>

    <{foreach item=forum from=$category.forums}>
        <tr>
          <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td>
          <td colspan="2" class="odd">
            <div id="index_forum">
                <span class="item"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a>
                <{if $rss_enable}>
                (<a href="<{$xoops_url}>/modules/newbb/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>)
                <{/if}>
                <br /><{$forum.forum_desc}>
                </span>
                <{if $forum.forum_moderators}>
                <span class="extra">
                <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}>
                </span>
                <{/if}>
            </div>
          </td>
          <td class="even" align="center" valign="middle"><{$forum.forum_topics}> </td>
          <td class="odd" align="center" valign="middle"><{$forum.forum_posts}> </td>
          <td class="even" align="right" valign="middle"><{$forum.forum_lastpost_time}> <br />
            <{$forum.forum_lastpost_icon}> <br />
            <{$forum.forum_lastpost_user}>
          </td>
        </tr>
    <{if $forum.subforum}>
        <tr class="head" >
          <td width="5%">&nbsp;</td>
          <td width="5%" align="center"><{$img_subforum}>&nbsp;</td>
          <td colspan="4" nowrap="nowrap" align="left"><{$smarty.const._MD_SUBFORUMS}></td>
        </tr>
    <{foreach item=subforum from=$forum.subforum}>
        <tr>
          <td class="odd" width="5%">&nbsp;</td>
          <td class="even" align="center" valign="middle" width="5%"><{$subforum.forum_folder}></td>
          <td width="52%" class="odd">
            <div id="index_forum">
                <span class="item"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$subforum.forum_id}>"><strong><{$subforum.forum_name}></strong></a>
                <{if $rss_enable}>
                (<a href="<{$xoops_url}>/modules/newbb/rss.php?f=<{$subforum.forum_id}>" target="_blank" title="RSS feed">RSS</a>)
                <{/if}>
                <br /><{$subforum.forum_desc}>
                </span>
                <{if $subforum.forum_moderators}>
                <span class="extra">
                <{$smarty.const._MD_MODERATOR}>: <{$subforum.forum_moderators}>
                </span>
                <{/if}>
            </div>
          </td>
          <td class="even" width="9%" align="center" valign="middle"><{$subforum.forum_topics}> </td>
          <td class="odd" width="9%" align="center" valign="middle"><{$subforum.forum_posts}> </td>
          <td class="even" width="20%" align="right" valign="middle"><{$subforum.forum_lastpost_time}> <br />
            <{$subforum.forum_lastpost_icon}> <br />
            <{$subforum.forum_lastpost_user}>
          </td>
       </tr>
    <{/foreach}>
    <{/if}>
    <{/foreach}>

    <{elseif $subforum_display == "collapse"}>

    <{foreach item=forum from=$category.forums}>
        <tr>
            <{if $forum.subforum}>
            <td class="even" rowspan="2" align="center" valign="middle"><{$forum.forum_folder}></td>
            <{else}>
            <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td>
            <{/if}>
            <td class="odd">
            <div id="index_forum">
                <span class="item"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a>
                <{if $rss_enable}>
                (<a href="<{$xoops_url}>/modules/newbb/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>)
                <{/if}>
                <br /><{$forum.forum_desc}>
                </span>
                <{if $forum.forum_moderators}>
                <!--<span class="extra">
                <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}>
                </span>
                --><{/if}>
            </div>
            </td>
            <td class="even" align="center" valign="middle"><{$forum.forum_topics}> </td>
            <td class="odd" align="center" valign="middle"><{$forum.forum_posts}> </td>
            <td class="even" align="right" valign="middle"><{$forum.forum_lastpost_time}> <br />
                <!--<{$forum.forum_lastpost_icon}> <br />-->
                <{$forum.forum_lastpost_user}>  </td>
        </tr>
        <{if $forum.subforum}>
        <tr>
            <td class="odd" colspan="4" align="left"><{$smarty.const._MD_SUBFORUMS}>&nbsp;<{$img_subforum}>&nbsp;
                <{foreach item=subforum from=$forum.subforum}>
                &nbsp;[<a href="viewforum.php?forum=<{$subforum.forum_id}>"><{$subforum.forum_name}></a>]
                <{/foreach}>
            </td>
        </tr>
        <{/if}>
    <{/foreach}>

    <{else}>

    <{foreach item=forum from=$category.forums}>
        <tr>
            <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td>
            <td class="odd">
            <div id="index_forum">
                <span class="item"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a>
                <{if $rss_enable}>
                (<a href="<{$xoops_url}>/modules/newbb/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>)
                <{/if}>
                <br /><{$forum.forum_desc}>
                </span>
                <{if $forum.forum_moderators}>
                <span class="extra">
                <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}>
                </span>
                <{/if}>
            </div>
            </td>
            <td class="even" align="center" valign="middle"><{$forum.forum_topics}> </td>
            <td class="odd" align="center" valign="middle"><{$forum.forum_posts}> </td>
            <td class="even" align="right" valign="middle"><{$forum.forum_lastpost_time}> <br />
                <{$forum.forum_lastpost_icon}> <br />
                <{$forum.forum_lastpost_user}>
            </td>
        </tr>
    <{/foreach}>

    <{/if}>
      <!-- end forums -->
    </table>
    </div>
    <{/foreach}>
    <!-- end forum categories -->

    <br clear="all" />
    <div style="float: left; text-align: left;">
        <{$img_hotfolder}> = <{$smarty.const._MD_NEWPOSTS}><br />
        <{$img_folder}> = <{$smarty.const._MD_NONEWPOSTS}><br />
        <{$img_locked_newposts}> = <{$smarty.const._MD_INACTIVEFORUM_NEWPOSTS}><br />
        <{$img_locked_nonewposts}> = <{$smarty.const._MD_INACTIVEFORUM_NONEWPOSTS}>
    </div>
    <div style="float: right; text-align: right;">
        <form action="search.php" method="post" name="search" id="search">
            <input name="term" id="term" type="text" size="20" />
            <input type="hidden" name="forum" id="forum" value="all" />
            <input type="hidden" name="sortby" id="sortby" value="p.post_time desc" />
            <input type="hidden" name="searchin" id="searchin" value="both" />
            <input type="submit" name="submit" id="submit" value="<{$smarty.const._MD_SEARCH}>" />
            <br />
            [ <a href="<{$xoops_url}>/modules/newbb/search.php"><{$smarty.const._MD_ADVSEARCH}></a> ]
        </form>
    </div>

    <br clear="all" />
    <{$rss_button}>
    <div style="float:right;text-align:right;padding-top: 5px;"><img src="<{$xoops_url}>/modules/newbb/images/cbb.png" alt="powered by CBB" /></div>
    <br />
    <br />
    <{if $online}><{include file='db:newbb_online.html'}><{/if}>
    <{include file='db:system_notification_select.html'}>
    <!-- end module contents -->
<{/if}>


newbb_viewforum.html
<{include_php file="$xoops_rootpath/class/mobile_device_detect.php"}>
<{
php}>
    
$mobile_browser mobile_device_detect();
    
$this->assign("mobile_browser"$mobile_browser);
<{/
php}>
<{if 
$mobile_browser == true}>

    <
div id="forum_header">
    <
div><{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/index.php"><{$forum_index_title}></a></div>
    <{if 
$parent_forum}>
    <
div>&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$parent_forum}>"><{$parent_name}></a></div>
    <
div>&nbsp;&nbsp;&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>"><{$forum_name}></a></div>
    <{else}>
    <
div>&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>"><{$forum_name}></a></div>
    <{/if}>
    </
div>

    <
br clear="all" />

    <{if 
$subforum}>
    <
table cellspacing="1">

        <
tr class="head" align="center">
          <
td width="5%">&nbsp;</td>
          <
td nowrap="nowrap" align="left"><{$smarty.const._MD_SUBFORUMS}></td>
          <
td nowrap="nowrap"><{$smarty.const._MD_TOPICS}></td>
          <
td nowrap="nowrap"><{$smarty.const._MD_POSTS}></td>
          <
td nowrap="nowrap"><{$smarty.const._MD_LASTPOST}></td>
        </
tr>

        <!-- 
start subforums -->
      <{foreach 
item=sforum from=$subforum}> <{if $sforum.forum_permission}>
      <
tr>
        <
td class="even" align="center" valign="middle"><{$sforum.forum_folder}></td>
        <
td class="odd" onclick="window.location='<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$sforum.forum_id}>'"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$sforum.forum_id}>"><strong><{$sforum.forum_name}></strong></a><br />
            <{
$sforum.forum_desc}>
        </
td>
        <
td class="even" align="center" valign="middle"><{$sforum.forum_topics}></td>
        <
td class="odd" align="center" valign="middle"><{$sforum.forum_posts}></td>
        <
td class="even" valign="middle"><{$sforum.forum_lastpost_time}><br />
            <{
$sforum.forum_lastpost_user}>    <{$sforum.forum_lastpost_icon}>
        </
td>
      </
tr>
        <{/if}>
        <{/foreach}>
      <!-- 
end subforums -->

    </
table>
    <
br clear="all" />
    <{/if}>

    <
br clear="all" />
    <
div>
    <
div class="dropdown">
    <{if 
$menumode eq 0}>

        <
select
            name
="forumoption" id="forumoption"
            
class="menu"    onchange="if(this.options[this.selectedIndex].value.length >0 )    { window.location=this.options[this.selectedIndex].value;}"
        
>
            <
option value=""><{$smarty.const._MD_FORUMOPTION}></option>
            <
option value="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></option>
            <
option value="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></option>
            <
option value="">--------</option>
            <
option value="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></option>
            <
option value="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></option>
            <
option value="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></option>
            <
option value="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></option>
            <
option value="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></option>
            <
option value="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></option>
            <
option value="">--------</option>
            <{foreach 
item=menu from=$menumode_other}>
            <
option value="<{$menu.link}>"><{$menu.title}></option>
            <{/foreach}>
        </
select>

    <{elseif 
$menumode eq 1}>
        <
div id="forumoption" class="menu">
        <
table><tr><td>
            <
class="item" href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a>
            <
class="item" href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a>
            <
div class="separator"></div>
            <
class="item" href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a>
            <
class="item" href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a>
            <
class="item" href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a>
            <
class="item" href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a>
            <
class="item" href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a>
            <
class="item" href="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></a>
            <
div class="separator"></div>
            <{foreach 
item=menu from=$menumode_other}>
            <
class="item" href="<{$menu.link}>"><{$menu.title}></a>
            <{/foreach}>
        </
td></tr></table>
        </
div>
        <
script type="text/javascript">document.getElementById("forumoption").onmouseout closeMenu;</script>
        <div class="menubar"><a href="" onclick="openMenu(event, 'forumoption');return false;"><{$smarty.const._MD_FORUMOPTION}></a></div>

    <{elseif $menumode eq 2}>
        <div class="menu">
            <ul>
                <li>
                    <div class="item"><strong><{$smarty.const._MD_FORUMOPTION}></strong></div>
                    <ul>
                    <li><table><tr><td>
                        <div class="item"><a href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a></div>
                        <div class="item"><a href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a></div>
                        <div class="separator"></div>
                        <div class="item"><a href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a></div>
                        <div class="item"><a href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a></div>
                        <div class="item"><a href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a></div>
                        <div class="item"><a href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a></div>
                        <div class="item"><a href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a></div>
                        <div class="separator"></div>
                        <{foreach item=menu from=$menumode_other}>
                        <div class="item"><a href="<{$menu.link}>"><{$menu.title}></a></div>
                        <{/foreach}>
                    </td></tr></table></li>
                    </ul>
                </li>
            </ul>
        </div>
    <{/if}>
    </div>
    <div style="padding: 5px;float: right; text-align:right;">
    <{$forum_pagenav}>
    </div>
    </div>
    <br clear="all" />
    <br clear="all" />

    <table class="outer" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
        <tr class="odd">
          <td  width="5%">&nbsp;</td>
          <td>&nbsp;<strong><a href="<{$h_topic_link}>"><{$smarty.const._MD_TOPICS}></a></strong></th>
          <td width="10%" align="center" nowrap="nowrap"><strong><a href="<{$h_poster_link}>"><{$smarty.const._MD_POSTER}></a></strong></td>
          <td width="10%" align="center" nowrap="nowrap"><strong><a href="<{$h_publish_link}>"><{$smarty.const._MD_TOPICTIME}></a></strong></td>
          <td width="5%" align="center" nowrap="nowrap"><strong><a href="<{$h_reply_link}>"><{$smarty.const._MD_REPLIES}></a></strong></td>
        </tr>

        <{if $sticky > 0}>
        <tr class="head">
            <th>&nbsp;</th>
            <{if $rating_enable}>
            <td colspan="7"><strong><{$smarty.const._MD_IMTOPICS}></strong></td>
            <{else}>
            <th colspan="6"><strong><{$smarty.const._MD_IMTOPICS}></strong></th>
            <{/if}>
        </tr>
        <{/if}>

        <!-- start forum topic -->

        <{foreach name=loop item=topic from=$topics}>

        <{if $topic.stick AND $smarty.foreach.loop.iteration == $sticky+1}>
        <tr class="head">
            <th>&nbsp;</th>
            <{if $rating_enable}>
            <td colspan="7"><strong><{$smarty.const._MD_NOTIMTOPICS}></strong></td>
            <{else}>
            <th colspan="6"><strong><{$smarty.const._MD_NOTIMTOPICS}></strong></th>
            <{/if}>
        </tr>
        <{/if}>

        <tr class="<{cycle values="even,odd"}>">
            <td width="4%" align="center"><{$topic.topic_folder}></td>
    <!--        <td width="4%" align="center"><{$topic.topic_icon}></td> -->
            <td>&nbsp;<a href="<{$topic.topic_link}>" title="<{$topic.topic_excerpt}>">
                <{$topic.topic_title}></a><{$topic.attachment}> <{$topic.topic_page_jump}>
            </td>
            <td align="center" valign="middle"><{$topic.topic_poster}></td>
            <td align="center" valign="middle"><{$topic.topic_time}></td>
            <td align="center" valign="middle"><{$topic.topic_replies}></td>

        </tr>

        <{/foreach}>

        <!-- end forum topic -->

        <tr class="foot">
            <{if $rating_enable}>
            <td colspan="9" align="center"><{else}><td colspan="8" align="center"><{/if}>
            <{strip}>
            <form method="get" action="viewforum.php">
            <strong><{$smarty.const._MD_SORTEDBY}></strong>&nbsp;<{$forum_selection_sort}>&nbsp;<{$forum_selection_order}>&nbsp;<{$forum_selection_since}>&nbsp;
            <input type="hidden" name="forum" id="forum" value="<{$forum_id}>" />
            <input type="submit" name="refresh" value="<{$smarty.const._MD_GO}>" />
            </form>
            <{/strip}>
            </td>
        </tr>
    </table>
    <!-- end forum main table -->

    <br clear="all" />

    <div style="float: left; text-align:left;">
    <{$forum_addpoll}><{$forum_post_or_register}>
    </div>
    <div style="float: right; text-align:right;">
    <{$forum_pagenav}>
    </div>

    <div style="float: right; text-align: right;">
    <form action="search.php" method="get">
    <input name="term" id="term" type="text" size="15" />
    <input type="hidden" name="forum" id="forum" value="<{$forum_id}>" />
    <input type="hidden" name="sortby" id="sortby" value="p.post_time desc" />
    <input type="hidden" name="since" id="since" value="<{$forum_since}>" />
    <input type="hidden" name="action" id="action" value="yes" />
    <input type="hidden" name="searchin" id="searchin" value="both" />
    <input type="submit" class="formButton" value="<{$smarty.const._MD_SEARCH}>" /><br />
    [<a href="<{$xoops_url}>/modules/newbb/search.php"><{$smarty.const._MD_ADVSEARCH}></a>]
    </form><br />
    <{$forum_jumpbox}>
    </div>
    <!-- end module contents -->
<{else}> 
    <div id="forum_header">
    <div><{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/index.php"><{$forum_index_title}></a></div>
    <{if $parent_forum}>
    <div>&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$parent_forum}>"><{$parent_name}></a></div>
    <div>&nbsp;&nbsp;&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>"><{$forum_name}></a></div>
    <{else}>
    <div>&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>"><{$forum_name}></a></div>
    <{/if}>
    </div>

    <br clear="all" />

    <{if $subforum}>
    <table cellspacing="1" class="outer" width="100%">

        <tr class="head" align="center">
          <td width="5%">&nbsp;</td>
          <td nowrap="nowrap" align="left"><{$smarty.const._MD_SUBFORUMS}></td>
          <td nowrap="nowrap"><{$smarty.const._MD_TOPICS}></td>
          <td nowrap="nowrap"><{$smarty.const._MD_POSTS}></td>
          <td nowrap="nowrap"><{$smarty.const._MD_LASTPOST}></td>
        </tr>

        <!-- start subforums -->
      <{foreach item=sforum from=$subforum}> <{if $sforum.forum_permission}>
      <tr>
        <td class="even" align="center" valign="middle"><{$sforum.forum_folder}></td>
        <td class="odd" onclick="window.location='<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$sforum.forum_id}>'"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$sforum.forum_id}>"><strong><{$sforum.forum_name}></strong></a><br />
            <{$sforum.forum_desc}>
            <{if $sforum.forum_moderators}><br/>
            <strong><{$smarty.const._MD_MODERATOR}>:&nbsp;</strong><{$sforum.forum_moderators}>
            <{/if}>
        </td>
        <td class="even" align="center" valign="middle"><{$sforum.forum_topics}></td>
        <td class="odd" align="center" valign="middle"><{$sforum.forum_posts}></td>
        <td class="even" valign="middle"><{$sforum.forum_lastpost_time}><br />
            <{$sforum.forum_lastpost_user}>    <{$sforum.forum_lastpost_icon}>
        </td>
      </tr>
        <{/if}>
        <{/foreach}>
      <!-- end subforums -->

    </table>
    <br clear="all" />
    <{/if}>

    <{if $forum_moderators}>
    <div>
    <{$smarty.const._MD_MODERATEDBY}>: <{$forum_moderators}>
    </div>
    <br clear="all" />
    <{/if}>

    <div style="padding: 5px;float: right; text-align:right;">
    <{$forum_addpoll}><{$forum_post_or_register}>
    </div>

    <br clear="all" />
    <div>
    <div class="dropdown">
    <{if $menumode eq 0}>

        <select
            name="forumoption" id="forumoption"
            class="menu"    onchange="if(this.options[this.selectedIndex].value.length >0 )    { window.location=this.options[this.selectedIndex].value;}"
        >
            <option value=""><{$smarty.const._MD_FORUMOPTION}></option>
            <option value="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></option>
            <option value="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></option>
            <option value="">--------</option>
            <option value="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></option>
            <option value="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></option>
            <option value="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></option>
            <option value="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></option>
            <option value="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></option>
            <option value="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></option>
            <option value="">--------</option>
            <{foreach item=menu from=$menumode_other}>
            <option value="<{$menu.link}>"><{$menu.title}></option>
            <{/foreach}>
        </select>

    <{elseif $menumode eq 1}>
        <div id="forumoption" class="menu">
        <table><tr><td>
            <a class="item" href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a>
            <a class="item" href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a>
            <div class="separator"></div>
            <a class="item" href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a>
            <a class="item" href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a>
            <a class="item" href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a>
            <a class="item" href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a>
            <a class="item" href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a>
            <a class="item" href="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></a>
            <div class="separator"></div>
            <{foreach item=menu from=$menumode_other}>
            <a class="item" href="<{$menu.link}>"><{$menu.title}></a>
            <{/foreach}>
        </td></tr></table>
        </div>
        <script type="text/javascript">document.getElementById("forumoption").onmouseout = closeMenu;</script>
        <div class="menubar"><a href="" onclick="openMenu(event, 'forumoption');return false;"><{$smarty.const._MD_FORUMOPTION}></a></div>

    <{elseif $menumode eq 2}>
        <div class="menu">
            <ul>
                <li>
                    <div class="item"><strong><{$smarty.const._MD_FORUMOPTION}></strong></div>
                    <ul>
                    <li><table><tr><td>
                        <div class="item"><a href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a></div>
                        <div class="item"><a href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a></div>
                        <div class="separator"></div>
                        <div class="item"><a href="<{$post_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALLPOSTS}></a></div>
                        <div class="item"><a href="<{$newpost_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_NEWPOSTS}></a></div>
                        <div class="item"><a href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a></div>
                        <div class="item"><a href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a></div>
                        <div class="item"><a href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a></div>
                        <div class="separator"></div>
                        <{foreach item=menu from=$menumode_other}>
                        <div class="item"><a href="<{$menu.link}>"><{$menu.title}></a></div>
                        <{/foreach}>
                    </td></tr></table></li>
                    </ul>
                </li>
            </ul>
        </div>
    <{/if}>
    </div>
    <div style="padding: 5px;float: right; text-align:right;">
    <{$forum_pagenav}>
    </div>
    </div>
    <br clear="all" />
    <br clear="all" />

    <table class="outer" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
        <tr class="odd">
          <td  width="5%">&nbsp;</td>
          <td>&nbsp;<strong><a href="<{$h_topic_link}>"><{$smarty.const._MD_TOPICS}></a></strong></th>
          <td width="10%" align="center" nowrap="nowrap"><strong><a href="<{$h_poster_link}>"><{$smarty.const._MD_POSTER}></a></strong></td>
          <td width="10%" align="center" nowrap="nowrap"><strong><a href="<{$h_publish_link}>"><{$smarty.const._MD_TOPICTIME}></a></strong></td>
          <td width="5%" align="center" nowrap="nowrap"><strong><a href="<{$h_reply_link}>"><{$smarty.const._MD_REPLIES}></a></strong></td>
          <td width="5%" align="center" nowrap="nowrap"><strong><a href="<{$h_views_link}>"><{$smarty.const._MD_VIEWS}></a></strong></td>
    <{if $rating_enable}>
          <td width="5%" align="center" nowrap="nowrap"><strong><a href="<{$h_rating_link}>"><{$smarty.const._MD_RATINGS}></a></strong></td>
    <{/if}>
          <td width="15%" align="center" nowrap="nowrap"><strong><a href="<{$h_date_link}>"><{$smarty.const._MD_DATE}></a></strong></td>
        </tr>

        <{if $sticky > 0}>
        <tr class="head">
            <th>&nbsp;</th>
            <{if $rating_enable}>
            <td colspan="7"><strong><{$smarty.const._MD_IMTOPICS}></strong></td>
            <{else}>
            <th colspan="6"><strong><{$smarty.const._MD_IMTOPICS}></strong></th>
            <{/if}>
        </tr>
        <{/if}>

        <!-- start forum topic -->

        <{foreach name=loop item=topic from=$topics}>

        <{if $topic.stick AND $smarty.foreach.loop.iteration == $sticky+1}>
        <tr class="head">
            <th>&nbsp;</th>
            <{if $rating_enable}>
            <td colspan="7"><strong><{$smarty.const._MD_NOTIMTOPICS}></strong></td>
            <{else}>
            <th colspan="6"><strong><{$smarty.const._MD_NOTIMTOPICS}></strong></th>
            <{/if}>
        </tr>
        <{/if}>

        <tr class="<{cycle values="even,odd"}>">
            <td width="4%" align="center"><{$topic.topic_folder}></td>
    <!--        <td width="4%" align="center"><{$topic.topic_icon}></td> -->
            <td>&nbsp;<a href="<{$topic.topic_link}>" title="<{$topic.topic_excerpt}>">
                <{$topic.topic_title}></a><{$topic.attachment}> <{$topic.topic_page_jump}>
            </td>
            <td align="center" valign="middle"><{$topic.topic_poster}></td>
            <td align="center" valign="middle"><{$topic.topic_time}></td>
            <td align="center" valign="middle"><{$topic.topic_replies}></td>
            <td align="center" valign="middle"><{$topic.topic_views}></td>
            <{if $rating_enable}>
            <td align="center" valign="middle"><{$topic.rating_img}></td>
            <{/if}>
            <td align="right" valign="middle"><{$topic.topic_last_posttime}><br />
            <{$topic.topic_last_poster}> <!--<{$topic.topic_page_jump_icon}>--></td>

        </tr>

        <{/foreach}>

        <!-- end forum topic -->

        <tr class="foot">
            <{if $rating_enable}>
            <td colspan="9" align="center"><{else}><td colspan="8" align="center"><{/if}>
            <{strip}>
            <form method="get" action="viewforum.php">
            <strong><{$smarty.const._MD_SORTEDBY}></strong>&nbsp;<{$forum_selection_sort}>&nbsp;<{$forum_selection_order}>&nbsp;<{$forum_selection_since}>&nbsp;
            <input type="hidden" name="forum" id="forum" value="<{$forum_id}>" />
            <input type="submit" name="refresh" value="<{$smarty.const._MD_GO}>" />
            </form>
            <{/strip}>
            </td>
        </tr>
    </table>
    <!-- end forum main table -->

    <br clear="all" />

    <div style="float: left; text-align:left;">
    <{$forum_addpoll}><{$forum_post_or_register}>
    </div>
    <div style="float: right; text-align:right;">
    <{$forum_pagenav}>
    </div>

    <br clear="all" />
    <br clear="all" />

    <div style="float: left; text-align: left;">
        <{$img_newposts}> = <{$smarty.const._MD_NEWPOSTS}> (<{$img_hotnewposts}> = <{$smarty.const._MD_MORETHAN}>) <br />
        <{$img_folder}> = <{$smarty.const._MD_NONEWPOSTS}> (<{$img_hotfolder}> = <{$smarty.const._MD_MORETHAN2}>) <br />
        <{$img_locked}> = <{$smarty.const._MD_TOPICLOCKED}> <br />
        <{$img_sticky}> = <{$smarty.const._MD_TOPICSTICKY}> <br />
        <{$img_digest}> = <{$smarty.const._MD_TOPICDIGEST}> <br />
        <{$img_poll}> = <{$smarty.const._MD_TOPICHASPOLL}>
    </div>
    <div style="float: right; text-align: right;">
    <form action="search.php" method="get">
    <input name="term" id="term" type="text" size="15" />
    <input type="hidden" name="forum" id="forum" value="<{$forum_id}>" />
    <input type="hidden" name="sortby" id="sortby" value="p.post_time desc" />
    <input type="hidden" name="since" id="since" value="<{$forum_since}>" />
    <input type="hidden" name="action" id="action" value="yes" />
    <input type="hidden" name="searchin" id="searchin" value="both" />
    <input type="submit" class="formButton" value="<{$smarty.const._MD_SEARCH}>" /><br />
    [<a href="<{$xoops_url}>/modules/newbb/search.php"><{$smarty.const._MD_ADVSEARCH}></a>]
    </form><br />
    <{$forum_jumpbox}>
    </div>
    <br clear="all" />
    <br clear="all" />

    <div style="float: left;">
    <{foreach item=perm from=$permission_table}>
    <div><{$perm}></div>
    <{/foreach}>
    </div>
    <div style="float: right;">
    <{$rss_button}>
    </div>

    <br clear="all" />
    <br clear="all" />
    <{if $online}><{include file='db:newbb_online.html'}><{/if}>
    <{include file='db:system_notification_select.html'}>
    <!-- end module contents -->
<{/if}>


Assures-toi que tu as bien le fichier mobile_device_detect.php dans le dossier class à la racine de ton site
Vides la totalité de tes caches xoops et navigateurs

Posté le : 28/11/2010 17:48
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
« 1 ... 3 4 5 (6) 7 8 9 10 »



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

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