Chargement...
 
[Voir/Cacher menus de gauche]
[Voir/Cacher menus de droite]

3 - Le site : philosophie, organisation, problèmes...

> Forums de discussion > 3 - Le site : philosophie, organisation, problèmes... > [ABANDONNÉ] Proposition d'un gabarit ...
Dernier post

[ABANDONNÉ] Proposition d'un gabarit ...

Hello

De passage je propose un gabarit qui permet de rectifer l'affichage de la page principale de "Mon linuxmao". En effet tout le monde sera d'accord sur le fait que c'est assez enervant d'aller scroller tout en bas de la page pour trouver une infos à la c#n alors voici un moyen de lui faire une mise en onglets : il s'agit tu template tiki-my_tiki.tpl

{* $Id: tiki-my_tiki.tpl 47523 2013-09-17 14:39:03Z chibaguy $ *}

{title help="MyTiki"}{tr}My Tiki{/tr}{/title}

  {include file='tiki-mytiki_bar.tpl'}
  <br>

  {capture name=my}

{tabset}		

{if $prefs.feature_forums eq 'y' && $mytiki_forum_topics eq 'y'}
	{tab name="{if $userwatch eq $user}{tr}My forum topics{/tr}{else}{tr}User forum topics{/tr}{/if}"}

   <div id="content8" class="content">
      <div class="cbox">
           <div class="cbox-data">
          <table class="table normal">
            <tr>
              <th>{tr}Forum topics{/tr}</th>              
              <th>{tr}Date of post{/tr}</th>              
            </tr>
            {cycle values="even,odd" print=false}
            {section name=ix loop=$user_forum_topics}
              <tr class="{cycle}">
                <td class="text">
                  <a class="link" title="{tr}View{/tr}" href="tiki-view_forum_thread.php?comments_parentId={$user_forum_topics[ix].threadId}&amp;forumId={$user_forum_topics[ix].object}">{$user_forum_topics[ix].title}</a>
                </td>                
                <td class="date">
                  {$user_forum_topics[ix].commentDate|tiki_short_datetime}
                </td>  
              </tr>
            {/section}
          </table>
		  <div style="text-align:right;">{tr}Records:{/tr} {$user_forum_topics|@count}</div>
    {/tab}
  {/if}


{if $prefs.feature_forums eq 'y' && $mytiki_forum_replies eq 'y'} 
	{tab name="{if $userwatch eq $user}{tr}My forum replies{/tr}{else}{tr}User forum replies{/tr}{/if}"}

    <div id="content9" class="content">
      <div class="cbox">
          <div class="cbox-data">
          <table class="table normal">
            <tr>
              <th>{tr}Forum replies{/tr}</th>              
              <th>{tr}Date of post{/tr}</th>              
            </tr>
            {cycle values="even,odd" print=false}
            {section name=ix loop=$user_forum_replies}
              <tr class="{cycle}">
                <td class="text">
                  <a class="link" title="{tr}View{/tr}" href="tiki-view_forum_thread.php?comments_parentId={$user_forum_replies[ix].threadId}&amp;forumId={$user_forum_replies[ix].object}">{$user_forum_replies[ix].title}</a>
                </td>
                <td class="date">
                  {$user_forum_replies[ix].commentDate|tiki_short_datetime}
                </td>                  
              </tr>
            {/section}
          </table>
		  <div style="text-align:right;">{tr}Records:{/tr} {$user_forum_replies|@count}</div>
        </div>
      </div>
    </div>

    {/tab}
{/if}

