Utilisateurs en ligne: 4
SimpleMachines-fr / Forum 23 Mai 2012 à 03:55:36 *
Bienvenue, Invité. Veuillez vous connecter ou vous inscrire.


Connexion avec identifiant et mot de passe
Nouvelles:
La traduction de la branche 2.0 d'SMF est sortie!
Retrouvez la dans les téléchargements du site.
 
 
Accueil Aide Rechercher wiki
Pages: [1]   Bas de page
Imprimer
Auteur Fil de discussion: Modifier le menu  (Lu 1412 fois)
0 Membres et 2 Invités sur ce fil de discussion.
aide-joomla
Invité
« le: 05 Mars 2007 à 01:21:46 »

Bonjour,
1) je viens de créer un menu en flash et je voudrais l'intégrer sur mon forum comment faire ?

2) Voici le code pour le menu de mon template
Code:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;


echo '
<ul id="mainlevel">';


// Show the [home] button.
echo '<li ' . hiliteItem('home') . '><a href="', $scripturl, '">' , $txt[103] , '</a></li>';

// Show the [help] button.
echo '<li ' . hiliteItem('help') . '><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li ' . hiliteItem('search') . '><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li ' . hiliteItem('admin') . '><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li ' . hiliteItem('profile') . '><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li ' . hiliteItem('pm') . '><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';


// The [calendar]!
if ($context['allow_calendar'])
echo '<li ' . hiliteItem('calendar') . '><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li ' . hiliteItem('mlist') . '><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li ' . hiliteItem('login') . '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li ' . hiliteItem('register') . '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li ' . hiliteItem('logoout') . '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';

echo '</ul>';


}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu2()
{
global $context, $settings, $options, $scripturl, $txt;


echo '
<ul>';


// Show the [home] button.
echo '<li><a href="', $scripturl, '">' , $txt[103] , '<img src="'.$settings['images_url'].'/bullet_white.png" style="margin: 0 6px 0 6px" alt="" /></a></li>';

// Show the [help] button.
echo '<li><a href="', $scripturl, '?action=help">' , $txt[119] , '<img src="'.$settings['images_url'].'/bullet_white.png" style="margin: 0 6px 0 6px" alt="" /></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li><a href="', $scripturl, '?action=search">' , $txt[182] , '<img src="'.$settings['images_url'].'/bullet_white.png" style="margin: 0 6px 0 6px" alt="" /></a></li>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a href="', $scripturl, '?action=admin">' , $txt[2] , '<img src="'.$settings['images_url'].'/bullet_white.png" style="margin: 0 6px 0 6px" alt="" /></a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a href="', $scripturl, '?action=profile">' , $txt[79] , '<img src="'.$settings['images_url'].'/bullet_white.png" style="margin: 0 6px 0 6px" alt="" /></a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '<img src="'.$settings['images_url'].'/bullet_white.png" style="margin: 0 6px 0 6px" alt="" /></a></li>';


// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '<img src="'.$settings['images_url'].'/bullet_white.png" style="margin: 0 6px 0 6px" alt="" /></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a href="', $scripturl, '?action=mlist">' , $txt[331] , '<img src="'.$settings['images_url'].'/bullet_white.png" style="margin: 0 6px 0 6px" alt="" /></a></li>';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li><a href="', $scripturl, '?action=login">' , $txt[34] , '<img src="'.$settings['images_url'].'/bullet_white.png" style="margin: 0 6px 0 6px" alt="" /></a></li>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li><a href="', $scripturl, '?action=register">' , $txt[97] , ' </a></li>';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';

echo '</ul>';


}
Je ne sais pas comment faire Merci
« Dernière édition: 05 Mars 2007 à 19:31:34 par Sparcool » Journalisée
GravuTrad
Administrateur
*
Hors ligne Hors ligne

Messages: 2462



Voir le profil
« Répondre #1 le: 05 Mars 2007 à 12:38:53 »

regarde ce sujet:

http://www.simplemachines.org/community/index.php?topic=16711.0

et adapte à ce que tu veux faire. Wink
Journalisée

On a tous besoin d'un plus petit que soi! (Petit!Petit!)
aide-joomla
Invité
« Répondre #2 le: 05 Mars 2007 à 12:44:52 »

Merci  Afro
Journalisée
Pages: [1]   Haut de page
Imprimer
SimpleMachines-fr / Forum  |  Support SMF  |  SMF 1.1  |  Mods et personnalisation  |  Fil de discussion: Modifier le menu
 
Aller à:  

Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Tous les logos et les marques présentes sur ce site appartiennent à leurs propriétaires respectifs.
Des détails sur les copyrights et les modules installés peuvent être trouvés Ici.

Vous pouvez syndiquer le contenu de ce site : Flux-RSS/RDF.

Site propulsé par pragmaMx 0.1.11.3.

Valid HTML 4.01 Transitional CSS ist valide!
Design by © www.ndeezign.com