{if $prefs.feature_wiki eq 'y' and $mytiki_pages eq 'y'}  
	{tab name="{if $userwatch eq $user}{tr}My pages{/tr}{else}{tr}User Pages{/tr}{/if}"}
		
      <div id="content1" class="content">
      <div class="cbox">
        <div class="cbox-data">
          
          <table class="table normal">
            <tr>
              <th>
                <a href="tiki-my_tiki.php?sort_mode={if $sort_mode eq 'pageName_desc'}pageName_asc{else}pageName_desc{/if}">{tr}Page{/tr}</a>
              </th>
              <th>{tr}Creator{/tr}</th>
              <th>{tr}Last editor{/tr}</th>
              <th>
                <a href="tiki-my_tiki.php?sort_mode={if $sort_mode eq 'date_desc'}date_asc{else}date_desc{/if}">{tr}Last modification{/tr}</a>
              </th>
              <th style="width:50px">{tr}Actions{/tr}</th>
            </tr>
            {cycle values="even,odd" print=false}
            {section name=ix loop=$user_pages}
              <tr class="{cycle}">
                <td class="text">
                  <a class="link" title="{tr}View:{/tr} {$user_pages[ix].pageName}" href="tiki-index.php?page={$user_pages[ix].pageName|escape:"url"}">{$user_pages[ix].pageName|truncate:40:"(...)"}</a>
                </td>
                <td class="username">
                  {if $userwatch eq $user_pages[ix].creator}{tr}y{/tr}{else}&nbsp;{/if}
                </td>
                <td class="username">
                  {if $userwatch eq $user_pages[ix].lastEditor}{tr}y{/tr}{else}&nbsp;{/if}
                </td>
                <td class="date">
                  {$user_pages[ix].date|tiki_short_datetime}
                </td>
                <td class="action">
                  <a class="link" href="tiki-editpage.php?page={$user_pages[ix].pageName|escape:"url"}">
									{capture assign=title}{tr _0=$user_pages[ix].pageName}Edit: %0{/tr}{/capture}{*FIXME*}
                    {icon _id='page_edit' title=$title}
                  </a>
                </td>
              </tr>
            {/section}
          </table>
		  <div style="text-align:right;">{tr}Records:{/tr} {$user_pages|@count}</div>
        </div>
      </div>
    </div>
    {/tab}
{/if}

  {if $prefs.feature_articles eq 'y' and $mytiki_articles eq 'y'}
	{tab name="{if $userwatch eq $user}{tr}My Articles{/tr}{else}{tr}User Articles{/tr}{/if}"}

    <div id="content2" class="content">
      <div class="cbox">

        <div class="cbox-data">
          <table class="table normal">
            <tr>
              <th>{tr}Article{/tr}</th>
              <th style="width:50px">{tr}Actions{/tr}</th>
            </tr>
            {cycle values="even,odd" print=false}
            {section name=ix loop=$user_articles}
              <tr class="{cycle}">
                <td class="text">
                  <a class="link" href="{$user_articles[ix].articleId|sefurl:article}">{$user_articles[ix].title}</a>
                </td>
                <td class="action">
                  <a class="link" href="tiki-edit_article.php?articleId={$user_articles[ix].articleId}">
                    {icon _id='page_edit'}
                  </a>
                </td>
              </tr>
            {/section}
          </table>
		  <div style="text-align:right;">{tr}Records:{/tr} {$user_articles|@count}</div>
        </div>
      </div>
    </div>
{/tab}
  {/if}
 
 
{/tabset}
  {/capture}

  {$smarty.capture.my}
    {if $smarty.capture.my|strip:'' eq ''}
      {tr}To display the objects you created or contributed to:{/tr} <a href="tiki-user_preferences.php?tab3#MyTiki">{tr}My Tiki{/tr}</a>
    {/if}


Salut

olinuxx utilisateur non connecté France
Merci pour l'info utilisateur_anonyme.

Afficher les articles :
Aller au forum :

Documentation [Afficher / Cacher]

Faire un don
[Afficher / Cacher]

Connexion
[Afficher / Cacher]



Mégaphone [Afficher / Cacher]

calixtus06, 14:33, jeu. 28 mars 2024: Bonjour et bienvenue à b.vl :-)
calixtus06, 09:30, mer. 27 mars 2024: Bonjour et bienvenue à Noar :-)
olinuxx, 18:50, lun. 25 mars 2024: Bonjour et bienvenue à Ted Demore cool
olinuxx, 17:52, dim. 24 mars 2024: Bonjour et bienvenue à Noitavon cool
calixtus06, 11:07, jeu. 21 mars 2024: Bonjour et bienvenue à obds, ceric :-)
obds, 16:12, mar. 19 mars 2024: Cet édito est juste parfait. Trop beau !
olinuxx, 11:48, ven. 15 mars 2024: Bonjour et bienvenue à Jerry cool
calixtus06, 18:03, mer. 13 mars 2024: Bonjour et bienvenue à tanguero :-)
olinuxx, 11:01, dim. 10 mars 2024: Bonjour et bienvenue à lolo cool
bda, 16:59, sam. 09 mars 2024: Chapeau pour l'édito. Vous êtes au top les gars :-)
allany, 07:20, jeu. 07 mars 2024: Ça ne fait jamais de mal, c'est l'éditorial ! [Lien]
olinuxx, 19:52, mer. 06 mars 2024: Bonjour et bienvenue à TrkNrk cool